Complete bug fixing workflow with intelligent routing based on issue complexity. Automatically activates before fixing ANY bug, error, test failure, or code problem.

What This Skill Does

Fix orchestrates the entire debugging and repair process from investigation to verified solution. It assesses complexity, routes to the appropriate workflow, and ensures fixes don’t break other parts of the codebase.

Think of it as your bug triage system—analyzing the problem, selecting the right strategy (quick, standard, or deep), and coordinating parallel verification to prevent regressions.

Core Capabilities

  • Complexity assessment and intelligent workflow routing
  • Parallel root cause hypothesis exploration
  • Simple/Moderate/Complex/Parallel issue handling
  • Autonomous or human-in-the-loop review modes
  • Comprehensive verification to prevent new issues
  • Automatic docs updates and commit management

Workflow Modes

ModeRecommend WhenBehavior
Autonomous (default)Simple/moderate issuesAuto-approve if score ≥9.5 & 0 critical
Human-in-the-loop ReviewCritical/production codePause for approval at each step
QuickType errors, lint, trivial bugsFast debug → fix → review cycle

The Process

Step 1: Mode Selection

First action (unless “auto” in request): Ask user to choose workflow mode

Step 2: Debug

  • Activate debug skill
  • Guess all possible root causes
  • Explores the codebase in parallel to verify each hypothesis
  • Create report with findings

Step 3: Complexity Assessment & Fix

Classify before routing:

LevelIndicatorsWorkflow
SimpleSingle file, clear error, type/lintQuick workflow
ModerateMulti-file, root cause unclearStandard workflow
ComplexSystem-wide, architecture impactDeep workflow
Parallel2+ independent issuesParallel developers

Step 4: Fix Verification

  • Read and analyze all changes
  • Scans related code to ensure fixes don’t cause regressions
  • Ensure fixes don’t break other parts
  • Prevent future issues with comprehensive validation

Step 5: Finalize

  • Report summary with confidence level, changes, related files
  • Ask to commit via git-manager and update docs via docs-manager

Usage

/fix [--auto|--review|--quick]

Activate automatically when mentioning bugs, errors, test failures, CI/CD issues, type errors, lint, log errors, UI issues, or code problems.

Example Prompts

  • “Tests are failing in the auth module”
  • “Fix the type error in UserProfile component”
  • “Debug why the API returns 500 on login”
  • “The build is broken in CI”
  • “Users report the app crashes on logout”

Output Format

✓ Step 0: [Mode] selected - [Complexity] detected
✓ Step 1: Root cause identified - [summary]
✓ Step 2: Fix implemented - [N] files changed
✓ Step 3: Tests [X/X passed]
✓ Step 4: Review [score]/10 - [status]
✓ Step 5: Complete - [action taken]

What Makes This Different

Fix doesn’t just patch symptoms—it finds root causes, verifies fixes across the codebase, and prevents similar issues in the future through defense-in-depth validation. The result: reliable fixes, not band-aids.

  • Debug - Systematic debugging framework
  • Cook - For implementing new features