skills/xt-debugging/SKILL.md
Complete debugging workflow — error analysis, log interpretation, performance profiling, and GitNexus call-chain tracing. Use when investigating bugs, errors, crashes, or performance issues.
npx skillsauth add jaggerxtrm/jaggers-agent-tools xt-debuggingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Systematic debugging using the GitNexus knowledge graph for call-chain tracing, combined with error analysis, log interpretation, and performance profiling.
GitNexus must be indexed before starting. If you see "index is stale" or no results:
npx gitnexus analyze # re-index the repo (run this, then retry)
npx gitnexus status # verify freshness
Understand the symptom before touching any code.
gitnexus_detect_changes({scope: "compare", base_ref: "main"})
1. gitnexus_query({query: "<error text or symptom>"}) → Related execution flows + symbols
2. gitnexus_context({name: "<suspect>"}) → Callers, callees, process participation
3. READ gitnexus://repo/{name}/process/{processName} → Full step-by-step execution trace
4. gitnexus_cypher({...}) → Custom call chain if needed
| Symptom | Approach |
|---------|----------|
| Error message | query for error text → context on throw site |
| Wrong return value | context on function → trace callees for data flow |
| Intermittent failure | context → look for external calls, async deps, race conditions |
| Performance issue | context → find hot-path symbols with many callers |
| Recent regression | detect_changes to see what changed |
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, no timeout)
4. Root cause: fetchRates has no timeout → intermittent failures under load
Common root cause categories:
time <command>
--prof, clinic.js, 0xcProfile, py-spy, line_profilerpprofgitnexus_context to confirm call frequencygitnexus_impact({target: "fixedSymbol", direction: "upstream"})gitnexus_detect_changes({scope: "staged"})- [ ] Read full error / stack trace
- [ ] Identify suspect symbol
- [ ] gitnexus_detect_changes to check for regressions
- [ ] gitnexus_query for error text or symptom
- [ ] gitnexus_context on suspect (callers, callees, processes)
- [ ] Trace execution flow via process resource
- [ ] Read source files to confirm root cause
- [ ] Form explicit hypothesis before fixing
- [ ] Verify fix against failing reproduction
- [ ] Add regression test
- [ ] gitnexus_detect_changes() before committing
development
Operational service-knowledge system for a project's services. One skill that creates, discovers, activates, updates, and scopes per-service expert skill packages (SKILL.md + diagnostic scripts + references), kept in sync with the code via a GitNexus-aware drift engine. Use when onboarding to a service, routing a task to the right expert, scaffolding a missing skill, or syncing a skill after the implementation drifted. Triggers: /service-skills, /creating-service-skills, /using-service-skills, /updating-service-skills, /scope, or any task that touches a registered service territory.
development
Bootstrap a complete security pipeline (Dependabot + OSV + Semgrep + gitleaks + pre-commit hooks + Codex review) on any GitHub repo. Designed for free user-private repos where GitHub Advanced Security is unavailable. Reusable across Python/TypeScript/Go/Rust stacks.
testing
Merges queued PRs from xt worktree sessions in the correct order (FIFO), maintaining linear history by rebasing remaining PRs after each merge. Use this skill whenever the user has multiple open PRs from xt worktrees, asks to "merge my PRs", "process the PR queue", "drain the queue", "merge worktree branches", or says "what PRs do I have open". Also activate after any xt-end completion when other PRs are already open, or when the user asks "can I merge yet" or "is CI green". Handles the full sequence: list → sort → CI check → merge oldest → rebase cascade → repeat until queue is empty.
testing
Autonomous session close flow for xt worktree sessions. Use this skill whenever the user says "done", "finished", "wrap up", "close session", "ship it", "I'm done", "ready to merge", or similar. Also activate when all beads issues in the session are closed, or when the user explicitly runs /xt-end. This skill is designed for headless/specialist use: it must make deterministic decisions, auto-remediate common anomalies, and avoid clarification questions unless execution is truly blocked.