claude-compaction-restore SKILL.md skillA

claude-compaction-restore from mvschwarz/openrig is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add mvschwarz/openrig/claude-compaction-restore@git:20261113.0a6d575

Pins git:20261113.0a6d575 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
mvschwarz/openrig
Path
packages/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/SKILL.md
Versions recorded
17
Latest version
git:20261113.0a6d575, committed Nov 13, 2026
First version recorded
May 13, 2026
Size
17,889 bytes
Repository stars
8,889
License
Apache-2.0

Use when a Claude Code session is about to compact, has just compacted, reached its context limit, resumed after /compact, or must rebuild its working picture of a long-running seat from its own restore map, its JSONL transcript and the files it touched.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Claude Compaction Restore

Compaction keeps facts and loses connections. After a compaction you still know file names, row ids and
decisions as items. What you lose is the web between them: why a file matters, what depends on what, which
decision produced which artifact, what you were about to do next, and how this window relates to the ones
before it. Seats whose value is a wide, long-running picture (planners, orchestrators, reviewers holding a
standard) lose the most.

This skill keeps that picture alive across compactions. Before compacting, you write a **restore map**: a
short summary plus the connections between things that already exist on disk. After compacting, you
re-enter the world, read your own map, and rebuild the picture before acting. Over several compactions the
maps chain into one continuous record: a global context window that outlives any single session.

The previous version of this skill is kept at `reference/SKILL-v1.md` for comparison.

## What survives, and what you write

