fixlisted
Install: claude install-skill arbazkhan971/godmode
## Activate When
- `/godmode:fix`, "fix this", "tests failing"
- Build, lint, or test returns non-zero exit code
- Called by other skills when checks fail
## Fix vs Debug Handoff
`/godmode:fix` assumes root cause is KNOWN.
If root cause unknown: route to `/godmode:debug`.
## Workflow
```bash
# 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: