← 返回 Skills 市场
78
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install openclaw-subagent-session-cleanup
功能描述
Clean up accumulated subagent and cron:run child sessions in OpenClaw to fix slow subagent startup. Use when: subagents are slow to start, sessions.json is t...
安全使用建议
This skill appears to do what it says (clean session entries), but it is incomplete and potentially risky because it references a cleanup.ps1 script that is not included and calls the 'openclaw' CLI even though no binaries are declared. Before running anything: 1) Do NOT run -CleanJsonl until you have a verified backup; that flag deletes conversation history. 2) Ask the skill author (or request the script contents) for cleanup.ps1 so you can inspect it — verify it only edits sessions.json and does not exfiltrate data or run unexpected commands. 3) Make backups of sessions.json and any .jsonl files; test the script on copies first. 4) Use the -DryRun option first to preview changes. 5) Ensure the 'openclaw' CLI and PowerShell are the correct versions and come from trusted sources. 6) If you cannot get the script contents, prefer to perform these cleanup steps manually (open sessions.json in an editor or write a small vetted script) rather than running an unverified PowerShell script. These steps reduce risk and will help determine whether the skill is safe to use.
功能分析
Type: OpenClaw Skill
Name: openclaw-subagent-session-cleanup
Version: 1.0.1
The skill bundle provides instructions in SKILL.md for an AI agent to perform a maintenance task that involves stopping the OpenClaw gateway service and executing a PowerShell script (cleanup.ps1) to delete session records. These actions represent high-risk system modifications and potential data loss, specifically the deletion of conversation history (.jsonl files) if certain flags are used. While these capabilities are plausibly needed for the stated purpose of improving performance, the lack of the actual cleanup.ps1 source code for verification and the inherent risk of service disruption and data deletion warrant a suspicious classification.
能力评估
Purpose & Capability
Name/description = session cleanup. SKILL.md indeed describes removing child session entries from sessions.json and preserving main/channel sessions — that aligns with the stated purpose. However, the instructions call 'openclaw' CLI commands and a local PowerShell script (cleanup.ps1) even though the skill metadata declares no required binaries and includes no script. The skill should declare 'openclaw' and PowerShell or include the cleanup script; their absence is an inconsistency.
Instruction Scope
Instructions are narrowly scoped to stopping the gateway, running cleanup.ps1, and restarting the gateway. The scope is appropriate for session cleanup, but the runtime step hinges on a local cleanup.ps1 that is not included or described. The instructions also permit deletion of .jsonl conversation history with -CleanJsonl (explicitly labeled 'dangerous'); that is a destructive operation and requires explicit user confirmation and visibility into what the script actually does.
Install Mechanism
No install spec (instruction-only skill) — nothing is downloaded or written by the skill itself. This is lower risk than an install that fetches remote code. However, because the instructions expect running a local script, the skill is incomplete without providing or linking that script.
Credentials
The skill requests no environment variables or credentials (appropriate). But it implicitly requires filesystem access and the 'openclaw' CLI and PowerShell execution; these required tools are not declared in metadata. The absence of declared required binaries is a mismatch that reduces transparency about what will be run.
Persistence & Privilege
always is false and there are no install-side persistence mechanisms. The skill does not request persistent presence or elevated platform privileges. The main risk is the destructive file operations (deleting .jsonl) which are transient but impactful to data, not to persistent entitlement.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install openclaw-subagent-session-cleanup - 安装完成后,直接呼叫该 Skill 的名称或使用
/openclaw-subagent-session-cleanup触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Fixed slug, added search keywords
元数据
常见问题
OpenClaw Subagent Session Cleanup 是什么?
Clean up accumulated subagent and cron:run child sessions in OpenClaw to fix slow subagent startup. Use when: subagents are slow to start, sessions.json is t... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 78 次。
如何安装 OpenClaw Subagent Session Cleanup?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install openclaw-subagent-session-cleanup」即可一键安装,无需额外配置。
OpenClaw Subagent Session Cleanup 是免费的吗?
是的,OpenClaw Subagent Session Cleanup 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
OpenClaw Subagent Session Cleanup 支持哪些平台?
OpenClaw Subagent Session Cleanup 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 OpenClaw Subagent Session Cleanup?
由 lrddrl(@lrddrl)开发并维护,当前版本 v1.0.1。
推荐 Skills