Write Bugfix Specification
sdd_write_bugfixGenerates a structured bug fix specification document including root cause analysis and test plan to resolve software defects.
Instructions
Generates and writes BUGFIX_SPEC.md with current behavior, expected behavior, unchanged behavior, root cause analysis, and test plan. Not gated by the state machine.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bug_title | Yes | Short title describing the bug | |
| current_behavior | Yes | What currently happens (the bug) | |
| expected_behavior | Yes | What should happen instead | |
| unchanged_behavior | No | Behaviors that must remain unchanged after the fix | |
| root_cause | No | Root cause analysis (if known) | |
| test_plan | No | How to verify the fix | |
| spec_dir | No | Spec directory path (relative to workspace root) | .specs |
| feature_number | No | Feature number (zero-padded, e.g. '001') | 001 |