graph-exploration
FreeNo executable scriptsNot checkedExplore code relationships, search, flows, communities, architecture, and refactor previews with code-review-graph.
by lza6★ 19 GitHub starsAbout this skill
Graph Exploration
Use this sub-skill when the task is to understand code structure after a graph exists: find callers or callees, search by keyword or embedding, inspect flows or communities, identify large functions, or preview safe refactors.
Start here
- Ensure the graph exists and is current.
- Ask the smallest useful query first.
- Escalate from search to graph traversal to flow/community/refactor analysis only as needed.
Read references/search-and-analysis.md for search, traversal, flow, community, architecture, and refactor workflows. Read references/architecture-and-schema.md for graph-node and edge semantics, flow/community storage, and supported query shapes. Read references/troubleshooting.md when search falls back, flows miss entry points, communities are sparse, or a refactor preview looks incomplete.
Route by task
| User task | Do this |
|---|---|
| "Who calls this function?" | query_graph_tool(pattern="callers_of", target=...) |
| "What does this function call?" | query_graph_tool(pattern="callees_of", target=...) |
| "Find tests for this symbol" | query_graph_tool(pattern="tests_for", target=...) |
| "Search for login/auth code" | semantic_search_nodes_tool or query_graph_tool depending on whether the answer is semantic or structural. |
| "Show execution paths" | list_flows_tool, then get_flow_tool or get_affected_flows_tool. |
| "Show architecture" | get_architecture_overview_tool and, if needed, list_communities_tool. |
| "Find large functions" | find_large_functions_tool. |
| "Preview a rename" | refactor_tool(mode="rename"). |
| "Find dead code" | refactor_tool(mode="dead_code"). |
Use search vs graph traversal correctly
- Use
semantic_search_nodesfor natural-language or fuzzy discovery. - Use
query_graph_toolwhen the question is about exact structural relationships. - Use
traverse_graph_toolwhen you already have a promising node and want to walk outward. - Use
get_minimal_context_toolfirst if you are unsure where to start.
Flows and communities
Flows represent execution paths, usually rooted in entry points or decorators. Communities represent structural clusters and help with architecture-level reasoning. A good exploration answer usually explains both the local symbol and the surrounding flow/community context when relevant.
Refactor previews
The safe refactor path is preview first, apply second:
refactor_tool(mode="rename", ...)orrefactor_tool(mode="dead_code", ...)- Inspect the returned edits and affected locations.
- Only then run
apply_refactor_toolif the change is intentional.
Boundaries
- For install/setup, use
install-and-setup. - For diff review and PR comments, use
review-changes. - For embeddings, custom languages, registry/daemon, wiki, and eval workflows, use
integrations-and-extensions.
Verification anchors
Native tests that ground this route include search tests, flow tests, community tests, integration tests, refactor tests, visualization tests, and status/regression tests. These are validation anchors only; do not rely on them as runtime instructions.
Install graph-exploration in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the graph-exploration skill do?
Explore code relationships, search, flows, communities, architecture, and refactor previews with code-review-graph.
How do I install the graph-exploration skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the graph-exploration skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
by Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
by Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
by Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
by Anthropic