Pre Compact — Development skill for Claude Code
Prepare for a MANUAL /compact — flush your in-context working-set to disk so the.
How to install Pre Compact
Installs to ~/.claude/commands/drushegh-ccmaf-pre-compact.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/drushegh/CCMAF/HEAD/.claude/commands/pre-compact.md -o ~/.claude/commands/drushegh-ccmaf-pre-compact.md Restart Claude Code, or start a new session, for it to be picked up.
What Pre Compact does
Prepare for a MANUAL `/compact` — flush your in-context working-set to disk so the compaction summary can't lose anything load-bearing. This is the lightweight, **in-session** counterpart to `/wrapup`: NOT a session-end (no commit/push ceremony, no instinct-miner, no memory sweep) — the session continues right after you `/compact`.
**Step 0 — v2 self-route (read this first):** if `.claude/.framework-version` contains a `FRAMEWORK_LINE=v2` line, this project runs the CCMAF v2 plugins — invok
Alternatives in Development
- Tentacle Context Init — You are working on the {{tentacleName}} section 1.4k ★
- Claude Cognitive — Working memory for Claude Code - persistent context and multi-instance coordination 440 ★
- Magic Compact — Lossless context compression plugin for Claude Code & OpenCode 144 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Compact Prepare
Flush what this session learned into the files that outlive it - AGENTS.md, CLAUDE.md, project-conventions, pa
Context Compact
Prepare context for compaction: $ARGUMENTS
Compact
Prepare session state for context compaction — capture learnings, save state, then compact
Sync Context
Manual cross-project sync between local .agent-memory/ and the global ~/.claude-memory/global/ store — privacy
Collect Insights
Use when you want to flush pending insights to Obsidian vault and epistemic tracking. Captures ★ Insight block
Mach Daily
Machiavelli — daily digest of corporate intrigue. Who to talk to, what to prepare, what to watch. Manual comma
Related Agents
Checker Summarizer
Runs a given checker CLI command and returns a compact, structured verdict — never the raw output. Use for det
Perl Release Check
Prepare a SINGLE Perl distribution for release. Works in the current working directory. Checks Changes, docs,
Prepare Delivery Agent
Run pre-ship quality gate pipeline. Invoke prepare-delivery skill and return structured results.