gitnexus-impact-analysis
Fungsinya
Skill ini memandu agent Anda memetakan kode yang bergantung pada sesuatu sebelum Anda mengeditnya. Skill ini untuk pengembang yang ingin menghindari rusaknya bagian lain dari proyek.
Kapan dipakai
- โSaat Anda akan mengubah sebuah fungsi dan ingin tahu apa yang bergantung padanya.
- โSaat Anda ingin melihat area dampak sebuah perubahan sebelum commit.
- โSaat Anda bertanya apakah sebuah perubahan aman untuk dilakukan.
Link skill
https://github.com/abhigyanpatwari/GitNexus/blob/main/.claude/skills/gitnexus-impact-analysis/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
โApakah aman bagi saya mengubah parameter fungsi ini, dan apa saja yang memakainya?โ
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent memastikan repositorinya, lalu mencari kode yang memanggil atau bergantung pada target dan melaporkan risikonya. Agent juga memeriksa perubahan lokal agar Anda tahu dampaknya.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Apakah kodenya diubah?
Tujuannya adalah analisis sebelum mengedit. Skill ini memberi informasi untuk perubahan, bukan membuat perubahannya.
Mengapa repositori dikonfirmasi?
Skill ini menyatakan hasil yang menggambarkan repositori yang salah menyesatkan, sehingga skill ini bertanya jika target tidak jelas.
Bisakah perubahan di branch diperiksa?
Bisa. Skill ini dapat memeriksa perubahan lokal, termasuk di git worktree yang terhubung jika Anda mengarahkannya ke sana.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 48k
- Peringkat
- #3609
- Lisensi
- โ
- Diperbarui
- 2/11/2026
Komentar
- โฆ
Skill lain dari repositori ini
gitnexus-cli
48kMemungkinkan agent Anda menjalankan perintah GitNexus untuk mengindeks proyek kode, memeriksa statusnya, menghapus indeks, atau membuat wiki.
gitnexus-debugging
48kMembantu agent Anda melacak bug di dalam basis kode, dengan mencari di mana error bermula dan kode mana yang memanggil bagian yang gagal.
gitnexus-exploring
48kMembantu agent Anda menjelajahi basis kode yang belum dikenal, dengan menjelaskan bagaimana bagian-bagiannya terhubung dan cara fitur seperti login bekerja.
gitnexus-guide
48kMemberi agent Anda referensi singkat untuk alat, sumber daya, dan grafik pengetahuan GitNexus, lalu mengarahkannya ke panduan yang tepat.
Skill serupa
diffs
394kMemungkinkan agent Anda menghasilkan diff perubahan yang nyata dan dapat dibagikan sebagai tautan viewer atau file gambar, bukan ringkasan yang ditulis manual.
coding-agent
394kMembantu agent Anda menyerahkan pekerjaan pemrograman besar ke Codex, Claude Code, atau OpenCode di latar belakang, lalu memeriksa kemajuannya.
gh-issues
394kMembantu agent Anda menemukan issue GitHub, memilih yang dikerjakan, dan membuka pull request perbaikan, termasuk tindak lanjut komentar tinjauan.