← Back to Skills Marketplace
191
Downloads
0
Stars
3
Active Installs
2
Versions
Install in OpenClaw
/install openclaw-session-cleaner
Description
OpenClaw 会话清理助手,自动清理旧会话文件、重建 sessions.json、解决文件膨胀问题
Usage Guidance
This skill runs shell commands against a user filesystem path and (by description) will delete/rebuild session files. Before installing or running it: 1) Inspect the entire SKILL.md to confirm exact delete/replace commands and whether there are safeguards. 2) Verify the target path (/home/ubuntu/.openclaw/...) is correct for your system — the path is hard-coded and may not match your environment. 3) Require a dry-run mode or add explicit confirmations and backups (copy sessions.json and session files elsewhere) before any delete/overwrite. 4) Run the commands manually in a safe test environment first or run as a non-privileged user to confirm behavior. 5) If you don't have the skills to audit shell commands, avoid installing this skill or ask the author to provide non-destructive, parameterized instructions and a safety review.
Capability Assessment
Purpose & Capability
Name/description describe cleaning OpenClaw session files; the SKILL.md explicitly runs shell commands in the OpenClaw sessions directory (/home/ubuntu/.openclaw/agents/main/sessions/), which is consistent with the purpose. However, the path is hard-coded to /home/ubuntu (not parametrized), which makes the skill brittle and possibly mis-targeted on systems with a different user layout.
Instruction Scope
The instructions invoke Bash and change into a specific user directory to inspect and (per the description) delete/rebuild session files. The fragment shown already cd's into /home/ubuntu/.openclaw/... and lists/remembers sessions.json size. The skill promises an "automatic execution flow" and claims "安全无风险" (safe/no-risk) despite implying file-deletion and replacement operations. There are no shown safeguards (dry-run, confirmation, backups, whitelists), no checks for correct user/agent context, and the hard-coded path could cause the agent to act on the wrong account if run with different permissions.
Install Mechanism
Instruction-only skill with no install spec and no code files — lowest install risk (nothing is written to disk by an installer).
Credentials
The skill declares no required environment variables or credentials, which is appropriate for a local filesystem-cleaning helper. There are no extra credentials requested.
Persistence & Privilege
always:false and model-invocation not disabled (defaults). The skill is user-invocable and not force-installed; no device-wide or cross-skill configuration changes are declared.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install openclaw-session-cleaner - After installation, invoke the skill by name or use
/openclaw-session-cleaner - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
No code or functionality changes in this release; only documentation updates.
- Documentation updated: SKILL.md now uses Chinese, adds metadata (version, author, license, tools), and clarifies usage and trigger instructions.
- No changes to files or logic; behavior remains unchanged.
v1.0.0
openclaw-session-cleaner 1.0.0
- Initial release with automated assistant for cleaning and rebuilding OpenClaw session files.
- Checks the number of session files and size of sessions.json before performing any cleanup.
- Identifies and deletes old cron session files, preserving the main session.
- Rebuilds sessions.json to reference only existing session files.
- Reports session and file statistics before and after cleanup, confirming completion.
Metadata
Frequently Asked Questions
What is openclaw-session-cleaner?
OpenClaw 会话清理助手,自动清理旧会话文件、重建 sessions.json、解决文件膨胀问题. It is an AI Agent Skill for Claude Code / OpenClaw, with 191 downloads so far.
How do I install openclaw-session-cleaner?
Run "/install openclaw-session-cleaner" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is openclaw-session-cleaner free?
Yes, openclaw-session-cleaner is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does openclaw-session-cleaner support?
openclaw-session-cleaner is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created openclaw-session-cleaner?
It is built and maintained by c-3po (@ccc-3po); the current version is v1.0.1.
More Skills