# Bug Fix Workflow

You are about to fix a bug using the **Bug-Fix Workflow**.

This workflow orchestrates 3 specialized agents:
1. **Developer** - Fixes the bug
2. **Tester** - Writes tests to prevent regression
3. **Reviewer** - Validates the fix

## Instructions

1. **Understand the bug** - Reproduce it if possible
2. **Use the orchestrator MCP** to get workflow information:
   - Use `get_workflow_info` tool with workflowName: "bug-fix"
3. **Execute each workflow step manually**:

   ### Step 1: Fix (Developer Agent)
   - Use `get_agent_info` for "developer"
   - Analyze the bug and identify root cause
   - Implement the fix following clean code principles
   - NO inline comments - refactor instead

   ### Step 2: Test (Tester Agent)
   - Use `get_agent_info` for "tester"
   - Write regression tests
   - Ensure the bug is fixed
   - Run all tests to verify no new issues

   ### Step 3: Review (Reviewer Agent)
   - Use `get_agent_info` for "reviewer"
   - Validate the fix
   - Check test coverage
   - Approve or request changes

## Required Information

Before starting, gather:
- **Bug description** - What's the issue?
- **Steps to reproduce** - How to trigger it?
- **Expected behavior** - What should happen?
- **Actual behavior** - What happens instead?

## Important Notes

- **Write tests first** - Reproduce the bug in a test
- **Minimal changes** - Only fix what's broken
- **Run full test suite** - Ensure no regressions
- **Document if needed** - Add WHY comments only if necessary (business rules, gotchas)

Now, ask the user what bug they want to fix!
