do:compact-prep

Save memory, commit staged changes, and assess session progress before context compaction.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/adamfeldman/compound-workflows --skill do-compact-prep
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: do:compact-prep
Source: https://github.com/adamfeldman/compound-workflows/tree/main/plugins/compound-workflows/skills/do-compact-prep
Command: npx skills add https://github.com/adamfeldman/compound-workflows --skill do-compact-prep

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires bash, git, jq, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill prepares your session for context compaction by saving important information, committing changes, and queuing up the next task, preventing data loss and ensuring a smooth workflow.

Core Features & Use Cases

  • Context Preservation: Saves memory, code changes, and session state to disk.
  • Pre-Compaction Checklist: Runs checks for Git status, compound assessment, version compatibility, and cost summaries.
  • Actionable Batching: Presents a consolidated list of actions to skip (e.g., skipping commits or pushes) for user approval.
  • Worktree Management: Handles merging worktree changes back to the main branch.
  • Use Case: Before a long-running task that might trigger context compaction, run /compact-prep to ensure all your progress is saved and you can easily resume later.

Quick Start

Run /compact-prep to prepare for session compaction.

Frequently Asked Questions about do:compact-prep

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I save session state before context compaction in a coding workflow?

To save session state before context compaction, you need to commit staged Git changes, preserve memory to disk, and assess task progress. This prevents data loss and ensures a smooth workflow resumption later.

What does context compaction preparation do for Git worktrees?

Context compaction preparation handles Git worktree management by merging worktree changes back to the main branch. This ensures all isolated development progress is safely integrated before the session state is saved.

Can I skip specific actions like Git commits when preparing for context compaction?

Yes, you can skip specific actions when preparing for context compaction. The process presents a consolidated checklist for Git status and cost summaries, prompting you to approve or skip individual actions like commits or pushes before execution.

Do I need bash, git, and jq installed to run session state saving workflows?

Yes, you need bash, git, and jq installed to run session state saving workflows. These dependencies are required to execute the scripts that assess compound-worthiness, check version compatibility, and manage session memory.

When should I run a pre-compaction checklist during a long-running coding task?

You should run a pre-compaction checklist during a long-running coding task when you anticipate the context limit being reached. Running it proactively saves memory, commits changes, and queues up the next task for seamless resumption.