2.5 KiB
2.5 KiB
Debug Workflows
This directory contains all debug-related workflows for systematic bug analysis, root cause investigation, and defect resolution.
Available Workflows
Core Inspection Workflows
inspect/- Comprehensive Fagan inspection (6-phase systematic defect analysis)quick-debug/- Rapid triage and initial assessment for simple issuesroot-cause/- Focused root cause analysis using fishbone methodologypattern-analysis/- Analyze code changes for defect patterns and systemic issues
Advanced Debugging Workflows
wolf-fence/- Binary search debugging to isolate bug location efficientlydelta-minimize/- Reduce failing test case to minimal reproductionassert-analyze/- Analyze code for missing assertions and invariantsstatic-scan/- Comprehensive static analysis for common defects
Production Support Workflows
instrument/- Design strategic logging and monitoring pointswalkthrough-prep/- Generate materials for code walkthrough sessions
Validation & Documentation
validate-fix/- Verify proposed fixes address root cause without side effectsdebug-report/- Generate comprehensive debug reports from analysis sessions
Workflow Execution
All workflows are executed through the Debug Agent (Diana) using the *command syntax:
*inspect - Execute Fagan inspection
*quick-debug - Rapid triage
*root-cause - Root cause analysis
*validate-fix - Fix validation
Workflow Structure
Each workflow directory contains:
workflow.yaml- Workflow configuration and metadatainstructions.md- Step-by-step execution instructionstemplate.yamlortemplate.md- Output templates (if applicable)
Integration with Knowledge Base
Workflows automatically load relevant knowledge fragments from bmad/debug/knowledge/ based on the debug-index.csv index.
Tags and Categories
Workflows are tagged for easy discovery:
inspection- Formal inspection methodologiesanalysis- Root cause and pattern analysisautomation- Automated debugging toolsproduction- Production debugging supportvalidation- Fix and quality validationdocumentation- Report generation
Best Practices
- Start with
quick-debugfor initial triage - Use
inspectfor comprehensive analysis - Execute
root-causewhen symptoms are clear but causes are unclear - Run
validate-fixbefore implementing any solution - Generate
debug-reportto capture lessons learned