← All skills
claude-compaction-restore
92 / 100 · Low risk
Fine to try. Some of what it can do is expected: a coding skill usually runs build and test commands.
By mvschwarz/openrig (GitHub) · coding · 8,816 stars · scanned at commit d9292d5
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.
Works with any agent that supports SKILL.md skills.
What this skill can do
Runs commands on your computer
This is disclosed by the author in the skill's SKILL.md or README. It runs automatically when the plugin is installed. Expected for a coding skill.
Found in 33 places.
Show 17 more
- packages/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/scripts/restore-from-jsonl.mjs, line 77
const result = spawnSync("find", [root, "-name", "*.jsonl", "-maxdepth", root === projectsRoot ? "4" : "2"], { - packages/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/scripts/restore-from-jsonl.mjs, line 241
const result = spawnSync("find", [full, "-maxdepth", candidate === "docs" ? "2" : "1", "-type", "f", "-name", "*.md"], { - packages/daemon/assets/plugins/openrig-core/hooks/claude.json, line 8
"command": "\"${OPENRIG_NODE:-node}\" \"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/activity-relay.cjs\" --from-plugin", - packages/daemon/assets/plugins/openrig-core/hooks/claude.json, line 18
"command": "\"${OPENRIG_NODE:-node}\" \"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/compaction-restore-bridge.cjs\"", - packages/daemon/assets/plugins/openrig-core/hooks/claude.json, line 29
"command": "\"${OPENRIG_NODE:-node}\" \"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/activity-relay.cjs\" --from-plugin", - packages/daemon/assets/plugins/openrig-core/hooks/claude.json, line 38
"command": "\"${OPENRIG_NODE:-node}\" \"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/compaction-restore-bridge.cjs\"", - packages/daemon/assets/plugins/openrig-core/hooks/claude.json, line 47
"command": "\"${OPENRIG_NODE:-node}\" \"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/refocus.cjs\" --runtime claude", - packages/daemon/assets/plugins/openrig-core/hooks/claude.json, line 58
"command": "\"${OPENRIG_NODE:-node}\" \"${CLAUDE_PLUGIN_ROOT}/skills/claude-compaction-restore/scripts/precompact-hook.mjs\"", - packages/daemon/assets/plugins/openrig-core/hooks/claude.json, line 69
"command": "\"${OPENRIG_NODE:-node}\" \"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/compaction-restore-bridge.cjs\"", - packages/daemon/assets/plugins/openrig-core/hooks/claude.json, line 78
"command": "\"${OPENRIG_NODE:-node}\" \"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/refocus.cjs\" --runtime claude", - packages/daemon/assets/plugins/openrig-core/hooks/claude.json, line 89
"command": "\"${OPENRIG_NODE:-node}\" \"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/activity-relay.cjs\" --from-plugin", - packages/daemon/assets/plugins/openrig-core/hooks/claude.json, line 100
"command": "\"${OPENRIG_NODE:-node}\" \"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/activity-relay.cjs\" --from-plugin", - packages/daemon/assets/plugins/openrig-core/hooks/claude.json, line 111
"command": "\"${OPENRIG_NODE:-node}\" \"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/activity-relay.cjs\" --from-plugin", - packages/daemon/assets/plugins/openrig-core/hooks/claude.json, line 120
"command": "\"${OPENRIG_NODE:-node}\" \"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/refocus.cjs\" --runtime claude", - packages/daemon/assets/plugins/openrig-core/hooks/claude.json, line 131
"command": "\"${OPENRIG_NODE:-node}\" \"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/activity-relay.cjs\" --from-plugin", - packages/daemon/assets/plugins/openrig-core/hooks/claude.json, line 142
"command": "\"${OPENRIG_NODE:-node}\" \"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/activity-relay.cjs\" --from-plugin", - packages/daemon/assets/plugins/openrig-core/hooks/codex.json, line 8
"command": "test -n \"$OPENRIG_SEAT_PROJECT_DIR\" && test -f \"$OPENRIG_NODE\" && test -x \"$OPENRIG_NODE\" || exit 0; exec \"$OPENRIG_NODE\" \"${PLUGIN_ROOT}/h
and 13 more places
Connects to the internet
The author does not mention this. It runs automatically when the plugin is installed.
Found in 3 places.
Install
Paste this into your terminal. It downloads exactly the version we scanned, not whatever is newest.
if [ -e ~/.agents/skills/'claude-compaction-restore' ] || [ -L ~/.agents/skills/'claude-compaction-restore' ]; then echo 'A skill folder named claude-compaction-restore already exists — not replacing it' >&2; false; else d=$(mktemp -d) && git clone --quiet --filter=blob:none --no-checkout 'https://github.com/mvschwarz/openrig' "$d" && git -C "$d" checkout --quiet 'd9292d5b0464c242a4c8d8da4bda7c42bce0b564' -- 'packages/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore' && mkdir -p ~/.agents/skills && cp -R "$d"/'packages/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore' ~/.agents/skills/'claude-compaction-restore' && rm -rf "$d"; fi
Codex reads ~/.agents/skills directly. For Claude Code, Cursor, Copilot, Gemini CLI, Antigravity or OpenCode, also link it. For Claude Code: ln -s ~/.agents/skills/'claude-compaction-restore' ~/.claude/skills/'claude-compaction-restore' (other agents: ~/.cursor/skills, ~/.copilot/skills, ~/.gemini/skills, ~/.gemini/config/skills, ~/.config/opencode/skills). Or install through the finder skill, which does both.
Badge for your README
The badge for mvschwarz/openrig shows the score of its lowest-scoring skill.

[](https://zalavijaysinh.github.io/skilltrust/repos/mvschwarz/openrig/)
Score history
| Date | Version | Score |
|---|
| 2026-11-11 | d9292d5 | 92 |
| 2026-11-08 | 7d15cef | 92 |
| 2026-11-07 | a0f410e | 92 |