gsd-graphify
Builds, queries, and inspects a project-specific knowledge graph.
Install
mkdir -p .claude/skills/gsd-graphify-deepu325 && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/18919" && unzip -o skill.zip -d .claude/skills/gsd-graphify-deepu325 && rm skill.zipInstalls to .claude/skills/gsd-graphify-deepu325
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Build, query, and inspect the project knowledge graph in .planning/graphs/Key capabilities
- →Build or rebuild the project knowledge graph
- →Query the graph for specific terms
- →Check the freshness and statistics of the graph
- →Show changes since the last graph build
- →Spawn a graphify-builder agent for graph construction
How it works
The skill builds, queries, and inspects a project knowledge graph by executing `graphify` subcommands. It checks configuration, parses arguments to determine the operation mode, and either runs inline CLI calls or spawns a dedicated agent for graph construction.
Inputs & outputs
When to use gsd-graphify
- →Querying code relationships
- →Building project knowledge maps
- →Inspecting architectural dependencies
About this skill
STOP -- DO NOT READ THIS FILE. You are already reading it. This prompt was injected into your context by Claude Code's command system. Using the Read tool on this file wastes tokens. Begin executing Step 0 immediately.
CJS-only (graphify): graphify subcommands are not registered on gsd-sdk query. Use node .agent/get-shit-done/bin/gsd-tools.cjs graphify … as documented in this command and in docs/CLI-TOOLS.md. Other tooling may still use gsd-sdk query where a handler exists.
Step 0 -- Banner
Before ANY tool calls, display this banner:
GSD > GRAPHIFY
Then proceed to Step 1.
Step 1 -- Config Gate
Check if graphify is enabled by reading .planning/config.json directly using the Read tool.
DO NOT use the gsd-tools config get-value command -- it hard-exits on missing keys.
- Read
.planning/config.jsonusing the Read tool - If the file does not exist: display the disabled message below and STOP
- Parse the JSON content. Check if
config.graphify && config.graphify.enabled === true - If
graphify.enabledis NOT explicitlytrue: display the disabled message below and STOP - If
graphify.enabledistrue: proceed to Step 2
Disabled message:
GSD > GRAPHIFY
Knowledge graph is disabled. To activate:
node .agent/get-shit-done/bin/gsd-tools.cjs config-set graphify.enabled true
Then run /gsd-graphify build to create the initial graph.
Step 2 -- Parse Argument
Parse $ARGUMENTS to determine the operation mode:
| Argument | Action |
|---|---|
build | Spawn graphify-builder agent (Step 3) |
query <term> | Run inline query (Step 2a) |
status | Run inline status check (Step 2b) |
diff | Run inline diff check (Step 2c) |
| No argument or unknown | Show usage message |
Usage message (shown when no argument or unrecognized argument):
GSD > GRAPHIFY
Usage: /gsd-graphify <mode>
Modes:
build Build or rebuild the knowledge graph
query <term> Search the graph for a term
status Show graph freshness and statistics
diff Show changes since last build
Step 2a -- Query
Run:
node .agent/get-shit-done/bin/gsd-tools.cjs graphify query <term>
Parse the JSON output and display results:
- If the output contains
"disabled": true, display the disabled message from Step 1 and STOP - If the output contains
"error"field, display the error message and STOP - If no nodes found, display:
No graph matches for '<term>'. Try /gsd-graphify build to create or rebuild the graph. - Otherwise, display matched nodes grouped by type, with edge relationships and confidence tiers (EXTRACTED/INFERRED/AMBIGUOUS)
STOP after displaying results. Do not spawn an agent.
Step 2b -- Status
Run:
node .agent/get-shit-done/bin/gsd-tools.cjs graphify status
Parse the JSON output and display:
- If
exists: false, display the message field - Otherwise show last build time, node/edge/hyperedge counts, and STALE or FRESH indicator
STOP after displaying status. Do not spawn an agent.
Step 2c -- Diff
Run:
node .agent/get-shit-done/bin/gsd-tools.cjs graphify diff
Parse the JSON output and display:
- If
no_baseline: true, display the message field - Otherwise show node and edge change counts (added/removed/changed)
If no snapshot exists, suggest running build twice (first to create, second to generate a diff baseline).
STOP after displaying diff. Do not spawn an agent.
Step 3 -- Build (Agent Spawn)
Run pre-flight check first:
PREFLIGHT=$(node ".agent/get-shit-done/bin/gsd-tools.cjs" graphify build)
If pre-flight returns disabled: true or error, display the message and STOP.
If pre-flight returns action: "spawn_agent", display:
GSD > Spawning graphify-builder agent...
Spawn a Task:
Task(
description="Build or rebuild the project knowledge graph",
prompt="You are the graphify-builder agent. Your job is to build or rebuild the project knowledge graph using the graphify CLI.
Project root: ${CWD}
gsd-tools path: .agent/get-shit-done/bin/gsd-tools.cjs
## Instructions
1. **Invoke graphify:**
Run from the project root:
graphify update .
This builds the knowledge graph with SHA256 incremental caching.
Timeout: up to 5 minutes (or as configured via graphify.build_timeout).
2. **Validate output:**
Check that graphify-out/graph.json exists and is valid JSON with nodes[] and edges[] arrays.
If graphify exited non-zero or graph.json is not parseable, output:
## GRAPHIFY BUILD FAILED
Include the stderr output for debugging. Do NOT delete .planning/graphs/ -- prior valid graph remains available.
3. **Copy artifacts to .planning/graphs/:**
cp graphify-out/graph.json .planning/graphs/graph.json cp graphify-out/graph.html .planning/graphs/graph.html cp graphify-out/GRAPH_REPORT.md .planning/graphs/GRAPH_REPORT.md
These three files are the build output consumed by query, status, and diff commands.
4. **Write diff snapshot:**
node ".agent/get-shit-done/bin/gsd-tools.cjs" graphify build snapshot
This creates .planning/graphs/.last-build-snapshot.json for future diff comparisons.
5. **Report build summary:**
node ".agent/get-shit-done/bin/gsd-tools.cjs" graphify status
Display the node count, edge count, and hyperedge count from the status output.
When complete, output: ## GRAPHIFY BUILD COMPLETE with the summary counts.
If something fails at any step, output: ## GRAPHIFY BUILD FAILED with details."
)
Wait for the agent to complete.
Anti-Patterns
- DO NOT spawn an agent for query/status/diff operations -- these are inline CLI calls
- DO NOT modify graph files directly -- the build agent handles writes
- DO NOT skip the config gate check
- DO NOT use gsd-tools config get-value for the config gate -- it exits on missing keys
When not to use it
- →When graphify is disabled in the project configuration
- →When performing query, status, or diff operations, as these are inline CLI calls
- →When modifying graph files directly
Limitations
- →The skill does not allow modifying graph files directly.
- →It does not use `gsd-tools config get-value` for the config gate.
- →It requires `graphify` to be enabled in `.planning/config.json`.
How it compares
This skill provides a structured, command-line interface for managing a project's knowledge graph, offering specific operations for building, querying, and diffing that are more integrated than manual file inspection.
Compared to similar skills
gsd-graphify side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| gsd-graphify (this skill) | 0 | — | Review | Intermediate |
| project-development | 1 | 2mo | Review | Advanced |
| gsd-graphify | 0 | 2mo | Review | Advanced |
| musubix-domain-inference | 0 | 6mo | Review | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
project-development
muratcankoylan
This skill should be used when the user asks to "start an LLM project", "design batch pipeline", "evaluate task-model fit", "structure agent project", or mentions pipeline architecture, agent-assisted development, cost estimation, or choosing between LLM and traditional approaches.
gsd-graphify
wikiepeidia
Build, query, and inspect the project knowledge graph in .planning/graphs/
musubix-domain-inference
nahisaho
自動ドメイン検出・コンポーネント推論ガイド。プロジェクトドメイン特定に使用。
graph-thinking
suwandre
Apply graph-based thinking to visualize complex relationships and solve
memory-systems
sickn33
Design short-term, long-term, and graph-based memory architectures
tech-decision
team-attention
This skill should be used when the user asks to "기술 의사결정", "뭐 쓸지 고민", "A vs B", "비교 분석", "라이브러리 선택", "아키텍처 결정", "어떤 걸 써야 할지", "트레이드오프", "기술 선택", "구현 방식 고민", or needs deep analysis for technical decisions. Provides systematic multi-source research and synthesized recommendations.