session-compaction

Compress session context into a fixed-format Markdown summary with quality scoring and history persistence.

223|23|Updated Dec 19, 2025
One-click install
npx skills add https://github.com/ReinaMacCredy/maestro --skill session-compaction
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: session-compaction
Source: https://github.com/ReinaMacCredy/maestro/tree/main/skills/session-compaction
Command: npx skills add https://github.com/ReinaMacCredy/maestro --skill session-compaction

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Session context grows over time and becomes hard to resume. This Skill compresses context anchors to enable quick recall and durable progress across sessions.

Core Features & Use Cases

  • Anchored summarization: Structured, repeatable compacting format.
  • Quality scoring: 4-probe self-evaluation to assess summary usefulness.
  • History persistence: Save compacted context to history for later resumption.

Quick Start

Use the compact command to generate and save a compacted session: compact or /compact.

Frequently Asked Questions about session-compaction

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

FAQPage Schema
How do I compress session context into a checkpoint I can resume later?

Session compaction condenses your conversation history into a structured, persistent checkpoint saved as Markdown. Run the compact command to generate a summary with quality scoring, then load it to resume context and continuity in future sessions without losing progress.

What happens to my session context when I create a checkpoint?

Compaction analyzes your current session, generates a fixed-format summary with artifact tracking, performs four self-evaluation probes to assess quality, and saves the result to history/threads/YYYY-MM-DD-HH-MM-compact.md for persistent storage and later recall.

Can I use session compaction before ending a long conversation?

Yes. Compaction is designed for long-running conversations and session termination. It creates durable checkpoints that support resumable state, so you can end your session and pick up exactly where you left off using the saved summary.

How does the Skill measure if a compacted summary is useful?

Session compaction enforces a quality threshold by running four self-evaluation probes against the generated summary. These probes assess usefulness and ensure the checkpoint meets functional requirements before saving to your history file.

Where does the compacted session get saved?

Compacted sessions are saved to history/threads/YYYY-MM-DD-HH-MM-compact.md by default, or to a custom path you specify. The file persists your checkpoint in Markdown format for easy resumption and artifact tracking across sessions.

What format does the compacted summary use?

Session compaction generates a fixed-format Markdown summary designed for structural repeatability and quick recall. This format supports artifact tracking and enables continuity when you load the checkpoint back into a new session.