claude-compaction-restore skillA
claude-compaction-restore is agent-read markdown (skill) from mvschwarz/openrig: Use when a Claude Code session has just compacted, is about to compact, reached context limit, resumed after /compact, or needs to rebuild its working mental model from Claude JSONL transcripts and touched files..
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.
What the file says
# Claude Compaction Restore
Use this skill to preserve continuity before Claude Code compacts and to
restore continuity after compaction. Follow the active restore request or
configured continuity policy. A hook notice identifies available evidence; it
does not by itself request a seat restoration.
## If You Are About To Compact
Prepare durable continuity before the context boundary.
1. Identify the active task, queue item, mission/slice, branch or commit, and
current working directory.
2. Record the current state: decisions made, files changed, commands/tests run,
evidence produced, blockers, caveats, and the next concrete step.
3. Create or update a durable mental-model restore map. This map is the main
artifact future-you will use to rebuild context after compaction.
4. In the restore map, write an ASCII file/folder tree of every path that
mattered to your working mental model during this session. Include:
- the active queue item or mission packet;
- mission notes, progress, decisions, and evidence files;
- Claude memory/project notes you used or wrote, especially when the memory
folder is shared by many agents;
…Read the whole file at its exact version.
How to install
mdr add mvschwarz/openrig/claude-compaction-restore@git:20260907.3949b26mdr add mvschwarz/openrig/claude-compaction-restore@sha256:6c6a8b008bf838e0Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.
[](https://markdownregistry.com/a/art_sdsuiohof63c6rxm)
0 badge views in 30 days
Versions
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260907.3949b26 latest | 2026-09-07 | 3949b26 | 8,980 B | A | view · diff |
| git:20260826.bdc404f | 2026-08-26 | bdc404f | 9,079 B | A | view · diff |
| git:20260802.4c6d888 | 2026-08-02 | 4c6d888 | 6,358 B | A | view · diff |
| git:20260513.35ac9f2 | 2026-05-13 | 35ac9f2 | 6,035 B | A | view · diff |
| git:20260513.e522d95 | 2026-05-13 | e522d95 | 6,082 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (8980 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
mvschwarz/openrig · 362 stars · license Apache-2.0 · pushed 2026-09-25 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_sdsuiohof63c6rxm GET https://markdownregistry.com/api/v1/resolve?ref=mvschwarz/openrig/claude-compaction-restore GET https://markdownregistry.com/api/v1/blob/6c6a8b008bf838e003a584011616b3698e83d150ac6e850b4f53ec28828300ef
Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.