系统清理技能
v1.0.0定期清理OpenClaw系统中的备份、临时及会话文件,分析磁盘使用并检查系统状态,优化系统性能。
⭐ 0· 85·1 current·1 all-time
MIT-0
Download zip
LicenseMIT-0 · Free to use, modify, and redistribute. No attribution required.
Security Scan
OpenClaw
Benign
high confidencePurpose & Capability
Overall coherent: the skill targets OpenClaw-specific paths (~/.openclaw, agents sessions) and checks the openclaw gateway status, which matches its stated purpose. Minor metadata inconsistency: the provided registry summary listed no required binaries, while package.json declares a requirement for the 'openclaw' binary — that requirement is reasonable for this skill but the registry metadata should reflect it.
Instruction Scope
SKILL.md and scripts stay within cleanup/analysis scope (find, du, rm, stat, openclaw). The script lists candidates before deletion and prompts for confirmation for backup-file deletion, and it only reports session files. Caveats: some example SKILL.md find commands are syntactically incorrect (multiple -name without -o) and other examples show -delete on /tmp — the documentation contains commands that, if copy-pasted, could delete files without confirmation. The script will automatically remove vim swap files in ~/.openclaw without a confirmation prompt and does not check whether files are in use.
Install Mechanism
Instruction-only skill with a single shell script and package.json; no install spec or remote downloads. No files are fetched from external URLs and nothing is written to system locations beyond normal script execution.
Credentials
The skill requests no environment variables or credentials and does not access unrelated config paths. The only external dependency is the local 'openclaw' CLI (declared in package.json), which is proportionate to checking gateway status.
Persistence & Privilege
always:false and no modifications to other skills or global agent configuration. The script is intended to be run manually or via cron; it does not attempt to persist credentials or enable itself automatically.
Assessment
This skill appears to be what it says — a local cleanup helper for OpenClaw — but please do the following before installing or scheduling it:
- Verify the package.json requirement for the 'openclaw' binary and ensure you actually have that CLI and want it called.
- Review scripts/cleanup.sh line-by-line (especially the remove commands). The script will delete vim swap files in ~/.openclaw without confirmation and example commands in SKILL.md show -delete on /tmp; do not copy-paste destructive find -delete commands without review.
- Run the script in 'dry-run' or listing-only mode first (or run the find commands manually and inspect output) to confirm which files would be removed.
- Back up important data before running scheduled deletions and avoid running the script as root; schedule it under the intended user's account.
- Consider adjusting the script to skip files in use (or add extra confirmations) and update registry metadata so declared required binaries match the registry summary.Like a lobster shell, security has layers — review code before you run it.
latestvk975c262ty65n4btq4pttd32t983pnnh
License
MIT-0
Free to use, modify, and redistribute. No attribution required.
