gitnexus-debugging
Fungsinya
Skill ini memandu agent Anda menelusuri penyebab bug dengan mengikuti cara setiap bagian kode dipanggil dan dipakai. Skill ini untuk pengembang yang ingin menemukan akar masalah kegagalan dengan cepat.
Kapan dipakai
- βSaat sebuah fungsi gagal dan Anda ingin tahu alasannya.
- βSaat muncul error dan Anda perlu mencari asalnya.
- βSaat sebuah endpoint mengembalikan error dan Anda ingin melacak kode di baliknya.
Link skill
https://github.com/abhigyanpatwari/GitNexus/blob/main/.claude/skills/gitnexus-debugging/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
βBisakah Anda mencari tahu mengapa fungsi checkout mengembalikan error saat keranjang kosong?β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent memastikan repositorinya, memperbarui indeks kode, lalu mengikuti pemanggilan dari kode yang gagal. Setelah itu agent melaporkan kemungkinan akar penyebabnya beserta repositori dan kesegaran indeksnya.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Debugging with GitNexus
When to Use
- "Why is this function failing?"
- "Trace where this error comes from"
- "Who calls this method?"
- "This endpoint returns 500"
- Investigating bugs, errors, or unexpected behavior
Bind the repository first
A root cause traced in the wrong repository is a wrong root cause.
Bind once using a confirmed registry name/path or configured MCP default. Call
list_repos {} if the target is not yet known; reuse that binding across calls. 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. This matters most for cypher, whose
statement carries no in-band hint of which database it ran against.
list_repos is paginated, so page with offset: pagination.nextOffset until
hasMore is false before concluding a repository is absent.
A stale index describes the code from before your bug, so refresh before trusting a trace, and state the repository and index freshness with the diagnosis.
Workflow
0. Bind the repo once (list_repos only if not already known)
1. If the suspect is unknown, query for the error/symptom with small result limits
2. context({name: "<suspect>"}) β See callers/callees/processes
3. Read a process resource only if its trace resolves an open question
4. cypher({statement: "MATCH path..."}) β Custom traces if needed
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.
Checklist
- [ ] Once per session: bind repo; explicit repo when >1 indexed, ask if ambiguous
- [ ] Understand the symptom (error message, unexpected behavior)
- [ ] query for error text or related code
- [ ] Identify the suspect function from returned processes
- [ ] context to see callers and callees
- [ ] Trace execution flow via process resource if applicable
- [ ] cypher for custom call chain traces if needed
- [ ] Read source files to confirm root cause
- [ ] State the repository and index freshness with the diagnosis
Keep investigations focused
Start with a known symbol's context, or a small query (limit: 3,
max_symbols: 3, include_content: false, chain_depth: 0) to discover one.
When the server advertises these single-repository filters, request only the
needed evidence:
context({uid: "<suspect id>", repo: "my-app", include_content: true,
response_sections: ["outgoing"], relationTypes: ["CALLS"]})
trace({from_uid: "<suspect id>", to_uid: "<failure id>", repo: "my-app"})
symbol and completeness/staleness diagnostics remain in a filtered context.
relationTypes filters the returned incoming/outgoing categories only; it does
not expand their existing bounded window or filter an explicitly requested chain.
For callback registration, include USES; for imports or inheritance, request
those relation types or omit the filter. Omitted references are not absent
references. Broaden when the hypothesis needs it, and preserve UNKNOWN/partial
warnings. Confirm source and tests before claiming a root cause. A useful 2β3
call investigation is a goal, not a reason to skip verification or pre-edit impact.
Debugging Patterns
| Symptom | GitNexus Approach |
|---|---|
| Error message | query for error text β context on throw sites |
| Wrong return value | context on the function β trace callees for data flow |
| Intermittent failure | context β look for external calls, async deps |
| Performance issue | context β find symbols with many callers (hot paths) |
| Recent regression | detect_changes to see what your changes affect β pass worktree for a linked worktree |
| "How does A reach B?" | trace between the two symbols β shortest call chain in one call |
Tools
query β find code related to error:
query({search_query: "payment validation error", repo: "my-app"})
β Processes: CheckoutFlow, ErrorHandling
β Symbols: validatePayment, handlePaymentError, PaymentEx
Pertanyaan umum
Mengapa repositori dikonfirmasi lebih dulu?
Skill ini menyatakan akar masalah yang dilacak di repositori yang salah akan keliru, sehingga skill ini bertanya jika target tidak jelas.
Apakah indeks diperbarui?
Ya. Skill ini menyatakan indeks lama menggambarkan kode lama, sehingga indeks diperbarui sebelum jejak dipercaya.
Bisakah skill ini menemukan siapa yang memanggil sebuah metode?
Bisa. Mencari pemanggil adalah salah satu contoh pertanyaan yang ditangani skill ini.
Detail
Deskripsi asli dari pembuat
Use when the user is debugging a bug, tracing an error, or asking why something fails. Examples: \"Why is X failing?\", \"Where does this error come from?\", \"Trace this bug\"
repo: abhigyanpatwari/GitNexus
Popularitas
- Bintang GitHub
- 48k
- Peringkat
- #3606
- 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-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.
gitnexus-impact-analysis
48kMembantu agent Anda memeriksa apa yang akan rusak sebelum Anda mengubah sebuah fungsi, sehingga Anda tahu kode mana yang bergantung padanya.
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.