Entry point for bug fixes that **mandates test-first verification**. Before ANY fix is implemented, the bug MUST be reproduced via automated test.
Mandates test-first bug fixes. Writes a failing test to reproduce the issue, verifies it fails, then implements the minimal fix that makes the test pass.
/plugin marketplace add fx/cc/plugin install fx-dev@fx-ccEntry point for bug fixes that mandates test-first verification. Before ANY fix is implemented, the bug MUST be reproduced via automated test.
/fix TypeError in auth.js
/fix Shopping cart total not updating
/fix https://github.com/owner/repo/issues/123
⛔ NEVER proceed with a fix without first writing a failing test that reproduces the bug.
This is NON-NEGOTIABLE. The workflow is:
If you cannot reproduce the bug via automated test:
MANDATORY: Load the SDLC skill, then follow the Fix Workflow variation.
Skill tool: skill="fx-dev:sdlc"
After the skill loads, execute with this modified Step 2 (Requirements Analysis):
Before ANY implementation:
Task tool:
subagent_type: "fx-dev:coder"
prompt: "Write a FAILING test that reproduces this bug:
[BUG DESCRIPTION]
Requirements:
- Test must be as concise as possible
- Test must fail with the reported error/behavior
- Test must pass after the bug is fixed
- NO implementation yet - only the test
- Commit the failing test
Output: Test file path and failure output"
description: "Write failing bug test"
When implementing the fix:
Task tool:
subagent_type: "fx-dev:coder"
prompt: "Fix this bug. The failing test is at [TEST PATH].
[PLAN FROM STEP 3]
Requirements:
- Implement the minimal fix
- The failing test must now pass
- All other tests must still pass
- Commit the fix
Output: Files changed and test results"
description: "Implement bug fix"
Task: [USER INPUT]
The SDLC skill provides the remaining mandatory steps. Follow them exactly.