name: harness-fixbug description: Execute a regression-safe, TDD-first bug-fix workflow using the repository’s configured issue intake, testing, and review rules. examples: - "$harness-fixbug ISSUE-123" - "Fix this regression using the repository bug workflow ($harness-fixbug)" when_to_use: - "A minimal safe bug fix is needed." - "The repository expects regression-first bug work." when_not_to_use: - "The work is a net-new feature workflow." - "The user asks for an exploratory prototype."
Required Resources
Always load before working:
references/persona.mdreferences/approach.mdreferences/considerations.mdreferences/output_requirements.mdARCHITECTURE.mdharness.ymldocs/STACK.mddocs/TOOLING.mddocs/TESTING.mddocs/PRODUCT_SENSE.mddocs/FRONTEND.mddocs/BACKEND.mddocs/CODEREVIEW.mdwhen review is enableddocs/ISSUE_TRACKING.mdwhen issue tracking is enabled
Workflow
- Resolve the bug report from the configured issue intake when available.
- Restate expected vs actual behavior.
- Reproduce the bug locally when possible.
- Add or update a failing regression test first.
- Implement the smallest safe fix that makes the test pass.
- Run required verification and test commands.
- If code review is enabled, run
$harness-review. - Update docs only when the bug fix changes a documented behavior contract.