skills/skills.volces.com/compaction-survival

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
Installs
4
First Seen
Apr 17, 2026
compaction-survival from skills.volces.com