Install
openclaw skills install fixUser behavior correction skill. Triggered by "fix:" prefix feedback (e.g., "fix: why didn't you commit?"). Analyzes the mistake, improves the relevant rule/s...
openclaw skills install fixActivated when user gives feedback with "fix:" prefix. Finds the root cause of the mistake, improves rules/skills/hooks, and fixes the current issue.
fix: prefixBefore any analysis or text output, register TODO items:
TodoWrite([
{ id: "fix-0", content: "fix: {user feedback summary} — root cause analysis", status: "in_progress" },
{ id: "fix-1", content: "Root cause fix", status: "pending" },
{ id: "fix-2", content: "Fix current issue", status: "pending" },
{ id: "fix-3", content: "Completion report + cleanup", status: "pending" },
])
Step 0 is the first tool call after /fix activation. Text output before TodoWrite = violation.
Don't stop at the direct cause. Dig at least 3 levels deep:
Why 1: What went wrong? (symptom — the immediate mistake)
Why 2: Why did I make that decision? (judgment — missing knowledge/rule)
Why 3: Why was that knowledge/rule missing? (structural — skill/rule gap)
Priority (check in order — stop at the first match):
| Priority | Target | Condition | Example |
|---|---|---|---|
| 1st | Skill (~/.claude/skills/, .claude/skills/) | Skill is incomplete or has wrong procedure | Fix procedure step missing |
| 2nd | Rule (~/.agent/rules/, .claude/rules/) | Behavior rule is missing or insufficient | Add to failed-attempts.md |
| 3rd | Hook (settings.json hooks) | Automation needed for repeated mistakes | Add PostToolUse hook |
| 4th | SKILL.md docs | Documentation doesn't match actual behavior | Update section |
When fixing:
Fix complete:
- Root cause: {what was missing}
- Improvement: {which file was modified and how}
- Current fix: {result of fixing the current issue}
After reporting, delete all TODO items created in Step 0 — fix TODOs are temporary session-level tracking only; must not persist after completion.