← Back to Skills Marketplace
78
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install openclaw-subagent-session-cleanup
Description
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...
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install openclaw-subagent-session-cleanup - After installation, invoke the skill by name or use
/openclaw-subagent-session-cleanup - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
Fixed slug, added search keywords
Metadata
Frequently Asked Questions
What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 78 downloads so far.
How do I install OpenClaw Subagent Session Cleanup?
Run "/install openclaw-subagent-session-cleanup" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is OpenClaw Subagent Session Cleanup free?
Yes, OpenClaw Subagent Session Cleanup is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does OpenClaw Subagent Session Cleanup support?
OpenClaw Subagent Session Cleanup is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created OpenClaw Subagent Session Cleanup?
It is built and maintained by lrddrl (@lrddrl); the current version is v1.0.1.
More Skills