← Back to Skills Marketplace
ccc-3po

ccc3po-session-cleaner

by c-3po · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ Security Clean
102
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install ccc3po-session-cleaner
Description
Safely clean OpenClaw old session files and rebuild sessions.json for Ubuntu ARM
README (SKILL.md)

\r \r

OpenClaw Session Cleaner\r

Trigger command: clean sessions\r \r

Automation Steps\r

  1. Check current session status\r cd /home/ubuntu/.openclaw/agents/main/sessions/\r echo "Total session files: $(ls -l *.jsonl 2>/dev/null | wc -l)"\r echo "sessions.json size: $(du -h sessions.json 2>/dev/null | awk '{print $1}')"\r \r
  2. Safe clean old session files (retain main session)\r cd /home/ubuntu/.openclaw/agents/main/sessions/\r find . -name "*.jsonl" -mtime +3 -delete 2>/dev/null\r \r
  3. Rebuild sessions.json index\r openclaw session rebuild\r \r
  4. Output cleanup result\r cd /home/ubuntu/.openclaw/agents/main/sessions/\r echo "✅ Clean completed successfully!"\r echo "Remaining session files: $(ls -l *.jsonl 2>/dev/null | wc -l)"\r echo "Optimized sessions.json size: $(du -h sessions.json 2>/dev/null | awk '{print $1}')"
Usage Guidance
This skill appears to do exactly what it says: delete old OpenClaw session files in /home/ubuntu/.openclaw/agents/main/sessions/ and run a rebuild. Before running it: (1) confirm the target path (/home/ubuntu/...) is correct for your machine — the path is hardcoded; (2) ensure you have backups or are OK permanently deleting *.jsonl files older than 3 days; (3) verify the 'openclaw' CLI exists on the system (SKILL.md assumes it); and (4) if you want to be cautious, modify the find command to a dry-run (e.g., remove -delete and print filenames) or add safeguards (confirm file counts) before deletion.
Capability Assessment
Purpose & Capability
The name/description (session cleanup and rebuild) matches the actions in SKILL.md (count session files, delete old .jsonl files, run 'openclaw session rebuild', report sizes). Nothing in the skill requests unrelated credentials or system-wide access.
Instruction Scope
Instructions operate on /home/ubuntu/.openclaw/agents/main/sessions/ and delete *.jsonl files older than 3 days, then run 'openclaw session rebuild'. This is within the stated scope, but the path is hardcoded to /home/ubuntu (assumes that user account), there is no dry-run or backup step, and the SKILL.md does not declare that the 'openclaw' binary must exist. These are usability/safety notes rather than indicators of malicious intent.
Install Mechanism
No install spec and no code files — instruction-only skill. Nothing is downloaded or written to disk by an installer, which reduces risk.
Credentials
The skill requests no environment variables, no credentials, and no config paths beyond the single target directory it manipulates. That is proportionate to the task.
Persistence & Privilege
always is false and the skill is user-invocable. It does not request permanent presence or attempt to modify other skills or system-wide settings.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install ccc3po-session-cleaner
  3. After installation, invoke the skill by name or use /ccc3po-session-cleaner
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.2
- Renamed skill to "openclaw-session-cleaner" and updated description for OpenClaw on Ubuntu ARM. - Improved cleanup automation: safely removes session files older than 3 days and retains the main session. - Added automated rebuilding of sessions.json index. - Enhanced output: now reports total files and sessions.json size before and after cleanup. - Updated documentation for new commands and automation steps.
Metadata
Slug ccc3po-session-cleaner
Version 1.0.2
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is ccc3po-session-cleaner?

Safely clean OpenClaw old session files and rebuild sessions.json for Ubuntu ARM. It is an AI Agent Skill for Claude Code / OpenClaw, with 102 downloads so far.

How do I install ccc3po-session-cleaner?

Run "/install ccc3po-session-cleaner" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is ccc3po-session-cleaner free?

Yes, ccc3po-session-cleaner is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does ccc3po-session-cleaner support?

ccc3po-session-cleaner is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created ccc3po-session-cleaner?

It is built and maintained by c-3po (@ccc-3po); the current version is v1.0.2.

💬 Comments