No slash command · from agent-flow
Guides querying the graphify knowledge graph for structural codebase relationships, choosing between graph tools and grep, and interpreting results within token budgets.
Ships in agent-flow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Query the knowledge graph effectively, interpret results accurately, and stay within token budgets.
The graphify MCP server exposes the codebase as a pre-built knowledge graph stored in graphify-out/graph.json. The graph encodes structural relationships between concepts, modules, and files extracted by the graphify pipeline. This skill governs when, how, and with what discipline agents should query it.
Owner: Riko (Explorer Agent) — Riko is the primary graph query agent and owns interpretation of results. Consumers: Senku (Planner Agent), Lawliet (Reviewer Agent) — both may consult the graph during planning and review, but Riko is the preferred query agent for deep exploration. Out of scope: Loid (Executor) and Alphonse (Verifier) do NOT have graph access by design. Loid performs file writes and needs test output, not structural queries; Alphonse runs verification commands that cannot rely on graph freshness. This enforces the one-writer invariant: only agents that need structural context hold graph tool permissions.
All 7 tools are accessed via the MCP prefix mcp__plugin_agent-flow_graphify__*. See references/tool-reference.md for full signatures.
Use the graph when you need structural relationships. Use grep when you need literal text matches.
| Trigger condition | Preferred approach |
|---|---|
| "What modules import X?" / dependency mapping | Graph: get_neighbors with relation_filter |
| "What is the main entry point?" / orientation | Graph: graph_stats then god_nodes |
| "How does component A connect to component B?" | Graph: shortest_path |
| "Which community does file F belong to?" | Graph: get_community on node label |
"Find the string literal TODO: fix" | Grep |
"Find all files that define function parse_args" | Grep (pattern match) |
| "What does a specific config key say?" | Read the file directly |
| File is freshly edited (within this session) | Grep/Read — graph may be stale |
Graph does not exist at graphify-out/graph.json | Grep/Read only |
Rule of thumb: If the answer requires traversal (who calls what, what clusters together, how far apart are two concepts), use the graph. If the answer is a literal substring or you need up-to-the-edit accuracy, use Grep or Read.
Choose the right tool for the question type. See references/query-patterns.md for detailed decision sequences.
| Question type | Primary tool | Follow-up |
|---|---|---|
| How large is this codebase? | graph_stats | god_nodes for core abstractions |
| What are the central concepts? | god_nodes | get_community to explore clusters |
| Which modules are in the same cluster? | get_community | get_node on members |
| What does this node connect to? | get_neighbors | get_node on callers/callees |
| Blast radius of changing X | get_neighbors then shortest_path | Manual review of connected files |
| Full structural/semantic question | query_graph (BFS for broad, DFS for path) | get_node on returned labels |
| Specific node details | get_node | — |
| Path between two concepts | shortest_path | get_node on intermediate nodes |
Hard rules for staying within context budget:
top_k / top_n when available. Default god_nodes returns 10 nodes — only request more if explicitly needed.token_budget on query_graph calls. The default is 2000 tokens; lower it (e.g., 500) for quick orientation queries.depth conservatively. Default depth is 3; start at 1-2 for narrow questions, increase only if the result is insufficient.source_location fields.label → source_location pairs. Downstream agents (Senku, Lawliet) need names and file paths, not raw graph output.graph_stats first, then decide if god_nodes is needed. Avoid firing all 7 tools simultaneously.How to read and trust what the graph returns:
source_location fieldsEvery node in the graph carries a source_location field (file path, sometimes line range). When reporting a finding, always cite this field:
Node: AgentOrchestrator
source_location: commands/orchestrate.md:1
Never report a concept without its source_location — downstream agents cannot verify unsourced claims.
The graph annotates edges with confidence labels:
| Tag | Meaning | Trust level |
|---|---|---|
| EXTRACTED | Directly observed in source text | High — treat as fact |
| INFERRED | Model-reasoned relationship | Medium — verify if load-bearing |
| AMBIGUOUS | Multiple interpretations possible | Low — always verify with Read/Grep |
When an edge is INFERRED or AMBIGUOUS, note this explicitly in your summary. Do not present inferred relationships as certainties.
The graph is built once (at /graphify time) and is not updated during a session. If Loid has modified a file in the current session, graph data for that node is stale. For any file touched in this session:
depth > 4 without a specific reason — the output will overflow context.query_graph for questions answerable by get_node or get_neighbors — cheaper specific tools first.source_location citations — every claimed relationship needs a file anchor.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub josix/agent-flow --plugin agent-flowOther plugins' skills for the same job
11 skills in this plugin
/agent-behavior-constraintsThis skill should be used when handling agent model selection, tool access permissions, behavioral guardrails, MCP tool preferences, or any question about what agents can/cannot do./agentsview-usageSearch prior session history to recall how similar work was handled before. Use when you want to leverage a past approach, check prior experience on a topic, answer "how was this handled before", or cross-verify current handling against precedent from earlier sessions./evidence-driven-workGround work in what the system actually did, then tell people about it so they get it at a glance. Use when investigating why something is slow, failing, or ignoring a setting; choosing what to measure, which tool or view can show it, or what access to ask the user for; a hypothesis or estimate was just disproven; judging whether a change is worth making or weighing a proposed approach; verifying a change after it runs in the target environment; citing numbers, logs, or screenshots as evidence; writing a report, PR or ticket description, announcement, or completion summary. Covers observation surfaces across domains, evidence standards, argument structure, narrative reports (background, change, purpose, impact), explaining terms, and clarity over decoration./explainer-design-systemTurn any codebase into a beautiful, interactive single-page HTML course that teaches how the code works to non-technical people. Use this skill whenever someone wants to create an interactive course, tutorial, or educational walkthrough from a codebase or project. Also trigger when users mention 'turn this into a course,' 'explain this codebase interactively,' 'teach this code,' 'interactive tutorial from code,' 'codebase walkthrough,' 'learn from this codebase,' or 'make a course from this project.' This skill produces a stunning, self-contained HTML file with scroll-based navigation, animated visualizations, embedded quizzes, and code-with-plain-English side-by-side translations./exploration-strategyThis skill should be used when exploring codebases, finding patterns, searching for code, gathering context, or understanding code structure before planning or implementation./personal-kb-usageThis skill should be used when querying the user's personal knowledge base (cross-project personal knowledge graph) for prior learnings, notes, or decisions that apply across projects.