nx/skills/debugging/SKILL.md
Use when tests fail, exceptions occur, or behavior is non-deterministic, especially after 2+ failed manual fix attempts
npx skillsauth add hellblazer/nexus 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.
Delegates to the debugger agent.
Default: sonnet. Escalate via model parameter on the Agent tool:
| Task Shape | Model | When | |-----------|-------|------| | Single test failure, clear stack trace | sonnet (default) | Most debugging | | Multi-component, non-deterministic, or cross-module | opus | Flaky tests, race conditions, system-level |
REQUIRED SUB-SKILL: Use nx:serena-code-nav for all symbol-level navigation during debugging. Serena gives accurate call traces; Grep finds text matches that may be comments or strings.
find_referencing_symbols on failing methods to find all callersfind_symbol on exception types to locate definitionstype_hierarchy for polymorphic call resolutionget_symbols_overview before reading a file1. Identify failing test/exception
2. find_symbol on failure point — locate definition
3. find_referencing_symbols to trace all callers
4. type_hierarchy for polymorphic dispatch questions
5. Form hypothesis based on Serena evidence
6. Validate with `mcp__plugin_nx_sequential-thinking__sequentialthinking`
Before dispatching the debugger agent, seed T1 scratch with link targets so the auto-linker can create catalog links when the agent stores findings:
RDR-\d+), resolve it: mcp__plugin_nx_nexus-catalog__search(query="RDR-NNN")rdr-planning-contextmcp__plugin_nx_nexus__scratch(action="put", content='{"targets": [{"tumbler": "<resolved-tumbler>", "link_type": "relates"}], "source_agent": "debugger"}', tags="link-context")
Use the Agent tool to invoke debugger:
## Relay: debugger
**Task**: [what needs to be done]
**Bead**: [ID] or 'none'
### Input Artifacts
- Files: [relevant files]
### Deliverable
Root cause analysis with fix recommendation
### Quality Criteria
- [ ] Root cause definitively identified with evidence
- [ ] Fix proposed and validated
- [ ] Hypothesis chain preserved
For full relay structure and optional fields, see RELAY_TEMPLATE.md.
The debugger uses mcp__plugin_nx_sequential-thinking__sequentialthinking:
debug-{component}-{issue-type}Outputs generated by the debugger agent:
Session Scratch (T1): Agent uses scratch tool for ephemeral working notes during the session. Flagged items auto-promote to T2 at session end.
development
Use when critiquing / auditing / reviewing a change set against decision history — tries the review plan library first (catalog lookup → decision-evolution traversal → extract → compare), falls through to /nx:query if nothing matches
documentation
Use when doing design / architecture / planning work that walks from prose (RDRs, docs, knowledge) into the modules implementing a concept
development
Use when surveying the plan library's runtime metrics to propose plans for promotion to a higher scope — advisory-only; dispatches the plan-promote-propose meta-seed (no lifecycle ops — those ship in RDR-079)
business
Use when inspecting plan runtime metrics or enumerating dimension-registry usage — dispatches plan_match with dimensions={verb:plan-inspect}; strategy:default reports per-plan metrics, strategy:dimensions reports registry usage counts