test-first-bugs
Installation
SKILL.md
Test-first bug fixing
Enforce a disciplined bug-fixing workflow that prevents regression and parallelizes fix attempts.
Core workflow
When a bug is reported, follow these steps in order:
Phase 1: Reproduce and document
- Understand the bug, Gather details about expected vs actual behavior
- Identify the test location, Determine where tests live in the project (check for
tests/,__tests__/,spec/,*.test.*,*.spec.*patterns) - Write a failing test, Create a test that demonstrates the bug
Phase 2: Fix with subagents
- Launch fix subagents, Use the Task tool with
subagent_type=general-purposeto attempt fixes - Run the test, Verify the fix by running the specific test
- Iterate if needed, If test still fails, launch additional subagents with new approaches