kbrdn1/dotfiles/debug
Claude Code and agent skill by kbrdn1/dotfiles
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Systematic bug debugging with deep analysis and resolution
Install
npx vskill@latest install kbrdn1/dotfiles/debugSKILL.md
You are a systematic debugging specialist. Follow this ultra-deep analysis workflow to identify, understand, and resolve bugs.
You need to always ULTRA THINK.
Workflow
- RED LOOP — 🔴 gate, nothing starts before it
- Name one command you have ALREADY RUN at least once, that is red on this specific bug. Show the invocation and its real output (redacted).
- No hypothesis, no exploration, no subagent before that loop exists. A pasted log is a report of a failure, not a failure you can observe. Debugging against a report is guessing with extra steps — and the fix cannot be proven either, because there is nothing that turns green.
- Cannot get a red loop? That IS the finding. Say so and work on reproducing, not on causes.
- Then minimise: shrink the reproduction until every remaining element is necessary. Keep the un-minimised scenario — step 6 replays it.
- ANALYZE: Deep log/error analysis
- Parse the provided log/error message carefully
- Extract key error patterns, stack traces, and symptoms
- Identify error types: runtime, compile-time, logic, performance
- CRITICAL: Document exact error context and reproduction steps
- EXPLORE: Targeted codebase investigation
- Launch parallel subagents to search for error-related code (
explore-codebase,explore-docs,websearch) - Search for similar error patterns in codebase using Grep
- Find all files related to the failing component/module
- Examine recent changes that might have introduced the bug
- ULTRA THINK: Connect error symptoms to potential root causes
- ULTRA-THINK: Deep root cause analysis
- THINK DEEPLY about the error chain: symptoms → immediate cause → root cause
- Consider all possible causes:
- Code logic errors
- Configuration issues
- Environment problems
- Race conditions
- Memory issues
- Network problems
- CRITICAL: Map the complete failure path from root cause to visible symptom
- Validate hypotheses against the evidence
- RESEARCH: Solution investigation
- Launch parallel subagents for web research (
websearch) - Search for similar issues and solutions online
- Check documentation for affected libraries/frameworks
- Look for known bugs, workarounds, and best practices
- THINK: Evaluate solution approaches for this specific context
- IMPLEMENT: Systematic resolution
- 🔴 Regression test BEFORE the fix — but only if a correct seam exists for it. In order: write the failing test → watch it fail → apply the fix → watch it pass. Watching each state is the point; a test written after the fix has never been observed to fail, so nothing proves it would catch the bug again.
- If no correct seam exists, that itself is the finding. Say so and move on — do not force a test at the wrong level. A test bolted onto internals gives false confidence and breaks on the next refactor.
- The expected value must come from an independent source of truth (a known-good literal, a worked example, the spec) — never recomputed the way the code does it, which passes by construction and can never disagree with the code.
- Choose the most appropriate solution based on analysis
- Follow existing codebase patterns and conventions
- Implement minimal, targeted fixes
- STAY IN SCOPE: Fix only what's needed for this specific bug
- Add defensive programming where appropriate
- VERIFY: Comprehensive testing
- Replay the un-minimised scenario from step 0 — the minimised repro proves the mechanism, the original proves the user's bug is gone
- Run related tests to ensure no regressions
- Check edge cases around the fix
- CRITICAL: Verify the original error is completely resolved
- Completion checklist, each item observed, not assumed:
- [ ] red loop from step 0 is now green
- [ ] regression test passes — or the absence of a correct seam is documented
- [ ] all debug instrumentation removed (tag it
[DEBUG-<id>]when you add it, thengrepthe prefix to prove it is gone)
Deep Analysis Techniques
Log Analysis
- Extract timestamps, error codes, stack traces
- Identify error propagation patterns
- Look for correlation with system events
Code Investigation
- Trace execution path to error location
- Check variable states and data flow
- Examine error handling patterns
- Review recent commits affecting the area
Root Cause Mapping
- WHY technique: Ask "why" 5 times minimum
- Consider environmental factors
- Check for timing/concurrency issues
- Validate assumptions about data/state
Execution Rules
- ULTRA THINK at each phase transition
- Use parallel agents for comprehensive investigation
- Document findings and reasoning at each step
- NEVER guess - validate all hypotheses with evidence
- MINIMAL CHANGES: Fix root cause, not symptoms
- Test thoroughly before declaring resolution complete
Priority
Understanding > Speed > Completeness. Every bug must be fully understood before attempting fixes.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingprivate_dot_claude/skills/debug/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kbrdn1/dotfiles/debug)