A structured memory compression system that optimizes context windows by summarizing conversation history into a machine-readable format.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install compact-summary
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install compact-summary using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Compact Summary skill is a sophisticated memory management tool designed to enhance how AI agents handle long-running conversations. By utilizing a structured format for writing to the MEMORY.md file, this skill ensures that vital context is never lost during token flushes. This approach is one of the most effective Openclaw Skills for developers who need to maintain high-fidelity project state without hitting context window limits.
Inspired by the XML-based summary formats found in professional coding agents, this skill transforms messy chat logs into organized, actionable data. It allows the agent to preserve current work progress, pending tasks, and key file references, making it easier to resume complex workflows after a memory reset.
To integrate this memory management flow into your environment, ensure your agent is configured to use Openclaw Skills for context handling.
# Define the memory management protocol in your workspace
touch MEMORY.md
# Configure the agent to trigger the Compact Summary format during flush
openclaw config set memory_compaction_style "structured"
The skill organizes data using a specific schema to ensure the agent can parse its own memory efficiently:
| Field | Description |
|---|---|
| Conversation Scope | Statistics on user, assistant, and tool message counts. |
| Tools Used | A list of all tools invoked during the session (e.g., grep_search). |
| User Requests | The core objectives defined by the user. |
| Todo Items | A checklist of incomplete tasks and P0 priorities. |
| Key Files | Paths to files that were central to the conversation. |
| Timeline | A chronological log of interactions and tool results. |
| Resume Instruction | Guidelines for the agent on how to proceed after compaction. |
Loading
A robust logging mechanism that records every tool interaction for security and performance analysis.

A comprehensive framework and pattern set for implementing resilient failure handling and state recovery in AI agent workflows.

A comprehensive developer guide for implementing and utilizing lifecycle hooks to intercept, audit, and modify AI agent behavior within the OpenClaw ecosystem.

A comprehensive suite of over 55 professional-grade tools designed to extend the capabilities of AI agents within the Openclaw Skills ecosystem.

An automated pre-filtering mechanism that intelligently matches AI agent skills to specific user tasks based on keyword relevance and pattern scoring.

A powerful integration for managing and automating TV series discovery, library organization, and download monitoring through the Sonarr REST API.








































