gitnexus-impact-analysis
Was er macht
Diese Fähigkeit führt deinen Agenten dazu, abzubilden, welcher Code von etwas abhängt, bevor du es bearbeitest. Sie ist für Entwickler gedacht, die verhindern wollen, dass andere Teile eines Projekts brechen.
Wann du ihn nutzt
- ✓Wenn du eine Funktion ändern willst und wissen möchtest, was von ihr abhängt.
- ✓Wenn du vor dem Commit den Wirkungsradius einer Änderung sehen willst.
- ✓Wenn du fragst, ob eine Änderung sicher ist.
Link zum Skill
https://github.com/abhigyanpatwari/GitNexus/blob/main/.claude/skills/gitnexus-impact-analysis/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Ist es sicher, die Parameter dieser Funktion zu ändern, und was nutzt sie sonst noch?”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Agent bestätigt zuerst das Repository und sucht dann den Code, der das Ziel aufruft oder davon abhängt, und meldet das Risiko. Außerdem prüft er deine lokalen Änderungen, damit du weißt, was sie betreffen.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
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:
Repository: <name> (<path>) Worktree: <path> Index: <commit>, <n> behind HEAD
Workflow
0. list_repos {} → Bind repo (and worktree)
1. impact({target: "X", direction: "upstream"}) or `node .gitnexus/run.cjs impact "X" --direction upstream --repo .`
2. READ gitnexus://repo/{name}/processes → Check affected execution flows
3. detect_changes({scope: "all"}) or `node .gitnexus/run.cjs detect-changes --scope all --repo .`
4. Assess risk and report to user, echoing repo/worktree/index identity
If "Index is stale" → run
node .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
- [ ] list_repos {} — bind repo; explicit repo when >1 indexed, ask if ambiguous
- [ ] impact({target, direction: "upstream"}) or CLI fallback to find dependents
- [ ] Review d=1 items first (these WILL BREAK)
- [ ] Check high-confidence (>0.8) dependencies
- [ ] READ processes to check affected execution flows
- [ ] detect_changes({scope: "all"}) or CLI fallback for pre-commit check
- [ ] Confirm the checkout you edited is the checkout that was diffed
- [ ] Assess risk level and report, stating repo/worktree/index identity
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
| Affected | Risk |
|---|---|
| <5 symbols, few processes | LOW |
| 5-15 symbols, 2-5 processes | MEDIUM |
| >15 symbols or many processes | HIGH |
| Critical path (auth, payments) | CRITICAL |
| Zero callers found | UNKNOWN |
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
Häufige Fragen
Ändert sie den Code?
Ihr Zweck ist die Analyse vor dem Bearbeiten. Sie informiert Änderungen, statt sie vorzunehmen.
Warum bestätigt sie das Repository?
Die Fähigkeit sagt, dass Ergebnisse über das falsche Repository irreführend sind, und fragt nach, wenn das Ziel unklar ist.
Kann sie Änderungen in einem Branch prüfen?
Ja. Sie kann lokale Änderungen prüfen, auch in einem verknüpften Git-Worktree, wenn du ihn angibst.
Details
Originalbeschreibung des Autors
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?\"
repo: abhigyanpatwari/GitNexus
Beliebtheit
- GitHub-Sterne
- 48k
- Platz im Ranking
- #3609
- Lizenz
- —
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
gitnexus-cli
48kLässt deinen Agenten GitNexus-Befehle ausführen, die ein Code-Projekt indizieren, seinen Status prüfen, den Index leeren oder ein Wiki erzeugen.
gitnexus-debugging
48kHilft deinem Agenten, einen Fehler durch eine Codebasis zu verfolgen und herauszufinden, wo ein Fehler beginnt und welcher Code den fehlerhaften Teil aufruft.
gitnexus-exploring
48kHilft deinem Agenten, eine unbekannte Codebasis zu erkunden, und erklärt, wie ihre Teile zusammenhängen und wie ein Feature wie der Login funktioniert.
gitnexus-guide
48kGibt deinem Agenten eine kurze Referenz zu GitNexus-Werkzeugen, Ressourcen und dem Wissensgraphen und verweist ihn auf den richtigen Leitfaden.
Ähnliche Skills
diffs
394kLässt deinen Agenten einen echten, teilbaren Diff seiner Änderungen als Viewer-Link oder Bilddatei erstellen, statt einer handgeschriebenen Zusammenfassung.
coding-agent
394kHilft deinem Agenten, eine größere Programmieraufgabe als Hintergrund-Worker an Codex, Claude Code oder OpenCode zu übergeben und danach den Fortschritt zu prüfen.
gh-issues
394kHilft deinem Agenten, GitHub-Issues zu finden, die zu bearbeitenden auszuwählen und Pull Requests mit Korrekturen zu öffnen, einschließlich der Nacharbeit an Review-Kommentaren.