Automated summary
This skill guides Claude in using GitNexus tools (query, context, cypher) to trace a bug across the call graph and pin down its root cause.
Strengths
- A structured four-step workflow from symptom search to source-code confirmation
- A symptom-to-approach table covering errors, regressions, performance and intermittent failures
- Custom Cypher queries for precise call-chain traces
- A concrete end-to-end example on a payment endpoint returning a 500 error
Limitations
- Heavily dependent on the repository's GitNexus index, which must be fresh and requires a running LM Studio embedding server
- Assumes the gitnexus_query, gitnexus_context and gitnexus_cypher tools are already configured and available
- Does not address diagnosis outside the code graph, such as infrastructure or configuration issues
Use it when a bug or unexpected behavior must be traced in a codebase indexed by GitNexus and you need to understand the relevant execution flows.
Avoid it on a repository without a fresh GitNexus index, or for problems unrelated to code such as infrastructure outages.
Security analysis
CautionThe content is a debugging playbook for a code-graph tool. It contains no destructive commands, no network exfiltration, no credential handling, and no obfuscation; the only executable instruction is a local re-index command via direnv, which is legitimate but does load repo-controlled environment scripts. Because it directs shell execution without declaring tools, it warrants caution rather than a clean safe rating.
- •No allowed-tools declared, yet the skill instructs running a shell command: `direnv exec . gitnexus analyze --embeddings --skip-agents-md` (local indexing only, but it executes code via .envrc/direnv, which auto-trusts repo-provided environment scripts)
- •Depends on external tooling (gitnexus MCP-style tools, LM Studio embedding server) whose behavior is outside the skill's control
- •Includes a raw Cypher query passed to gitnexus_cypher; read-only pattern, but query execution is agent-driven
Examples
Mon endpoint de paiement renvoie parfois une erreur 500. Trace le flux d'exécution et trouve la cause racine.D'où vient cette PaymentException ? Qui appelle validatePayment et quelles dépendances externes sont impliquées ?J'ai fait des changements récemment et quelque chose s'est cassé. Utilise detect_changes pour voir ce que mes modifications affectent.name: gitnexus-debugging description: "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""
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
Workflow
1. gitnexus_query({query: "<error or symptom>"}) → Find related execution flows
2. gitnexus_context({name: "<suspect>"}) → See callers/callees/processes
3. READ gitnexus://repo/{name}/process/{name} → Trace execution flow
4. gitnexus_cypher({query: "MATCH path..."}) → Custom traces if needed
If "Index is stale" in this repo, run
direnv exec . gitnexus analyze --embeddings --skip-agents-mdfrom the repo root after the LM Studio embedding server is running.
Checklist
- [ ] Understand the symptom (error message, unexpected behavior)
- [ ] gitnexus_query for error text or related code
- [ ] Identify the suspect function from returned processes
- [ ] gitnexus_context to see callers and callees
- [ ] Trace execution flow via process resource if applicable
- [ ] gitnexus_cypher for custom call chain traces if needed
- [ ] Read source files to confirm root cause
Debugging Patterns
| Symptom | GitNexus Approach |
| -------------------- | ---------------------------------------------------------- |
| Error message | gitnexus_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 |
Tools
gitnexus_query — find code related to error:
gitnexus_query({query: "payment validation error"})
→ Processes: CheckoutFlow, ErrorHandling
→ Symbols: validatePayment, handlePaymentError, PaymentException
gitnexus_context — full context for a suspect:
gitnexus_context({name: "validatePayment"})
→ Incoming calls: processCheckout, webhookHandler
→ Outgoing calls: verifyCard, fetchRates (external API!)
→ Processes: CheckoutFlow (step 3/7)
gitnexus_cypher — custom call chain traces:
MATCH path = (a)-[:CodeRelation {type: 'CALLS'}*1..2]->(b:Function {name: "validatePayment"})
RETURN [n IN nodes(path) | n.name] AS chain
Example: "Payment endpoint returns 500 intermittently"
1. gitnexus_query({query: "payment error handling"})
→ Processes: CheckoutFlow, ErrorHandling
→ Symbols: validatePayment, handlePaymentError
2. gitnexus_context({name: "validatePayment"})
→ Outgoing calls: verifyCard, fetchRates (external API!)
3. READ gitnexus://repo/my-app/process/CheckoutFlow
→ Step 3: validatePayment → calls fetchRates (external)
4. Root cause: fetchRates calls external API without proper timeout
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/debugging-with-gitnexus-mrwakfv0/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/debugging-with-gitnexus-mrwakfv0' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/debugging-with-gitnexus-mrwakfv0/download' --output '.skill-downloads/debugging-with-gitnexus-mrwakfv0/SKILL.md.part' && mv '.skill-downloads/debugging-with-gitnexus-mrwakfv0/SKILL.md.part' '.skill-downloads/debugging-with-gitnexus-mrwakfv0/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/debugging-with-gitnexus-mrwakfv0/SKILL.md' && test -s '.skill-downloads/debugging-with-gitnexus-mrwakfv0/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/gitnexus-debugging' && cp -R '.skill-downloads/debugging-with-gitnexus-mrwakfv0' '.claude/skills/gitnexus-debugging'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/debugging-with-gitnexus-mrwakfv0'openskills read 'debugging-with-gitnexus-mrwakfv0'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/debugging-with-gitnexus-mrwakfv0/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.