.claude/skills/debug/SKILL.md
--- name: debug description: Systematic debugging with 4 mandatory phases. Use when fixing bugs, investigating errors, or troubleshooting unexpected behavior. DO NOT skip to the fix — investigate first. Trigger keywords: bug, error, broken, not working, crash, failing, debug, investigate, troubleshoot, wrong output, unexpected behavior, regression. --- # /debug — Systematic Debugging Protocol 4-phase debugging. Phases 1-3 are read-only. No code changes until Phase 4. ## Usage ``` /debug /deb
npx skillsauth add khamel83/oneshot .claude/skills/debugInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
4-phase debugging. Phases 1-3 are read-only. No code changes until Phase 4.
/debug
/debug <description of the problem>
Do not fix anything. Do not suggest fixes. Only observe.
git log --oneline -10Output: Write a structured summary to 1shot/DEBUG.md:
## Symptom
{what's wrong}
## Expected vs Actual
- Expected: {what should happen}
- Actual: {what happens instead}
## Error Output
{exact error, stack trace, or observation}
## Context
- Files read: {list}
- Recent changes: {relevant git log}
- Tests: {passing/failing}
Still no code changes. Identify the root cause class.
Output: Append to 1shot/DEBUG.md:
## Root Cause
{one-sentence explanation}
## Bug Class
{category from above}
## Evidence
- {file}:{line} — {why this is the problem}
- {file}:{line} — {supporting evidence}
Design the minimal fix before writing it.
Output: Append to 1shot/DEBUG.md:
## Proposed Fix
{exact change}
## Risk Assessment
- Could break: {list}
- Safe because: {reasoning}
## Verification Plan
{how to confirm the fix works}
Ask the user: "Does this analysis look right? Should I proceed with the fix?"
Now you may write code.
fix: {what was wrong}Output: Append to 1shot/DEBUG.md:
## Fix Applied
- Changed: {file}:{line}
- Verification: {test output}
- Regression test: {added or N/A}
Debug Complete
├─ Root cause: {one-liner}
├─ Bug class: {category}
├─ Files changed: {count}
├─ Verification: {pass/fail}
└─ Regression test: {added/skipped}
development
Smart visual analysis for websites and images using Playwright screenshots and AI vision.
development
--- name: tdd description: Test-driven development with mandatory RED-GREEN-REFACTOR cycle. Enforces writing failing tests before production code. Use when implementing new features, fixing bugs with test coverage, or when the user wants TDD discipline. Trigger keywords: tdd, test first, test driven, red green refactor, add tests, coverage, write a test, failing test. --- # /tdd — Test-Driven Development RED-GREEN-REFACTOR cycle. No production code without a failing test shown first. ## Usage
tools
Quick iterations on existing projects. Load context, ask what's next, execute in burn-down mode.
tools
Manage encrypted secrets between the master vault and projects using SOPS/Age.