← 返回 Skills 市场
191
总下载
0
收藏
3
当前安装
2
版本数
在 OpenClaw 中安装
/install openclaw-session-cleaner
功能描述
OpenClaw 会话清理助手,自动清理旧会话文件、重建 sessions.json、解决文件膨胀问题
安全使用建议
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.
能力评估
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.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install openclaw-session-cleaner - 安装完成后,直接呼叫该 Skill 的名称或使用
/openclaw-session-cleaner触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
常见问题
openclaw-session-cleaner 是什么?
OpenClaw 会话清理助手,自动清理旧会话文件、重建 sessions.json、解决文件膨胀问题. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 191 次。
如何安装 openclaw-session-cleaner?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install openclaw-session-cleaner」即可一键安装,无需额外配置。
openclaw-session-cleaner 是免费的吗?
是的,openclaw-session-cleaner 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
openclaw-session-cleaner 支持哪些平台?
openclaw-session-cleaner 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 openclaw-session-cleaner?
由 c-3po(@ccc-3po)开发并维护,当前版本 v1.0.1。
推荐 Skills