/graph-it-live:graph-it-refactor Which symbol, file or module do you want to refactor, and to what?from Graph-It-Live
Maps impact with Graph-It-Live before editing, then verifies after. Use when refactoring multiple files, changing exported signatures or interfaces, moving or renaming symbols, deleting dead code, reorganizing dependencies, or fixing complex regressions.
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.
None: SKILL.md is the whole skill.
Three phases: map (read-only), edit (sealed scope), verify. No edit before the plan; no "done" before verification.
graph-it --version and graph-it tool --list once and share them across Graph-It skills; read graph-it <command> --help only for a flag you need. 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. Never install the CLI. Without it, use only MCP tools the host advertises, with their exact name and inputSchema. Never guess a tool name, flag or schema.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, re-read version and inventory; a running MCP server needs a host-authorized restart (do not edit MCP configuration). On failure, keep the usable CLI, report once, do not retry.--format toon for everything you read, with --detail compact and --token-budget on context; json only when a script parses the output. MCP: response_format: "toon" only where the schema advertises it.Run from the repository root with graph-it -w <repoRoot> ... so every package's consumers are indexed. If stderr warns that imports resolve outside the workspace root, impact outside it is not covered: rerun with the --workspace it names or report the gap.
Do not edit source, run formatters or codemods, or use a package manager. Locate targets with read-only search or IDE navigation; search locates, it never proves impact.
graph-it scan first). If indexing fails or a result reports fresh=false, stop and report:graph-it context --mode refactor --seeds 'src/a/b.ts#symbol' --depth 4 --detail compact --token-budget 4000 --format toon
It returns the seed, importers (tests included), indexRevision, truncated and nextQueries. Keep --depth 4: at the default depth, consumers behind a barrel or re-export are missed. Add --scope '<glob>' to narrow. If truncated=true, the importer list is incomplete: rerun once with --token-budget 16000 (the maximum) to get it in one call, and continue with --cursor <nextCursor> only if that is still truncated. Never plan on a truncated list.
2. Deepen only symbols that are exported, public, or widely used (high fan-in):
graph-it tool get_impact_analysis --filePath=/abs/src/a/b.ts --symbolName=symbol --includeTransitive=true --format toon
graph-it tool query_call_graph --filePath=/abs/src/a/b.ts --symbolName=symbol --direction=callers --depth=2 --format toon
graph-it cycles <file> --format toon and, when graphit.architecture.json exists, graph-it check-architecture --format toon to record the baseline (violation count) before editing.tests/ or named *.test.*/*.spec.*). None found = a test must be written in Phase 2.Evidence rules:
get_impact_analysis, query_call_graph and review-pr consumers do not follow a barrel (index.ts re-exporting the symbol). If an importer only re-exports the symbol (graph-it path-in <file> lists it as export), run graph-it path-in <barrel> and read each consumer for symbol-level use.verify_dependency_usage when a file imports a module but may not use the symbol.isPartial/truncated.rg, IDE references or passing tests.Present the plan before any edit: files and intended changes; impacted importers, callers, tests and exports; cycles; architecture baseline; tests to add or update; gaps. No plan, no Phase 2.
Run in this order; fix and rerun on any failure.
graph-it review-pr --base HEAD --format toon
graph-it check-architecture --format toon # only when graphit.architecture.json exists
review-pr --base HEAD reviews the uncommitted tree: breaking signatures, new cycles, unused exports, test candidates, limitations, isPartial. Its risk score can stay low on a breaking change: treat any breakingChanges entry with severity error as a blocker until every consumer, barrel consumers included, is updated. Use --base <branch> when the work is already committed. Never call it complete when isPartial is true or limitations is non-empty; list the manual check that closes each.check-architecture must not exceed the Phase 1 baseline; never weaken a rule to pass..env content surfaced by analysis.graph-it update, installers or network commands without the consent stated above.Stop, return to Phase 1 and close the gap when you think:
rg found them all" or "callers prove every importer".graph-it-live: dependency, call-graph and architecture questions.dead-code-hunter: ranked deletion plan; run before removing unused code.pr-review: review the finished diff.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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.
/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.
/pr-reviewReview pull requests and Git diffs with Graph-It-Live risk, breaking-change, dependency-impact,
cycle, unused-export, and test-candidate evidence. Use when asked to review a PR, inspect a diff,
assess merge risk, check a branch before merging, create a Graph-It-Live review gate, or explain
review-pr results. Trigger for: "review this PR", "review this diff", "is this safe to merge",
"check merge risk", "analyze changed files", "PR review", "code review my branch", "revoir cette PR",
"analyser ce diff", "risque de merge".
Other plugins' skills for the same job