/graph-it-live:pr-review Which Git base ref or pull request diff should be reviewed?from Graph-It-Live
Reviews pull requests and Git diffs using Graph-It-Live analysis for risk, breaking changes, dependency impact, cycles, unused exports, and test candidates.
Ships in Graph-It-Live. 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.
Use deterministic local diff analysis first. Deepen only findings that need additional evidence.
graph-it --version and graph-it tool --list once and share them across Graph-It skills. Requires
CLI 1.21.0 or later: if older or unreadable, say so, name the missing commands, offer
graph-it update, and use only what --help and tool --list show. Do not install the CLI without
an explicit request. Without it, use only a structurally equivalent MCP tool the host advertises,
with its exact input schema; CLI options do not map to MCP parameters.graph-it update only after explicit positive confirmation; silence, timeout, refusal, non-TTY
or generic Agent mode is not consent, an explicitly pre-authorized automatic mode is. After success,
refresh version and inventory; a running MCP server needs a host-authorized restart. On failure, keep
a usable CLI, warn once, do not retry.review-pr comes first; then read the changed hunks and the files its findings name,
bounded, instead of re-exploring the repository.--format toon for everything you read; json only when a script parses the output;
markdown only when the report itself goes to a human or a PR comment.Review from the repository (monorepo) root with graph-it -w <repoRoot> review-pr ... so consumers in
every package count. Without -w the CLI uses the nearest project marker (package.json,
pyproject.toml, Cargo.toml, go.mod, pom.xml, *.csproj, ...), which inside a sub-package
leaves siblings out, and exits with code 3 outside any project. If stderr warns that imports resolve
outside the workspace root, rerun with the --workspace it names or state the limitation.
Fetch the base ref first. review-pr indexes automatically: do not run graph-it scan before it.
graph-it review-pr --base origin/main --format toon
graph-it review-pr --base origin/main --head feature/my-change --depth 3 --max-files 200 --format toon
--base is required. Without --head, the working tree is reviewed, staged and unstaged included.--head <ref>, both sides are committed refs; untracked files are excluded.--depth limits transitive dependent traversal (1-10); --max-files caps changed files (default 200, at least 1, no upper bound).With graphit.architecture.json at the workspace root (or edited by the diff), the report has an
architecture section comparing the rules on base and head: verdict (degraded, improved,
unchanged), each rule's newViolations (accepted when the head baseline lists them),
resolvedViolations, new unitCycles (each pair tagged cycle: "runtime" or "type-only"), and configChange. newErrors > 0 blocks the merge and fails
the Review Gate. A configChange that weakens or removes a rule or accepts new baseline entries is a
finding to justify. graph-it check-architecture --format toon gives the whole-workspace check
(--verbose lists accepted violations in text/markdown).
The report includes a top-level risk, score, changedFiles, symbols, cycles, limitations, and isPartial, plus architecture with a rules file.
| Risk | Meaning | Review action |
|---|---|---|
low | No high-scoring static concern | Review behavioral changes and tests normally |
medium | Inspect changed symbol and direct dependents | Request focused validation when evidence is unresolved |
high | Breaking or broad-impact evidence | Block until compatibility, callers, and tests are addressed |
critical | Highest static risk | Block; require explicit mitigation and targeted verification |
Never call a review complete when isPartial is true or limitations is non-empty. Limitations can
mean unsupported file types, unreadable files (symbolic links, binaries, files over 2 MiB), parser failures, unavailable cycle/unused
analysis, configured file limits, or an impact traversal that reached its depth limit.
No reported breaking signature does not establish behavioral safety. Static evidence supplements; it does not replace tests, security review, or domain review.
Verify parameters with graph-it tool <name> --help; MCP fallback uses only the host-advertised schema.
# Blast radius and known dependent symbols
graph-it tool get_impact_analysis --filePath=/abs/src/api.ts --symbolName=updateUser --format toon
# Direct callers for a specific symbol
graph-it tool query_call_graph --filePath=/abs/src/api.ts --symbolName=updateUser --direction=callers --depth=1 --format toon
# Broader caller/callee neighbourhood
graph-it tool query_call_graph --filePath=/abs/src/api.ts --symbolName=updateUser --depth=3 --format toon
# Understand a changed implementation and its local call flow
graph-it tool generate_codemap --filePath=/abs/src/api.ts --format toon
Check conventional test candidates reported by review-pr, then inspect the actual tests. Missing test
candidates mean manual test selection is required, not that testing is unnecessary.
Produce findings in this order:
Do not invent runtime behavior from graph data. Cite the command output that supports each claim.
To create or modernize the graph-it-review-gate workflow, read references/github-actions-gate.md:
pin the Action to the full commit SHA of the latest official release, least-privilege permissions,
no write token for fork code, and Dependabot for Action updates.
review-pr as a Git-diff risk signal, not a replacement for unit, integration, security, or human domain review.graph-it scan needed.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
pr-review, diff-analysis, merge-risk, graph-it-live, code-review
npx claudepluginhub magic5644/graph-it-live --plugin graph-it-live5 skills in this plugin
/dead-code-hunterScan the dependency graph for orphan nodes (uncalled symbols and unreferenced files) and produce
a safe, ranked deletion plan. Use this skill whenever the user asks about dead code, unused code,
orphan symbols, unreferenced files, code cleanup, or code hygiene — even if they don't say "dead code"
explicitly. Also trigger for: "remove unused exports", "find unused functions", "find unused classes",
"clean up before a refactor", "clean up after removing a feature", "what code is never called",
"what files are never imported", "before merging this PR let me clean up", "reduce bundle size by
removing dead code", supprimer code mort, code inutilisé, nettoyer le code, symboles non utilisés,
exports inutiles.
/graph-it-liveAnalyze code dependencies, call graphs, and architecture using the graph-it CLI. Use this skill
whenever the user wants to understand how their code is connected — even if they don't say
"dependency graph" explicitly. Trigger for: "what calls this function", "who uses this class",
"is it safe to delete X", "what breaks if I change Y", "show me the architecture", "trace the
execution from main", "find circular imports", "give me an overview of this module", "what imports
this file", "impact analysis", "review this PR", "review this diff",
"is this change risky", breaking changes, unused exports, dead code detection, codemap, file logic,
module resolution, graph-it, dependency graph, reverse dependencies.
/graph-it-refactorUse when refactoring multiple files, changing exported signatures or interfaces, moving or renaming symbols, deleting dead code, reorganizing dependencies, or fixing complex regressions. Maps impact with Graph-It-Live before editing, then verifies after./onboarding-expressAI-guided architectural tour of any codebase — entry points, business logic, and the most complex
module in one structured pass, powered by Graph-It-Live. Use this skill whenever someone is new to
a codebase or wants a quick orientation. Trigger for: "I just joined this team", "explain this repo
to me", "give me a project overview", "where is the main logic", "what is the entry point",
"I need to understand the architecture before starting", "walk me through this codebase",
"which module is the most complex", "find the business logic", "I'm about to refactor and need
to understand the structure first", onboarding, project walkthrough, architecture tour,
découvrir le projet, visite guidée, point d'entrée, logique métier, module complexe.
Other plugins' skills for the same job