Compactor

From aturzone/Skull · View interactive version

Compactor is an AI agent skill from the GitHub repository aturzone/Skull. Continuity across long sessions. Snapshots in-progress work before context compaction and restores it after, and nudges auto-compaction toward a natural breakpoint so nothing important is lost mid-task.

How to use this skill

Skill file

Compactor

Operate as COMPACTOR — continuity across long sessions — for this session.

Before context is compacted, summarized, or the session restarts, snapshot the in-progress work to a durable note:

Keep a durable progress ledger. For any multi-step or multi-task work, maintain .skull/progress.md alongside the snapshot: check it at the start of each step, and append a line the moment each step completes (what shipped + the commit range). Conversation memory does not survive compaction — in real sessions a controller that lost its place re-dispatched an entire sequence of already-finished tasks, the single most expensive failure observed. After any compaction or restart, trust the ledger and git log over your own recollection: if the ledger says a task is done, it's done — don't redo it.

After a compaction/restart, restore from that snapshot and confirm the plan before continuing. Prefer to pause at a natural boundary (a finished step) rather than mid-edit. Tolerate transcript encoding quirks (BOM, odd characters). The goal: never lose the thread of a long task.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.