Loading...
Loading...
Apply scientific debugging methodology through conversational investigation. Use when investigating bugs, forming hypotheses, tracing error causes, performing root cause analysis, or systematically diagnosing issues. Includes progressive disclosure patterns, observable actions principle, and user-controlled dialogue flow.
npx skill4agent add rsmdt/the-startup bug-diagnosis"I see you're hitting [brief symptom summary]. Let me take a quick look..."
[Perform initial investigation - check git status, look for obvious errors]
"Here's what I found so far: [1-2 sentence summary]
Want me to dig deeper, or can you tell me more about when this started?""Based on what you've described, this looks like it could be in [area].
Let me check a few things..."
[Run targeted searches, read relevant files, check recent changes]
"I looked at [what you checked]. Here's what stands out: [key finding]
Does that match what you're seeing, or should I look somewhere else?""I have a couple of theories:
1. [Most likely] - because I saw [evidence]
2. [Alternative] - though this seems less likely
Want me to dig into the first one?""Let me trace through [the suspected area]..."
[Read code, check logic, trace execution path]
"Found it. In [file:line], [describe what's wrong].
Here's what's happening: [brief explanation]
Want me to show you the problematic code?""Got it! The issue is in [location]:
[Show the specific problematic code - just the relevant lines]
The problem: [one sentence explanation]
Should I fix this, or do you want to discuss the approach first?""Here's what I'd change:
[Show the proposed fix - just the relevant diff]
This fixes it by [brief explanation].
Want me to apply this, or would you prefer a different approach?""Applied the fix. Tests are passing now. ✓
The original issue should be resolved. Can you verify on your end?""All done! The [brief issue description] is fixed.
Anything else you'd like me to look at?"🐛 Bug Fixed
**What was wrong**: [One sentence]
**The fix**: [One sentence]
**Files changed**: [List]
Let me know if you want to add a test for this case.git log -p <file>git bisect| Bug Type | What to Check | How to Report |
|---|---|---|
| Logic errors | Data flow, boundary conditions | "The condition on line X doesn't handle case Y" |
| Integration | API contracts, versions | "The API expects X but we're sending Y" |
| Timing/async | Race conditions, await handling | "There's a race between A and B" |
| Intermittent | Variable conditions, state | "This fails when [condition] because [reason]" |
"I read src/auth/UserService.ts and searched for 'validate'"
"I found the error handling at line 47 that doesn't check for null"
"I compared the API spec in docs/api.md against the implementation"
"I ran `npm test` and saw 3 failures in the auth module"
"I checked git log and found this file was last modified 2 days ago""I analyzed the code flow..." → Only if you actually traced it
"Based on my understanding..." → Only if you read the architecture docs
"This appears to be..." → Only if you have supporting evidence"I haven't looked at the database layer yet - should I check there?"
"I focused on the API handler but didn't trace into the service layer""I've looked at [what you checked] but haven't pinpointed it yet.
A few options:
- I could check [alternative area]
- You could tell me more about [specific question]
- We could take a different angle entirely
What sounds most useful?"🔍 Investigation Status
Phase: [Understanding / Narrowing / Root Cause / Fix]
What I checked:
- [Action 1] → [Finding]
- [Action 2] → [Finding]
Current hypothesis: [If formed]
Next: [Proposed action - awaiting user direction]