← 返回 Skills 市场
ccc-3po

ccc3po-session-cleaner

作者 c-3po · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ 安全检测通过
102
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install ccc3po-session-cleaner
功能描述
Safely clean OpenClaw old session files and rebuild sessions.json for Ubuntu ARM
使用说明 (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}')"
安全使用建议
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install ccc3po-session-cleaner
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /ccc3po-session-cleaner 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
Slug ccc3po-session-cleaner
版本 1.0.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

ccc3po-session-cleaner 是什么?

Safely clean OpenClaw old session files and rebuild sessions.json for Ubuntu ARM. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 102 次。

如何安装 ccc3po-session-cleaner?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install ccc3po-session-cleaner」即可一键安装,无需额外配置。

ccc3po-session-cleaner 是免费的吗?

是的,ccc3po-session-cleaner 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

ccc3po-session-cleaner 支持哪些平台?

ccc3po-session-cleaner 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 ccc3po-session-cleaner?

由 c-3po(@ccc-3po)开发并维护,当前版本 v1.0.2。

💬 留言讨论