← 返回 Skills 市场
481
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install session-cleanup-pro
功能描述
Clean orphan .jsonl files and stale sessions in OpenClaw session storage with safe confirmation flow. 适用于会话列表杂乱、历史会话堆积、需要释放存储空间场景;默认保护 72 小时内会话,删除前必须用户确认。
安全使用建议
This skill appears to do what it says: scan the OpenClaw session directory and propose deletions. Before running any cleanup: 1) Run the scan only (./skills/session-cleanup/scripts/scan_sessions.sh scan) and carefully inspect the JSON output. 2) Back up sessions.json and any .jsonl files you might want to keep (or archive them to a different directory) rather than immediate rm. 3) Be mindful of OPENCLAW_STATE_DIR and OPENCLAW_AGENT_ID environment overrides — if they are set, the script will operate on those paths instead of the defaults. 4) Prefer archiving/moving orphan files first; only perform hard deletes after a second, explicit confirmation. 5) Note that the provided script is read-only; the SKILL.md contains example rm commands which are destructive and must be executed deliberately. There are no network calls or hidden endpoints in the package. If you want extra safety, test on a copy of your state directory or run the scan in a non-production environment first.
功能分析
Type: OpenClaw Skill
Name: session-cleanup-pro
Version: 0.3.0
The session-cleanup-pro skill is a utility designed to manage OpenClaw session storage by identifying and removing orphan .jsonl files and stale sessions. It uses a bash/Node.js script (scripts/scan_sessions.sh) to analyze the session directory and sessions.json metadata, implementing a 72-hour safety buffer and protecting the main session. The workflow defined in SKILL.md and references/policy.md strictly requires a read-only scan followed by explicit user confirmation before any file deletion (rm) occurs, showing no signs of malicious intent or unauthorized data exfiltration.
能力评估
Purpose & Capability
Name/description, included script (scripts/scan_sessions.sh), and SKILL.md are consistent: the skill scans sessions.json and the sessions directory for orphan .jsonl and stale sessions. Required binaries (bash, node) are appropriate for the provided scripts. No unrelated credentials, config paths, or third-party services are requested.
Instruction Scope
SKILL.md enforces a scan → confirm → apply flow and documents destructive commands (rm) to remove orphan .jsonl and update sessions.json. The provided script only performs a read-only scan and outputs JSON; deletion instructions are explicit in SKILL.md but not implemented as an automated delete in scripts. This is coherent, but the instructions do include direct rm commands (destructive) so operator confirmation and backups are essential.
Install Mechanism
No install spec (instruction-only + one local script). Nothing is downloaded or extracted from external URLs; code is included in the package. This is low-risk from an install perspective.
Credentials
The skill does not require credentials or config paths. The script honors optional environment overrides OPENCLAW_STATE_DIR and OPENCLAW_AGENT_ID (with safe defaults). Those are proportional and relevant to locating session files.
Persistence & Privilege
always is false and the skill is user-invocable. It does not attempt to modify other skills or agent-wide settings. It does not persist credentials or try to enable itself automatically.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install session-cleanup-pro - 安装完成后,直接呼叫该 Skill 的名称或使用
/session-cleanup-pro触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.3.0
0.3: New pro slug, English title, bilingual description, safer confirmation-first cleanup workflow.
元数据
常见问题
Session Cleanup Pro 是什么?
Clean orphan .jsonl files and stale sessions in OpenClaw session storage with safe confirmation flow. 适用于会话列表杂乱、历史会话堆积、需要释放存储空间场景;默认保护 72 小时内会话,删除前必须用户确认。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 481 次。
如何安装 Session Cleanup Pro?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install session-cleanup-pro」即可一键安装,无需额外配置。
Session Cleanup Pro 是免费的吗?
是的,Session Cleanup Pro 完全免费(开源免费),可自由下载、安装和使用。
Session Cleanup Pro 支持哪些平台?
Session Cleanup Pro 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Session Cleanup Pro?
由 irideas(@irideas)开发并维护,当前版本 v0.3.0。
推荐 Skills