code-graph-review
Skill3 starsChanged 11 days agoMITView on GitHub
Use when a multi-file change, a rename, or an explicit graph review needs impact analysis — what it breaks, which execution paths it touches, which symbols go dead. Optional helper: works when the code-review-graph MCP and a built graph exist, otherwise native LSP/source search answers direct impact. Not for locating code (use find/grep) and not for judging whether the change is good (use code-review-and-quality).
In this repository55 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- architecture-simplicitySkill
- autonomous-workSkill
- brainstormingSkill
- code-review-and-qualitySkill
- dashboard-designSkill
- design-systemSkill
- dev-wikiSkill
- dispatching-parallel-agentsSkill
- fable-judgeSkill
- fable-methodSkill
- git-workflow-and-versioningSkill
- money-path-safetySkill
- observability-and-instrumentationSkill
- ponytailSkill
- production-first-decisionsSkill
- receiving-code-reviewSkill
- security-and-hardeningSkill
- shipping-and-launchSkill
- skill-authoringSkill
- systematic-debuggingSkill
- testing-disciplineSkill
- using-git-worktreesSkill
- verification-before-completionSkill
- web-researchSkill
- windows-encoding-fixesSkill
- writing-plansSkill
- architecture-simplicitySkill
- autonomous-workSkill
- brainstormingSkill
- code-graph-reviewSkill
- code-review-and-qualitySkill
- dashboard-designSkill
- design-systemSkill
- dev-wikiSkill
- dispatching-parallel-agentsSkill
- fable-judgeSkill
- fable-methodSkill
- git-workflow-and-versioningSkill
- money-path-safetySkill
- observability-and-instrumentationSkill
- ponytailSkill
- production-first-decisionsSkill
- receiving-code-reviewSkill
- security-and-hardeningSkill
- shipping-and-launchSkill
- skill-authoringSkill
- systematic-debuggingSkill
- testing-disciplineSkill
- using-git-worktreesSkill
- verification-before-completionSkill
- web-researchSkill
- windows-encoding-fixesSkill
- writing-plansSkill
The file
Files
Code graph review: what will the change break
Answers "what does this N-file change break", alongside a quality review rather than instead of one: it produces the impacted paths and symbols that a reviewer judges, and issues no verdict of its own. Applies when a change spans several files, to a rename, to a blast-radius or affected-flow question, or to an explicit graph review; a single-file edit with local callers needs only its callers read.
The graph path applies only when the code-review-graph MCP server and a built graph exist in this environment; otherwise use the native fallback. Nothing obliges you to install or build a graph for a review. Never claim graph-level findings (hubs, communities, flows) that a native search did not produce.
Workflow (graph path — MCP present)
- Applicable diagnostics — configured LSP and repository checks; unrelated ones are not a blocker.
- Graph freshness — update incrementally only when writes are authorized; on a read-only review over a stale graph, use source/LSP and state the limitation.
detect_changes— diff → risk score, priorities (what to inspect first), test gaps. The main review tool.get_impact_radius(BFS depth over the diff) andget_review_context(code snippets) — the blast radius itself.get_affected_flows/list_flows— which user paths pass through the changed files.- Structural questions only —
get_hub_nodes,get_bridge_nodes,get_surprising_connections,get_architecture_overview,get_knowledge_gaps,get_suggested_questions. - Dead code and rename are analysis —
refactor_tool(mode="dead_code")andrefactor_tool(mode="rename")return candidates and a per-site preview.apply_refactor_toolwrites to the codebase, so it is not part of review; applying a plan needs an implementation task with authority to edit. - Confirm dead-code candidates via LSP (
find_references) before reporting them removable: detection false-positives on callbacks andThread(target=...)registrations.
Native fallback (no MCP, or no graph)
- Turn the diff into changed symbol names, then enumerate direct callers with
LSP
find_references/find_definitionor source search. - Walk callers one level for shared code; report which call sites you checked instead of implying exhaustive reachability.
- Rename: search every usage of the old name and show the per-site preview.
- Dead code: "no references found in the sources searched", not "dead".
Pitfall
The native path answers direct impact. Don't present it as graph-equivalent whole-system analysis.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

