Agent skill
self-repair
Missing state triggers repair, not failure.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/self-repair
SKILL.md
Self Repair
Missing state triggers repair, not failure.
Checklist-based self-healing demons.
[!IMPORTANT] NEVER-CRASH — The core principle. Repair instead of fail. Always.
The Principle
When something's wrong:
- Detect — Checklist finds missing/invalid state
- Repair — Demon creates/fixes what's needed
- Log — Document what was repaired
- Continue — Never crash, always converge
Contents
| File | Purpose |
|---|---|
| SKILL.md | Full protocol documentation |
| CHECKLIST.yml.tmpl | Checklist template |
Repair Demons
| Demon | Watches For |
|---|---|
checklist_repairer |
Missing canonical files |
sticky_note_maintainer |
Missing sidecar metadata |
membrane_keeper |
Files outside boundaries |
The Intertwingularity
Self-repair is the immune system. It monitors everything.
graph LR
SR[🔧 self-repair] -->|monitors| SL[📜 session-log]
SR -->|monitors| WS[working-set.yml]
SR -->|creates| HOT[hot.yml / cold.yml]
SR -->|repairs| FILES[missing files]
SR -->|part of| KERNEL[kernel/self-healing]
Dovetails With
Sister Skills
| Skill | Relationship |
|---|---|
| session-log/ | Self-repair monitors log integrity |
| summarize/ | Triggered when context exceeds budget |
| honest-forget/ | Graceful memory decay |
Protocol Symbols
| Symbol | Link |
|---|---|
NEVER-CRASH |
PROTOCOLS.yml |
REPAIR-DEMON |
PROTOCOLS.yml |
ROBUST-FIRST |
PROTOCOLS.yml |
BEST-EFFORT |
PROTOCOLS.yml |
Kernel
- kernel/self-healing-protocol.md — Full specification
- schemas/agent-directory-schema.yml — What gets repaired
Navigation
| Direction | Destination |
|---|---|
| ⬆️ Up | skills/ |
| ⬆️⬆️ Root | Project Root |
| 📜 Sister | session-log/ |
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?