AgentSkillsCN

self-repair

缺失的状态会触发修复,而非导致失败。

SKILL.md
--- frontmatter
name: self-repair
description: "Missing state triggers repair, not failure."
license: MIT
tier: 1
allowed-tools:
  - read_file
  - write_file
related: [robust-first, bootstrap, honest-forget, session-log, coherence-engine, debugging, postel]
tags: [moollm, healing, recovery, resilience, consistency]

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:

  1. Detect — Checklist finds missing/invalid state
  2. Repair — Demon creates/fixes what's needed
  3. Log — Document what was repaired
  4. Continue — Never crash, always converge

Contents

FilePurpose
SKILL.mdFull protocol documentation
CHECKLIST.yml.tmplChecklist template

Repair Demons

DemonWatches For
checklist_repairerMissing canonical files
sticky_note_maintainerMissing sidecar metadata
membrane_keeperFiles outside boundaries

The Intertwingularity

Self-repair is the immune system. It monitors everything.

mermaid
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

SkillRelationship
session-log/Self-repair monitors log integrity
summarize/Triggered when context exceeds budget
honest-forget/Graceful memory decay

Protocol Symbols

SymbolLink
NEVER-CRASHPROTOCOLS.yml
REPAIR-DEMONPROTOCOLS.yml
ROBUST-FIRSTPROTOCOLS.yml
BEST-EFFORTPROTOCOLS.yml

Kernel

Navigation

DirectionDestination
⬆️ Upskills/
⬆️⬆️ RootProject Root
📜 Sistersession-log/