gitnexus-debugging
What it does
It guides your agent to track down the cause of a bug by following how the code calls and uses each part. It is for developers who want to find the root cause of a failure quickly.
When to use it
- βWhen a function fails and you want to know why.
- βWhen an error appears and you need to find where it comes from.
- βWhen an endpoint returns an error and you want to trace the code behind it.
Skill link
https://github.com/abhigyanpatwari/GitNexus/blob/main/.claude/skills/gitnexus-debugging/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βCan you find out why the checkout function returns an error when the cart is empty?β
5 new skills a week. 1 minute to read.
How it works
The agent confirms the repository, refreshes the code index, and follows the calls from the failing code. It then reports the likely root cause along with the repository and index freshness.
Technical content (original SKILL.md)
Original text by the author, straight from 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
FAQ
Why does it confirm the repository first?
The skill says a root cause traced in the wrong repository would be wrong, so it asks when the target is unclear.
Does it refresh the index?
Yes. The skill says an old index describes older code, so it refreshes the index before trusting a trace.
Can it find who calls a method?
Yes. Finding callers is one of the example questions the skill handles.
Details
Original description by the author
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
Popularity
- GitHub stars
- 48k
- Ranking position
- #3606
- License
- β
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
gitnexus-cli
48kLets your agent run GitNexus commands that index a code project, check its status, clear the index, or generate a wiki.
gitnexus-exploring
48kHelps your agent explore an unfamiliar codebase, explaining how its parts connect and how a feature such as login works.
gitnexus-guide
48kGives your agent a quick reference to GitNexus tools, resources, and the knowledge graph, and points it to the right guide.
gitnexus-impact-analysis
48kHelps your agent check what will break before you change a function, so you know which code depends on it.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.