abhigyanpatwari/gitnexus/gitnexus-impact-analysis
Claude Code and agent skill by abhigyanpatwari/gitnexus
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Use when the user wants to know what will break if they change something, or needs safety analysis before editing code. Examples: \"Is it safe to change X?\", \"What depends on this?\", \"What will break?\"
Install
npx vskill@latest install abhigyanpatwari/gitnexus/gitnexus-impact-analysisSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as abhigyanpatwari/gitnexus/gitnexus-impact-analysis.
Impact Analysis with GitNexus
When to Use
- "Is it safe to change this function?"
- "What will break if I modify X?"
- "Show me the blast radius"
- "Who uses this code?"
- Before making non-trivial code changes
- Before committing — to understand what your changes affect
Bind the repository first
Impact analysis is the gate that authorizes an edit, so it must answer for the repository you are about to edit.
Call list_repos {} before the first tool call. With one indexed repository, use the examples below as written. With more than one, pass repo on every call: an omitted repo normally errors, but under an MCP policy with a configured default it resolves to that default silently. If you cannot tell which repository is meant, stop and ask — every result below an ambiguous identity inherits the ambiguity. list_repos is paginated, so page with offset: pagination.nextOffset until hasMore is false before concluding a repository is absent.
detect_changes takes worktree when your changes are in a linked worktree the MCP server was not launched from. The server auto-detects a worktree only when it was launched from inside one; otherwise git diff runs in the wrong checkout and reports zero changed symbols — a false clean check that carries none of the degradation flags described below. In the CLI fallbacks, --repo . means the current checkout; pass the intended repository path instead when you are not standing in it.
State the bound identity with your risk report:
Workflow
If "Index is stale" → runnode .gitnexus/run.cjs analyzein terminal.Hot-toolstalenessnames which index answered (branch/lastCommit) and how fresh it is (status). Re-analyze only forbehindordiverged—currentis identity,unknownis unmeasurable.If.gitnexus/run.cjsis missing, replacenode .gitnexus/run.cjswithnpx gitnexusin the fallback commands.
Checklist
Understanding Output
| Depth | Risk Level | Meaning | |
|---|---|---|---|
| d=1 | WILL BREAK | Direct callers/importers | |
| d=2 | LIKELY AFFECTED | Indirect dependencies | |
| d=3 | MAY NEED TESTING | Transitive effects |
Risk Assessment
Upstream risk counts direct dependants. The tool reports indirect reach, processes and modules separately.
| Risk | Upstream direct dependants | Downstream thresholds (any one) | |
|---|---|---|---|
| CRITICAL | 200 or more | 30 direct, 5 processes, 5 modules, or 200 total | |
| HIGH | 15–199 | 15 direct, 3 processes, 3 modules, or 100 total | |
| MEDIUM | 5–14 | 5 direct or 30 total | |
| LOW | Fewer than 5 on a nonempty walk | Below the MEDIUM thresholds | |
| UNKNOWN | Empty upstream walk, or incomplete evidence for a LOW/MEDIUM rating | Incomplete evidence for a LOW/MEDIUM rating |
UNKNOWN is not a low rung on this scale — it means the walk could not answer. An empty caller set is equally consistent with "genuinely unused" and "the callers are not resolvable by the index" (plain-object property access, dynamic dispatch, cross-language calls), so few-callers ⇒ LOW does not apply. The result carries a riskNote saying so. Confirm with a text search before treating the symbol as safe to change or delete.
risk is the edit gate: warn on HIGH/CRITICAL and stop on UNKNOWN until the uncertainty is resolved. Within single-repo mode, compare File and symbol targets with local riskSharedAxes (direct/total only). Within group mode, compare only group results: their riskSharedAxes overlays resolved cross-repo crossings on that local value. Never use either field to waive the edit gate. Check riskScale.unusedAxes before comparing kinds: MCP File walks omit process/module axes, while web Graph-RAG expands File targets to in-file symbols before enrichment.
Tools
impact — the primary tool for symbol blast radius. If MCP is unavailable, use node .gitnexus/run.cjs impact <symbol> --direction upstream --repo . instead:
detect_changes — git-diff based impact analysis. If MCP is unavailable, use node .gitnexus/run.cjs detect-changes --scope all --repo . instead:
Add repo once more than one repository is indexed, and worktree: "<abs path>" when your changes are in a linked worktree the server was not launched from.
partial: true means some changed source, callers, or graph evidence could not be checked. Inspect unmapped_files and incompatible_call_skips for coverage gaps. truncated: true means a listing reached its display limit. Use the summary counts and investigate incomplete coverage before committing.
A wrong-worktree zero carries neither flag and is shape-identical to a genuine clean result, so confirm the checkout you edited is the one that was diffed before treating an empty change set as a passed check.
Example: "What breaks if I change validateUser?"
With a single indexed repository, step 0 returns total: 1 and the repo argument drops out of every call above.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinggitnexus-cursor-integration/skills/gitnexus-impact-analysis/SKILL.md
Popularity
- Repository stars
- 18,912
- Repository forks
- 2,194
- 7-day trend score
- 49
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 23 Mar 2026, 8 months ago.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/abhigyanpatwari/gitnexus/gitnexus-impact-analysis)