Borrowing it
Nothing to install: this file belongs to xsovad06/sova. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/xsovad06/sova/main/.claude/commands/debug.mdgit clone --depth 1 https://github.com/xsovad06/sovaWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/xsovad06/sova/debug)<a href="https://agentmods.dev/commands/xsovad06/sova/debug"><img src="https://agentmods.dev/badge/commands/xsovad06/sova/debug/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/xsovad06/sova/debug"><img src="https://agentmods.dev/badge/commands/xsovad06/sova/debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00020 | $0.00521 |
| Opus 5.5 | $0.00008 | $0.00208 |
| Sonnet 5.5 | $0.00004 | $0.00104 |
| Haiku 4.5 | $0.00002 | $0.00052 |
Grade A, and why
debug scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 16d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- Try to reproduce the issue (via test, curl, or browser) How it starts
The opening of the file, as written. The whole thing — 69 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Systematic Debugging
Debug an issue in the project.
Problem description: $ARGUMENTS
Workflow
1. Reproduce
- Understand the problem from the description
- Check application logs for errors
- Try to reproduce the issue (via test, curl, or browser)
- If the issue is unclear, ask the user for more details
2. Locate
- Identify the relevant code path (URL -> view/controller -> service -> model)
- Read the relevant source files to understand the flow
- Check recent changes with
git log --oneline -10andgit diff: was something recently changed? - Search for related error messages in the codebase
3. Diagnose
- Trace the execution flow from entry point to the error
- Identify the root cause, not just the symptom
- Check common issues:
- Missing migrations or schema changes
- Import errors / circular imports
- Configuration mismatches between environments
- Authentication/permission issues
- Database constraint violations
- Race conditions or state management bugs
4. Fix
- Apply the minimal fix that addresses the root cause
- Do not introduce workarounds: fix the actual problem
- If the fix touches multiple files, explain the connection
- Scout rule: while in each file, fix any pre-existing issues you notice (lint warnings, dead imports, obvious bugs adjacent to your fix). Keep scout fixes small and low-risk.
5. Verify
- Write a test that reproduces the original issue (should fail before fix, pass after)
- Run the project's test suite (see CLAUDE.md for commands)
- Check that no regressions were introduced
- Verify application logs are clean
6. Prevent
- If this bug class could recur, suggest a test that would catch it
- If it was caused by a missing convention, suggest updating AGENTS.md or project guidelines
Cross-References
- Need to run tests? Run
/testto iterate on failures - Want a review of the fix? Run
/reviewbefore pushing
Rules
- NEVER use emojis in any output
- Focus on root cause, not symptoms
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 16d ago Changed · +1 tokens per session de73b844862a
- 2mo ago First seen · 69 lines · 19 tokens per session scan A 81b35a811a19
debug is a command published in the GitHub repository xsovad06/sova (2 stars, last pushed yesterday), licensed Apache-2.0. It adds 20 tokens to every session and 521 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other commands, from other repositories
maintainer-review-error-handling
Review the PR for error-handling correctness — surfaced errors, no silent swallows, consistent error patterns (Pi-tuned).
doctor
Check the health of a KARIMO installation, identify issues, and provide actionable recommendations.
feedback
Intelligent feedback capture with automatic complexity detection and adaptive investigation.
simplify-analyze
Analyze code for simplification opportunities. Part of simplify- family.
simplify
Orchestrates code simplification via verified transformations. Delegates to simplify-analyze, simplify-verify, and simplify-transform.
afr
Review feature - code review with fixes by a different agent (shortcut for feature-code-review).