One-click install
npx skills add https://github.com/zeenie-ai/MachinaOS --skill compaction-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: compaction-skill
Source: https://github.com/zeenie-ai/MachinaOS/tree/main/server/skills/assistant/compaction-skill
Command: npx skills add https://github.com/zeenie-ai/MachinaOS --skill compaction-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It prevents AI memory from growing beyond practical token limits by converting verbose conversation history into a concise, structured summary that retains the information needed to continue effectively.

Core Features & Use Cases

  • Token-saving memory compaction: Triggers when token thresholds are near and compresses prior messages into a summary.
  • Structured summaries for continuity: Produces a consistent 5-section output (Task Overview, Current State, Important Discoveries, Next Steps, Context to Preserve) designed for seamless handoff into subsequent conversation turns.
  • Decision and context preservation: Captures what was decided, why it was decided, what worked or failed, and specific critical details (values, IDs, preferences, constraints) to avoid repeating effort.

Quick Start

Ask your assistant to run compaction and replace the current conversation memory with a structured summary using the five required sections when the token budget is approaching its limit.

Frequently Asked Questions about compaction-skill

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

FAQPage Schema
How do I preserve conversation context when hitting agent token limits?

Conversation summarization compacts verbose history into a structured, token-efficient recap. It produces a five-section summary that replaces existing memory while appending new messages to maintain workflow continuity across extended multi-turn assistant phases.

What is the best way to summarize long conversations for state preservation?

Summarizing long conversations for state preservation is best handled by generating a structured five-section recap: Task Overview, Current State, Important Discoveries, Next Steps, and Context to Preserve. This captures decisions, failures, and critical details to avoid repeating effort.

How do I compact AI memory during extended multi-turn workflows?

Compacting AI memory during extended multi-turn workflows involves triggering a summarization process as token thresholds approach. This compresses prior messages into a concise summary designed for seamless handoff into subsequent conversation turns.

When should I run memory compaction to avoid losing workflow continuity?

Memory compaction should be run when the token budget is approaching its limit to avoid losing workflow continuity. It converts verbose conversation history into a concise summary that retains the information needed to continue effectively.

Does conversation summarization capture specific critical details and constraints?

Yes, conversation summarization captures specific critical details and constraints. The Context to Preserve section records what was decided, why, what worked or failed, and specific values, IDs, preferences, and constraints to avoid repeating effort.