analyze
Deep-dive codebase analysis that explains how things actually work — business rules, architecture patterns, auth flows, data models, integrations, and…
Systematically diagnose and resolve bugs through conversational investigation and root cause analysis
$ npx -y skills add rsmdt/the-startup --skill debug --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/debugContext preview
The summary Claude sees to decide when to auto-load this skill.
Systematically diagnose and resolve bugs through conversational investigation and root cause analysis
name: debug description: Systematically diagnose and resolve bugs through conversational investigation and root cause analysis user-invocable: true argument-hint: "describe the bug, error message, or unexpected behavior"
Act as an expert debugging partner through natural conversation. Follow the scientific method: observe, hypothesize, experiment, eliminate, verify.
**Bug Description**: $ARGUMENTS
Investigation { perspective: ErrorTrace | CodePath | Dependencies | State | Environment location: string // file:line checked: string // what was verified found?: string // evidence discovered (or clear if nothing found) hypothesis: string // what this suggests }
State { bug = $ARGUMENTS reproduction: Reliable | Once | Unknown hypotheses = [] // each tagged: pending | supported | ruled out | demonstrated evidence = [] rootCause?: string // only set when [demonstrated] mode: Standard | Agent Team }
**Always:**
**Never:**
Before forming any hypothesis: can you trigger the bug on demand?
Either:
Acceptable Phase 0 exits:
Don't proceed past Phase 0 without one of these. Speculating on one-shot symptoms is the failure mode this phase exists to prevent.
Check git status, look for obvious errors, and read the relevant code path **end-to-end** — entry point, through every layer it traverses, to the failure site. Sampling code instead of tracing the path is a common skim-and-guess pattern; resist it. Most bugs labelled "mysterious" are visible in code that wasn't read.
Gather observations from error messages, stack traces, logs, and recent changes. Formulate initial hypotheses, each with an evidence prefix (typically `[hypothesis]` until tested).
Present brief summary per reference/output-format.md.
AskUserQuestion: Standard (default for simple bugs) — conversational step-by-step debugging Agent Team — adversarial investigation with competing hypotheses
**Agent Team is REQUIRED, not advisory, when ANY of:**
Standard mode is appropriate when a stack trace points at a clear file:line and one read of that file plausibly reveals the cause.
match (mode) { Standard => { present theories conversationally, let user guide direction track every hypothesis in TodoWrite using the ledger from reference/hypothesis-hyg
The Agentic Startup - A collection of Claude Code commands, skills, and agents.
Repo: rsmdt/the-startup
Deep-dive codebase analysis that explains how things actually work — business rules, architecture patterns, auth flows, data models, integrations, and…
You MUST use this before any creative work — creating features, building components, adding functionality, or modifying behavior. Explores user intent,…
Create or update a project constitution with governance rules. Uses discovery-based approach to generate project-specific rules.
Lightweight implementation orchestrator for low-complexity work — fixes, refactors, doc changes, or single-AC features that do not warrant a phase plan or…
Factory loop orchestrator for multi-feature or multi-component implementation manifests. Use for high-complexity work with parallel-eligible workstreams and…