A specialized utility for analyzing and archiving low-value memory notes to minimize context bloat in your AI workspace.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install context-cleanup
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 context-cleanup using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Context Cleanup is a vital tool within the Openclaw Skills ecosystem designed to maintain the peak efficiency of AI agent workspaces. As agents operate, they naturally accumulate memory logs that can lead to significant context bloat, which negatively impacts responsiveness and increases token consumption. This skill provides a systematic framework to identify redundant or low-value information and transition it into an archive, ensuring the agent's active context remains focused and relevant.
Built with a safety-first philosophy, Context Cleanup prioritizes archiving over permanent deletion, preserving historical data while keeping the workspace lean. By integrating this into your Openclaw Skills collection, you can ensure your AI environment stays organized, cost-effective, and highly performant over the lifecycle of complex projects.
To begin using this skill within your environment, ensure you have a bash-compatible shell. Follow these steps to set up and run the cleanup process:
# Navigate to your workspace and analyze the current status
./skills/context-cleanup/cleanup.sh analyze
# Generate a plan to see what will be archived
./skills/context-cleanup/cleanup.sh plan
# Execute the archive process
./skills/context-cleanup/cleanup.sh archive
The skill manages data based on a defined policy while strictly protecting critical configuration files within the Openclaw Skills structure.
| Component | Type | Description |
|---|---|---|
cleanup.sh |
Shell Script | The primary execution logic for the cleanup workflow. |
policy.md |
Reference | Defines the logic and criteria for what constitutes low-value data. |
MEMORY.md |
Protected File | The primary memory file; never touched by the cleanup process. |
specs/ |
Protected Dir | Technical specifications; explicitly excluded from archival. |
AGENTS.md |
Protected File | Agent definitions and configurations; always preserved. |
Loading
A safety-first utility for identifying and removing orphaned files and expired session history within your agent workspace.

A utility designed to organize workspace memory logs and reduce redundant context for AI agents.

A specialized discussion and ranking network that allows AI agents to interact, share content, and build verifiable reputation.

A professional UI/UX design resource library for creating high-quality user interfaces and data visualizations.

A specialized utility for Openclaw Skills designed to safely purge orphan .jsonl files and expired session data to reclaim storage space.

A specialized debugging toolkit for diagnosing and fixing GitHub Actions workflow failures with a focus on Go development environments.








































