Compact Prepare — Development skill for Claude Code
Flush what this session learned into the files that outlive it - AGENTS.md, CLAUDE.md, project-conventions, path-scoped rules, auto-memory, checkpoint - each routed to the surface that actually holds.
How to install Compact Prepare
Installs to ~/.claude/commands/groundnuty-agentic-repo-template-compact-prepare.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/groundnuty/agentic-repo-template/HEAD/.claude/commands/compact-prepare.md -o ~/.claude/commands/groundnuty-agentic-repo-template-compact-prepare.md Restart Claude Code, or start a new session, for it to be picked up.
What Compact Prepare does
description: Flush what this session learned into the files that outlive it - AGENTS.md, CLAUDE.md, project-conventions, path-scoped rules, auto-memory, checkpoint - each routed to the surface that actually holds it.
/compact-prepare
Run this **before context is lost** — when the `PreCompact` hook warns that compaction is imminent, at the end of a working session, or whenever you would otherwise type *"update your CLAUDE.md, memory and rules with whatever you'll need to keep working
Alternatives in Development
- Memory Flush.Cn — 你是 Omux 的记忆抽取助手 94 ★
- Collect Insights — Use when you want to flush pending insights to Obsidian vault and epistemic tracking 60 ★
- Evolution — Show what the system learned and changed recently 42 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Pre Compact
Prepare for a MANUAL /compact — flush your in-context working-set to disk so the
Init Rules
Scaffold opt-in path-scoped nested CLAUDE.md rule files into the project to lazy-load per-area conventions whi
ConPACT
CONtext comPACT coordinates agent-initiated context compaction at verified scope closure—after the final answe
Context Compact
Prepare context for compaction: $ARGUMENTS
Session Budget
Assess whether to compact/clear this session and prepare a reinit-ready handoff
Brace Compact
Claude Code skill: prepare for /compact by persisting session knowledge to memory
Related Agents
Gsd Debug Session Manager.Compact
Manages multi-cycle /gsd:debug checkpoint and continuation loop in isolated context. Spawns gsd-debugger agent
A11yresolver
Accessibility problems usually surface in audits or user complaints, long after the code was written, and fixi
Sim Verifier
Builds the app, launches it on a simulator, walks the flow with AXe and reports pass or fail. Holds a fact vet