groundnuty

Compact Prepare — Development skill for Claude Code

Development community

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

Terminal
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 Repository