claws-self-heallisted
Install: claude install-skill neunaha/claws
# claws-self-heal — Closed-Loop Intelligence Accumulator
## What this is
Claws watches its own bus. Every time a worker fails with a known runbook code (`RK-*`), the event-induction sidecar tallies occurrences in a 15-minute sliding window. When the threshold is crossed (≥3 occurrences, or any FATAL singleton), a `feedback_induced_*` draft memory is written to `memory/drafts/`. Drafts are not canonical until you promote them. Status bar shows `🧠 N draft(s)` when drafts are waiting. Nothing is automatic — you always control what becomes a lesson.
## When to invoke
- After a wave or fleet run to check whether new lessons were induced.
- When the status bar shows `🧠 N draft(s)` after a session.
- After a VS Code reload killed the sidecar — run `scan` to catch up.
- To clean up low-signal drafts before a release.
## When NOT to invoke
- Inside a running worker — this skill is operator-level only.
- As a substitute for [[claws-fix]]; fix the root cause first, then promote the lesson.
- When `CLAWS_NO_INDUCTION=1` is set (CI runs); no drafts are written.
- To bypass a lint failure — fix the draft body, do not skip the lint gate.
## Steps
1. **Check status:** `/claws-self-heal status` — draft count, oldest draft, sidecar PID.
2. **List drafts:** `/claws-self-heal list-drafts` — slug, runbook_id, occurrence count, age.
3. **Promote:** `/claws-self-heal promote <slug>` — atomic rename + lint pass → `system.memory.promoted` on bus.
4. **Forget:** `/claws-self-heal forget <slu