/godmode:fixfrom godmode
Automated fix loop that commits one fix per iteration, auto-reverts on regression, and retries up to 3 times per error. Useful for resolving build, lint, or test failures.
Ships in godmode. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
/godmode:fix, "fix this", "tests failing"/godmode:fix assumes root cause is KNOWN.
If root cause unknown: route to /godmode:debug.
# Detect stack and run checks
build_cmd 2>&1; echo "EXIT: $?"
lint_cmd 2>&1; echo "EXIT: $?"
test_cmd 2>&1; echo "EXIT: $?"
LOOP:
error_count = run_all_checks()
original = error_count
IF error_count == 0: STOP — all checks pass
WHILE error_count > 0:
1. TRIAGE — priority: build > type > lint > test
Run failing check, parse errors
2. PICK — highest priority, not in skipped_list
Create signature: "{file}:{line}:{error_code}"
3. ANALYZE — read FULL error output (all lines)
Read source at file:line +/- 15 lines
Name mismatch: "expected X, got Y because Z"
4. FIX — change <= 5 lines for ONE error
Fix cause, not symptom
5. COMMIT — git add + commit before verify
6. VERIFY — new_count = run_all_checks()
IF new_count >= error_count:
git reset --hard HEAD~1
attempt_count[signature] += 1
IF attempt_count >= 3: skip error
ELSE: error_count = new_count
7. LOG — append to .godmode/fix-results.tsv
THRESHOLDS:
Max attempts per error: 3
Max lines changed per fix: 5
Status report: every 5 iterations
Consecutive reverts to stop: 5
IF all errors skipped: recommend /godmode:debug
Fix ONE error per iteration. Verify. Commit. Next. Never batch-fix multiple errors in one commit. Each fix independently verifiable and revertable.
Triage: {build|lint|test} failing with {N} errors
Pick: Fixing [{iter}/{original}]: {type} at {file}:{line}
Analyze: Root cause: {expected} vs {actual}
Verify (kept): KEPT: count {before} → {after}
Verify (revert): REVERTED: attempt {N}/3
Status: {remaining} remaining (from {original})
Final: Fixed: {original} → {count} in {N} iters.
Skipped: {list}.
iteration error_type file line fix_description lines_changed status
Never ask to continue. Loop autonomously until done.
SKILL.md §14. Principles prelude, pre-commit audit, terse/stdio/tokens, DispatchContext validation, Progressive Disclosure routing, discard cost hierarchy all fire by default.build_cmd && lint_cmd && test_cmd all exit 0KEEP if: error count decreased AND no new errors
DISCARD if: count did not decrease OR new errors
On discard: git reset --hard HEAD~1.
After 3 attempts, skip error.
STOP when FIRST of:
- error_count == 0 (all checks pass)
- All errors either fixed or in skipped_list
- 3 consecutive iterations with 0 fixed
- > 5 consecutive reverts across different errors
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
fix-loop, auto-revert, error-triage, build-fix, lint-fix, test-fix
Claude Code installs this plugin but refuses to load it
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
Checked against Claude Code 2.1.332. The listing below is what the repository ships; Claude Code doesn't load it as published.
135 skills in this plugin
/a11yAccessibility. WCAG 2.1 AA/AAA, a11y audit, color contrast, keyboard navigation, screen reader, Axe, Pa11y, Lighthouse./agentAI agent development. ReAct/plan-and-execute/multi-agent architectures, tool design, memory systems, guardrails, orchestration (LangChain, LlamaIndex, CrewAI, AutoGen)./analyticsProduct analytics implementation — event tracking, funnel analysis, A/B testing, Segment/Amplitude/Mixpanel/PostHog, privacy-compliant instrumentation./angularAngular architecture. NgRx, Signals, RxJS, standalone components, lazy loading, dependency injection, Jasmine, Jest.Other plugins' skills for the same job