compaction-survival
Installation
SKILL.md
Compaction Survival System
Compaction destroys specifics: file paths, exact values, config details, reasoning chains. This skill ensures critical state survives.
The problem: When your context window fills up, OpenClaw compacts older messages into a summary. Summaries lose precision β exact numbers become "approximately," file paths vanish, decisions lose their rationale. Your agent wakes up dumber after every compaction.
The fix: Three mechanisms that capture critical state before compaction hits, and recover it after.
Three Mechanisms
1. WAL Protocol (Write-Ahead Logging)
On EVERY incoming message, scan for:
- βοΈ Corrections β "It's X, not Y" / "Actually..."
- π Proper nouns β names, places, companies, products
- π¨ Preferences β styles, approaches, "I like/don't like"
- π Decisions β "Let's do X" / "Go with Y"
- π Draft changes β edits to active work
- π’ Specific values β numbers, dates, IDs, URLs, paths