No slash command · from archon-os
Systematic debugging protocol for bugs that resist quick fixes. Uses bisection, hypothesis trees, and scientific method for production-grade root cause analysis.
Ships in archon-os. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
AI-consumed reference. Optimized for Claude to read during execution. Human-readable explanation: see docs/architecture/HIERARCHICAL_PLANNING.md or docs/getting-started/ depending on topic.
For bugs where bugfix-quick fails. Apply scientific method, not vibes.
Escalation path: bugfix-quick (< 15 min, clear cause) → deep-debugging (scientific method)
Uses: tree-of-thoughts skill for hypothesis trees, chain-of-verification for claim validation
| Signal | Use |
|---|---|
| Stack trace points to clear line | bugfix-quick |
| Reproduces 100% of the time | bugfix-quick |
| Happens in known edge case | bugfix-quick |
| Intermittent / flaky | deep-debugging |
| Multiple plausible causes | deep-debugging |
| "Works on my machine" class | deep-debugging |
| Timing / race conditions | deep-debugging |
| Production-only, can't repro locally | deep-debugging |
Cannot debug what you can't reproduce. Goals:
If can't reproduce: STOP. You can't debug. Alternative: add observability (logging, metrics, traces) to production to catch the next occurrence. Don't guess.
Don't jump to the first suspicion. Enumerate possibilities:
Root: Login fails intermittently in production
├── Branch A: Session store issue
│ ├── A1: Redis connection pool exhausted
│ ├── A2: Cookie domain mismatch
│ └── A3: Session expiry race condition
├── Branch B: Load balancer / infra
│ ├── B1: Sticky session misconfigured
│ └── B2: TLS termination timing
└── Branch C: Auth service
├── C1: JWT clock drift
└── C2: Rate limit hit
Score each branch 0-10 on:
Prune branches below 5/10. Expand survivors.
If bug was introduced recently:
git bisect start
git bisect bad HEAD
git bisect good <known-good-commit>
git bisect run ./scripts/reproduce-bug.sh # automated narrowing
Bisection narrows to a single commit in O(log n) steps.
If not in git history — bisect the codebase:
For the top-scoring hypothesis:
Anti-pattern: changing multiple things at once. You won't know which fix worked.
Before claiming the fix:
Outcome: high-confidence claim backed by evidence, not "works on my machine."
Bug without a regression test = bug that returns. Add a test that:
## Bug: [short description]
**Symptoms:** [what the user observed]
**Reproduction:** [minimum case, N trials, failure rate]
**Root Cause:** [verified explanation]
**Evidence:** [verification questions answered]
**Fix:** [what changed + commit ref]
**Regression Test:** [test file + name]
**Similar Impact:** [other places checked — immune / also vulnerable]
skills/bugfix-quick/SKILL.md — escalate here if quick path failsskills/tree-of-thoughts/SKILL.md — hypothesis branchingskills/chain-of-verification/SKILL.md — verify root cause claimrules/core/no-assumption.md — don't guess at causesrules/core/verification.md — prove before shippingrules/core/simplicity-over-complexity.md — once root cause is known, the fix should be minimal — resist the urge to refactor "while we're here"What SKILL.md sets; muted values are Claude Code's defaults
bug not obvious, intermittent failure, production issue, bisect, systematic debugging, hard bug, root cause analysis, deep debug, flaky test, heisenbug, race condition
highnpx claudepluginhub nguyenthienthanh/archon --plugin archon-os45 skills in this plugin
/agent-detectorCRITICAL: MUST run for EVERY message. Detects agent, complexity, AND model automatically. Without this, tasks route to wrong agents and use wrong models, degrading quality and wasting tokens./api-designerDesigns RESTful APIs with endpoint naming, versioning strategies (URL path, header-based), pagination (offset and cursor), error response schemas, and OpenAPI conventions. Use when the user asks about REST API design, creating endpoints, URL structure, API versioning, status codes, Swagger, or OpenAPI specs./bugfix-quickFast bug fixes with root cause investigation + TDD. Enforces 'no fix without root cause' discipline and verification protocol. Without this skill, fixes are applied at symptoms instead of sources, and bugs return./chain-of-verificationDraft → generate verification questions → answer independently via tools → revise. Catches hallucinated facts in reports and reviews. MANDATORY for Phase 4 security/test claims. Paper: Dhuliawala et al. 2023./code-mapReverse-dependency lookup — "I am about to change this file, what breaks?" Use when assessing the blast radius of an edit, finding every importer of a module (including the ones that never name it), or checking what the startup code-map digest was derived from. Not for finding text: grep is better at that./code-reviewer8-aspect evidence-based code review/audit (security, correctness, compatibility, architecture, error handling, test gaps, type safety, simplicity) built on Google eng-practices, OWASP Top 10:2025, CWE Top 25, SemVer. Every finding needs file:line + a concrete failure scenario. Use when the user asks to review/audit code, check a PR, review before merge, in TDD Phase 4, via /check review or /run review.Other plugins' skills for the same job