Skip to main content
ClaudeWave
Slash Command17.9k repo starsupdated yesterday

focused-fix

The focused-fix command executes a systematic five-phase protocol to repair an entire feature or module by mapping its scope, tracing dependencies, diagnosing root causes with risk assessment, applying fixes sequentially with testing, and verifying all related tests pass. Use this when addressing substantial bugs or malfunctions that span multiple files or layers within a codebase.

Install in Claude Code
Copy
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/alirezarezvani/claude-skills/HEAD/.claude/commands/focused-fix.md -o ~/.claude/commands/focused-fix.md
Then start a new Claude Code session; the slash command loads automatically.

focused-fix.md

Systematically repair the feature/module at `$ARGUMENTS` using the focused-fix 5-phase protocol.

If `$ARGUMENTS` is empty, ask which feature/module to fix.

Read `engineering/focused-fix/SKILL.md` and execute ALL 5 phases IN ORDER:

1. **SCOPE** — Map the feature boundary (all files, entry points, internal files)
2. **TRACE** — Map inbound + outbound dependencies across the entire codebase
3. **DIAGNOSE** — Check code, runtime, tests, logs, config. Assign risk labels (HIGH/MED/LOW). Confirm root causes with evidence.
4. **FIX** — Repair in order: deps → types → logic → tests → integration. One fix at a time, test after each. 3-strike escalation if fixes cascade.
5. **VERIFY** — Run all feature tests + consumer tests. Summarize changes.

**Iron Law:** No fixes before completing Phase 3. No exceptions.