**Already on disk; point to it, don't copy it:**
- your session JSONL at `~/.claude/projects/<cwd-slug>/<session-uuid>.jsonl` (the post-compaction restore
…

Read the whole file at its exact version.

How to install

No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_sdsuiohof63c6rxm/e1a6ee501ae97d6de0a8df8dae01c088953f56907e76f10089908d7a8c5691a7.json

Then /plugin install mdr-claude-compaction-restore@markdownregistry-sdsuiohof63c6rxm in Claude Code. It installs git:20261113.0a6d575, the one graded A here, pinned to the commit it was graded at, and leaves it there.

The exact contents, by fingerprint
mdr add mvschwarz/openrig/claude-compaction-restore@sha256:e1a6ee501ae97d6d

The line at the top of this page pins the label git:20261113.0a6d575, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_sdsuiohof63c6rxm.svg)](https://markdownregistry.com/a/art_sdsuiohof63c6rxm)

6 badge image fetches in 30 days. What the badge shows.

Ask from your agent
claude mcp add --transport http markdownregistry https://markdownregistry.com/mcp/registry

Then ask it: what changed in mvschwarz/openrig/claude-compaction-restore since the version I have? It reads every saved version here, no key and no account. Any agent that speaks MCP can add it.

Got a copy of claude-compaction-restore from somewhere else? Ask it: where did my claude-compaction-restore come from, and what was changed? It names the public original, the version yours is closest to and every changed line. The text is not kept.

Versions

The registry has recorded 17 versions of this file, between May 13, 2026 and Nov 13, 2026, about one every 12 days.

Watch this file (sign in, one email per new version)

versioncommittedcommitsizeaudit
git:20261113.0a6d575 latest2026-11-13 0a6d575 17,889 BA view · diff
git:20261113.b1460a12026-11-13 b1460a1 17,548 BA view · diff
git:20261110.60a4a632026-11-10 60a4a63 17,423 BA view · diff
git:20261027.fb551fa2026-10-27 fb551fa 17,347 BA view · diff
git:20261021.6967c552026-10-21 6967c55 17,329 BA view · diff
git:20261008.2467b4e2026-10-08 2467b4e 16,872 BA view · diff
git:20261007.edf4b212026-10-07 edf4b21 16,590 BA view · diff
git:20261007.97372ac2026-10-07 97372ac 16,281 BA view · diff
git:20261004.7a9019d2026-10-04 7a9019d 16,083 BA view · diff
git:20261004.9e24dff2026-10-04 9e24dff 15,424 BA view · diff
git:20261003.8b793552026-10-03 8b79355 15,095 BA view · diff
git:20261002.b7ec2f82026-10-02 b7ec2f8 8,825 BA view · diff
git:20260907.3949b262026-09-07 3949b26 8,980 BA view · diff
git:20260826.bdc404f2026-08-26 bdc404f 9,079 BA view · diff
git:20260802.4c6d8882026-08-02 4c6d888 6,358 BA view · diff
git:20260513.35ac9f22026-05-13 35ac9f2 6,035 BA view · diff
git:20260513.e522d952026-05-13 e522d95 6,082 BA view
Keep it current by itself, install once

Committed this skill to a repository? Install the markdownregistry skill updates app on it, or on all of them. When the registry saves a newer version, a pull request brings your copy to it within minutes, the newest version first, then what changed and any check it newly trips. A copy you edited is never touched, and nothing is deleted.

Install on GitHub

It asks to read and write contents and pull requests, and to read metadata. No workflow file, no Actions setting, nothing runs on your runners. Uninstall it and everything the registry kept about your repository is deleted.

Keep it current by itself

Committed this skill to a repository? Add one workflow file, and when a newer version is saved, a pull request brings your copy to it, the newest version first, then what changed and any check it newly trips. A copy you edited is never touched, and nothing is deleted.

mkdir -p .github/workflows && curl -fsSL https://markdownregistry.com/ci/skill-updates.yml -o .github/workflows/skill-updates.yml

It runs daily on GitHub Actions, no key and no account. Read the workflow before you add it.

Check a whole project

From the root of your project, one line hashes each installed skill's SKILL.md, your AGENTS.md and your CLAUDE.md, and asks the registry once. Only the fingerprints and paths are sent.

sha256sum .claude/skills/*/SKILL.md AGENTS.md CLAUDE.md | curl -s --data-binary @- https://markdownregistry.com/api/v1/check-copies

In CI, add --fail-with-body: the answer is 409 when any file is behind, so the step fails and still prints which files.

sha256sum .claude/skills/*/SKILL.md AGENTS.md CLAUDE.md | curl -s --fail-with-body --data-binary @- https://markdownregistry.com/api/v1/check-copies

No sha256sum on your machine? shasum -a 256 prints the same lines.

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (17889 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

GitHub

mvschwarz/openrig · 8,889 stars · license Apache-2.0 · pushed 2026-11-18 · 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/e1a6ee501ae97d6de0a8df8dae01c088953f56907e76f10089908d7a8c5691a7

Your AI assistant 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.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from mvschwarz/openrig

developing-openrig SKILL.md skill
mvschwarz/openrig · .agents/skills/developing-openrig/SKILL.md · Use when changing OpenRig's own source in a clone of the openrig repository: finding which package or file owns a…
git:20261006.fcef78a · audit A · 8,889 stars
developing-openrig SKILL.md skill
mvschwarz/openrig · .claude/skills/developing-openrig/SKILL.md · Use when changing OpenRig's own source in a clone of the openrig repository: finding which package or file owns a…
git:20261006.fcef78a · audit A · 8,889 stars
DESIGN.md@docs DESIGN.md file
mvschwarz/openrig · docs/DESIGN.md
git:20261005.f6358a2 · audit A · 8,889 stars
agent-operated-software SKILL.md skill
mvschwarz/openrig · packages/daemon/assets/plugins/openrig-core/skills/agent-operated-software/SKILL.md · Use when designing, building, operating, or diagnosing an ongoing application whose live backend or control loop…
git:20261109.46ba2f5 · audit A · 8,889 stars
agent-operated-workflows SKILL.md skill
mvschwarz/openrig · packages/daemon/assets/plugins/openrig-core/skills/agent-operated-workflows/SKILL.md · Use when a bounded real-world procedure has a deterministic happy path but brownfield, variable, or partially knowable…
git:20260907.9006fc5 · audit A · 8,889 stars
applying-a-permission-policy SKILL.md skill
mvschwarz/openrig · packages/daemon/assets/plugins/openrig-core/skills/applying-a-permission-policy/SKILL.md · Use before launching a team during agent-guided setup, or when a user asks to configure OpenRig command permissions…
git:20261006.141513e · audit A · 8,889 stars
delegating-work SKILL.md skill
mvschwarz/openrig · packages/daemon/assets/plugins/openrig-core/skills/delegating-work/SKILL.md · Use when you have a task and must decide WHO does it — yourself, a spawned subagent, or another agent in the topology…
git:20261025.54bd485 · audit A · 8,889 stars
forming-an-openrig-mental-model SKILL.md skill
mvschwarz/openrig · packages/daemon/assets/plugins/openrig-core/skills/forming-an-openrig-mental-model/SKILL.md · Use when the system around you does not make sense yet: you just booted into a seat and do not know how the pieces fit…
git:20261022.daa23d3 · audit A · 8,889 stars
loading-addressable-markdown SKILL.md skill
mvschwarz/openrig · packages/daemon/assets/plugins/openrig-core/skills/loading-addressable-markdown/SKILL.md · Use when a mission, slice, dashboard, or task references Markdown as path#h2-slug or path#h2-slug/h3-slug outside the…
git:20260901.0b86028 · audit A · 8,889 stars
messaging-the-human SKILL.md skill
mvschwarz/openrig · packages/daemon/assets/plugins/openrig-core/skills/messaging-the-human/SKILL.md · Use when project policy calls for a human decision or update, a human delivery is pending or failed, or a reply must…
git:20261115.c60575e · audit A · 8,889 stars
mission-slice-sop SKILL.md skill
mvschwarz/openrig · packages/daemon/assets/plugins/openrig-core/skills/mission-slice-sop/SKILL.md · Use when starting, building, handing off, restoring, or closing a mission or slice under the default lightweight SDLC.
git:20261117.29d4a62 · audit A · 8,889 stars
openrig-operating-model SKILL.md skill
mvschwarz/openrig · packages/daemon/assets/plugins/openrig-core/skills/openrig-operating-model/SKILL.md · Use when you do not know WHERE something belongs: you learned a lesson and are unsure which file takes it; you are…
git:20261004.9e24dff · audit A · 8,889 stars

Every file in mvschwarz/openrig

Browse by kind, by grade A, or by owner.