fix-bug
Guide for fixing bugs in ClaudeBar following Chicago School TDD and rich domain design. Use this skill when: (1) User reports a bug or unexpected behavior (2) Fixing a defect in existing functionality (3) User asks "fix this bug" or "this doesn't work correctly" (4) Correcting behavior that violates the user's mental model --- # Fix Bug in ClaudeBar Fix bugs using Chicago School TDD, root cause analysis, and rich domain design. ## Workflow ``` ┌─────────────────────────────────────────────────────────────┐ │ 1. REPRODUCE & UNDERSTAND │ ├─────────────────────────────────────────────────────────────┤ │ • Reproduce the bug │ │ • Identify expected vs actual behavior │ │ • Locate the root cause in code │ └─────────────────────────────────────────────────────────────┘ │ ▼ ┌─────────────────────────────────────────────────────────────┐ │ 2. WRITE FAILING TEST (Red) │ ├─────────────────────────────────────────────────────────────┤ │ • Write test that exposes the bug │ │ • Test should FAIL before fix │ │ • Test should verify CORRECT behavior │ └─────────────────────────────────────────────────────────────┘ │ ▼ ┌─────────────────────────────────────────────────────────────┐ │ 3. FIX & VERIFY (Green) │ ├─────────────────────────────────────────────────────────────┤ │ • Implement minimal fix │ │ • Test now PASSES │ │ • All existing tests still pass │ └─────────────────────────────────────────────────────────────┘ ``` ## Phase 1: Reproduce & Understand ### Identify the Bug 1. **Reproduce**: Follow exact steps to trigger the bug 2. **Expected**: What SHOULD happen (user's mental model) 3. **Actual**:
Changelog: Source: GitHub https://github.com/tddworks/SkillsManager
No comments yet. Be the first one!