add-compact

Execute manual session compaction for ClaudeClaw conversations via the /compact command.

189|60|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/sbusso/claudeclaw --skill add-compact-sbusso
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-compact
Source: https://github.com/sbusso/claudeclaw/tree/main/skills/add-compact
Command: npx skills add https://github.com/sbusso/claudeclaw --skill add-compact-sbusso

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a controlled mechanism to manually trigger conversation compaction in ClaudeClaw to prevent context rot, ensuring long-running sessions stay coherent.

Core Features & Use Cases

  • Manual session compaction via the /compact command, restricted to main-group or trusted senders.
  • Maintains session continuity by summarizing past messages without resetting the conversation.
  • Integration hooks for pre-compaction checks and verification via tests or admin actions.

Quick Start

Use /compact in the main group to start a manual compaction of the current session.

Frequently Asked Questions about add-compact

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

FAQPage Schema
How do I manually compact a conversation session to prevent context rot?

Manual session compaction summarizes past messages to prevent context rot without resetting the conversation. You trigger it by using the /compact command within an authorized main-group or trusted-sender context.

What is context rot and when do I need to compact a session?

Context rot occurs when a long-running session loses coherence due to excessive message history. Session compaction is needed when conversations become lengthy and require summarizing past interactions to maintain continuity.

Can I trigger session compaction from any sender or chat group?

Session compaction cannot be triggered from any sender. It targets main-group or trusted-sender contexts specifically, ensuring only authorized users can initiate the /compact command via enforced admin controls.

How does the /compact command maintain session continuity?

The /compact command maintains session continuity by summarizing past messages rather than resetting the conversation entirely. It enforces pre-flight checks and verification hooks across the agent-runner integration.

Are there pre-flight checks before session compaction executes?

Pre-flight checks are enforced before session compaction executes. The skill integrates verification hooks and admin controls across the agent-runner integration to validate authorization and ensure safe context archiving.

Does manual context compaction work with QA testing workflows?

Manual context compaction integrates with QA testing workflows through verification hooks and admin actions. It ensures long-running test sessions stay coherent by archiving memory and summarizing past interactions without losing conversation state.