A specialized utility for Openclaw Skills designed to safely purge orphan .jsonl files and expired session data to reclaim storage space.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install session-cleanup-pro
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 session-cleanup-pro using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Session Cleanup skill provides a robust mechanism for maintaining the storage health of your AI agent environment. It is specifically engineered to identify and remove orphan .jsonl files—data residues that exist on disk but are no longer tracked in the session registry—as well as pruning outdated session logs. This ensures that Openclaw Skills maintain high performance and a clean workspace by preventing the accumulation of redundant data.
This skill prioritizes data safety through a multi-step audit process. It protects recent sessions within a 72-hour window and ensures that critical system sessions are never deleted. By generating a comprehensive cleanup plan before execution, it gives developers full control over their data lifecycle management.
To use this skill within your Openclaw Skills setup, ensure that bash and node are available in your environment.
First, make the scan script executable:
chmod +x ./skills/session-cleanup/scripts/scan_sessions.sh
Run the scan to generate a report:
./skills/session-cleanup/scripts/scan_sessions.sh scan
The skill interacts with the following data structures to manage Openclaw Skills storage:
| Component | Type | Description |
|---|---|---|
orphanFiles |
List | Files present on disk but missing from sessions.json. |
staleSessions |
List | Sessions older than 72 hours and not marked as protected. |
protectedSessions |
List | Recent sessions and essential core agent data. |
sessions.json |
Registry | The primary index used to validate session existence. |
Loading
A specialized utility for analyzing and archiving low-value memory notes to minimize context bloat in your AI workspace.

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 specialized debugging toolkit for diagnosing and fixing GitHub Actions workflow failures with a focus on Go development environments.

A comprehensive utility for configuring, troubleshooting, and optimizing golangci-lint to ensure high code quality in Go projects.








































