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
- System Cache Cleanup — Clean temporary files and caches to free disk space: $ARGUMENTS 23.4k ★
- Agent.System.Main.Tips — General operation manual 19k ★
- Tentacle Context Init — You are working on the {{tentacleName}} section 1.4k ★
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
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
Session Budget
Assess whether to compact/clear this session and prepare a reinit-ready handoff
Related Agents
Checker Summarizer
Runs a given checker CLI command and returns a compact, structured verdict — never the raw output. Use for det
Prepare Delivery Agent
Run pre-ship quality gate pipeline. Invoke prepare-delivery skill and return structured results.
AGENTS.md — Post-Compact Reminder For Claude Code
Guidelines for AI coding agents working in this Bash/Shell codebase. ---