gitnexus-debugging
यह क्या करती है
यह आपके एजेंट को सिखाती है कि कोड हर हिस्से को कैसे बुलाता और इस्तेमाल करता है, उसे फ़ॉलो करके बग की जड़ तक पहुँचे। यह उन डेवलपर्स के लिए है जो विफलता की असली वजह जल्दी ढूँढना चाहते हैं।
कब इस्तेमाल करें
- ✓जब कोई function विफल होता है और आप जानना चाहते हैं कि क्यों।
- ✓जब कोई एरर आता है और आपको उसका स्रोत ढूँढना है।
- ✓जब कोई endpoint एरर लौटाता है और आप उसके पीछे के कोड का सुराग चाहते हैं।
Skill का लिंक
https://github.com/abhigyanpatwari/GitNexus/blob/main/.claude/skills/gitnexus-debugging/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“क्या आप पता लगा सकते हैं कि जब कार्ट खाली हो तो checkout function एरर क्यों लौटाता है?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट पुष्टि करता है कि repository सही है, code index ताज़ा करता है, और विफल कोड से बुलावों को फ़ॉलो करता है। फिर वह संभावित मूल कारण बताता है, साथ में repository और index की ताज़गी की जानकारी।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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
अक्सर पूछे जाने वाले सवाल
वह पहले repository की पुष्टि क्यों करता है?
स्किल कहती है कि गलत repository में पाया गया मूल कारण गलत होगा, इसलिए लक्ष्य साफ़ न हो तो वह पूछता है।
क्या यह index ताज़ा करता है?
हाँ। स्किल कहती है कि पुराना index पुराने कोड का वर्णन करता है, इसलिए trace पर भरोसा करने से पहले उसे ताज़ा किया जाता है।
क्या यह पता लगा सकता है कि कौन किसी method को बुलाता है?
हाँ। callers ढूँढना उन उदाहरण सवालों में से एक है जिन्हें स्किल संभालती है।
जानकारी
लेखक का मूल विवरण
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
लोकप्रियता
- GitHub स्टार
- 48k
- रैंकिंग में स्थान
- #3606
- लाइसेंस
- —
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
gitnexus-cli
48kआपके एजेंट को GitNexus कमांड चलाने देती है, जो कोड प्रोजेक्ट का index बनाते हैं, उसकी स्थिति जाँचते हैं, index साफ़ करते हैं या wiki बनाते हैं।
gitnexus-exploring
48kआपके एजेंट को किसी अनजान codebase को खंगालने में मदद करती है, समझाते हुए कि उसके हिस्से कैसे जुड़े हैं और login जैसी सुविधा कैसे काम करती है।
gitnexus-guide
48kआपके एजेंट को GitNexus टूल्स, संसाधनों और knowledge graph का त्वरित संदर्भ देती है, और सही गाइड की ओर इशारा करती है।
gitnexus-impact-analysis
48kकिसी function को बदलने से पहले आपके एजेंट को जाँचने देती है कि क्या टूटेगा, ताकि आप जान सकें कि कौन सा कोड उस पर निर्भर है।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।