From feature-workflow
Executes 5-phase systematic troubleshooting workflow for debugging bugs and errors: problem definition, hypothesis formation, investigation, resolution, verification. Invoke on bug reports or errors.
npx claudepluginhub schuettc/claude-code-plugins --plugin feature-workflowThis skill uses the workspace's default tool permissions.
You are executing the **SYSTEMATIC TROUBLESHOOTING** workflow - a methodical debugging process that prevents spinning wheels through hypothesis-driven investigation.
Enforces root cause investigation for bugs, test failures, unexpected behavior, and performance issues through four phases before proposing fixes.
Orchestrates persistent, hypothesis-driven debugging sessions across conversations, delegating analysis to subagents and tracking in debug files.
Suggests manual /compact at logical task boundaries in long Claude Code sessions and multi-phase tasks to avoid arbitrary auto-compaction losses.
Share bugs, ideas, or general feedback.
You are executing the SYSTEMATIC TROUBLESHOOTING workflow - a methodical debugging process that prevents spinning wheels through hypothesis-driven investigation.
$ARGUMENTS
If no specific problem was provided above, you will help the user define the problem clearly.
Ad-hoc debugging: Try things randomly, hope something works Systematic troubleshooting (this command): Form hypotheses, gather evidence, verify fixes
Key capability: "Something is broken" → investigate → "Root cause identified and fixed"
This provides structured debugging rather than trial and error.
| Command | Mode | Purpose |
|---|---|---|
/feature-audit | Proactive | "Verify this works as expected" |
/feature-troubleshoot | Reactive | "This is broken, help me fix it" |
Both complement each other - audit can prevent issues, troubleshoot resolves them.
This command orchestrates a 5-phase workflow:
| Phase | Name | Purpose |
|---|---|---|
| 1 | Problem Definition | Clearly define what's wrong and expected behavior |
| 2 | Hypothesis Formation | Generate possible causes ranked by likelihood |
| 3 | Investigation | Gather evidence to test hypotheses |
| 4 | Resolution | Apply fix based on evidence |
| 5 | Verification | Confirm the fix works and problem is resolved |
See: hypothesis.md
See: investigation.md
See: resolution.md
See: verification.md
To prevent spinning wheels, this workflow includes an "ask for help" mechanism.
Ask the user for help when:
## Seeking Additional Input
I've investigated [N] hypotheses but haven't identified the root cause.
### What I've Tried
1. [Hypothesis 1] - Ruled out because [evidence]
2. [Hypothesis 2] - Ruled out because [evidence]
3. [Hypothesis 3] - Inconclusive, need more data
### What Would Help
- [ ] Access to [specific logs/system]
- [ ] Information about [specific question]
- [ ] Someone with [domain] expertise
- [ ] Permission to [specific action]
### Questions for You
1. Have you seen this issue before?
2. Any recent changes that might be related?
3. Can you provide [specific information]?
4. Should we escalate to [team/person]?
For complex issues, store session data:
docs/troubleshooting/
└── [session-id]/
├── session.json # Problem definition, hypotheses, status
├── evidence/ # Captured logs, screenshots, test results
└── resolution.md # Final resolution documentation
/feature-audit for specific verification/feature-ship| Error | Resolution |
|---|---|
| Problem too vague | Ask clarifying questions in Phase 1 |
| No hypotheses match | Generate new hypotheses, ask for help |
| Can't reproduce | Ask for more specific reproduction steps |
| Fix doesn't work | Return to Phase 2, form new hypotheses |
| Multiple root causes | Address each systematically |
This workflow ensures:
No more spinning wheels. No more "try this and see."
Let's identify the problem and fix it systematically!