This skill should be used when the user reports a bug, describes unexpected behavior, says something is "broken", "not working", "failing", mentions an "error", "issue", or "problem" in code, or asks to "fix" something. Enforces test-driven bug fixing workflow.
SkillScore73Maintained
Automatic
◆Coding pack
Last verified 8/27/2026
What it changes
Passed 12 of 16 test cases with the skill, and 9 of 16 without it.
Without skill59%
With skill73%
Checks it passed that the model alone missed
Runs the full project test suite after the specific fix passes.
Sets subagent_type to general-purpose in the Task tool invocation.
Launches additional subagents with new approaches when the test still fails.
and 2 more in the full report
5 fixed11 passed either way4 still failing2 broke
Pass-rate lift
+14 pp
Tokens
+48%
Agent turns
0%
Response time
-50%
Model gemini-3.6-flashMeasured 8/27/2026v216 of 22 cases passed with skill · 16 comparable
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 5 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 5
Prompt
I've written a failing test in tests/test_payment.py that reproduces the currency conversion bug. I want to pass the fix task off to an automated worker agent. What exact parameter and value should be specified for the worker type in the Task tool call?
What was checked, without and with the skill
Checked
Without skill
With skill
Sets subagent_type to general-purpose in the Task tool invocation.
Missed
Passed
case-08 · gemini-3.6-flash · 8/27/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md221 lines4 filesincludes scripts
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-purpose to 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
Phase 3: Verify and complete
Run full test suite, Ensure no regressions were introduced
Report success, Confirm the bug is fixed with passing test as proof