用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/dvcrn/openclaw-skills-marketplace --skill workspace-cleaner命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
监控 OpenClaw GitHub 版本更新,获取最新版本发布说明,翻译成中文, 并推送到 Telegram 和 Feishu。用于:(1) 定时检查版本更新 (2) 推送版本更新通知 (3) 生成中文版发布说明
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your agent a soul.
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
基于 SOC 职业分类
正在显示 SKILL.md
| name | workspace-cleaner |
| description | Workspace Cleaner |
Safe, automated cleanup for OpenClaw workspaces. Finds temp files, duplicates, and cruft while protecting important data.
# Preview what would be deleted (safe - no changes)
python3 {{SKILL_DIR}}/scripts/cleanup.py
# Actually clean up (uses trash for recovery)
python3 {{SKILL_DIR}}/scripts/cleanup.py --execute
# Custom workspace path
python3 {{SKILL_DIR}}/scripts/cleanup.py --workspace /path/to/workspace
python3 {{SKILL_DIR}}/scripts/cleanup.py
Shows what would be deleted with sizes. Makes no changes.
python3 {{SKILL_DIR}}/scripts/cleanup.py --execute
Moves items to trash. Recoverable via system trash.
# Only show items larger than 100MB
python3 {{SKILL_DIR}}/scripts/cleanup.py --min-size 100
# Only show items older than 30 days
python3 {{SKILL_DIR}}/scripts/cleanup.py --min-age 30
# For automation/parsing
python3 {{SKILL_DIR}}/scripts/cleanup.py --json
# Use custom patterns file
python3 {{SKILL_DIR}}/scripts/cleanup.py --config /path/to/patterns.json
Default patterns (customizable via config):
| Category | Patterns | Safe? |
|---|---|---|
| Temp downloads | *.skill in root | ✅ |
| Generated images | *.png, *.jpg in root | ✅ |
| macOS cruft | .DS_Store | ✅ |
| Logs | *.log | ✅ |
| Temp files | *.tmp, *.bak, *~ | ✅ |
| Node modules | node_modules/ in root | ✅ |
| Python venvs | .venv*/, venv/ (except known) | ⚠️ |
| Duplicate repos | Same remote as projects/* | ⚠️ |
Never deleted, regardless of patterns:
.git/ directoriesmemory/ directoryMEMORY.md, SOUL.md, USER.md, AGENTS.mdprojects/ directory contentsskills/ directory contents--include-recent)Edit {{SKILL_DIR}}/config/patterns.json to customize:
{
"temp_extensions": [".tmp", ".bak", ".log", ".skill"],
"temp_patterns": ["*~", "#*#"],
"image_extensions": [".png", ".jpg", ".jpeg", ".gif"],
"protected_dirs": ["memory", "skills", "projects", ".git"],
"protected_files": ["MEMORY.md", "SOUL.md", "USER.md", "AGENTS.md"],
"known_venvs":
Add to your HEARTBEAT.md for periodic cleanup checks:
## Weekly Cleanup Check
- Run workspace cleaner in preview mode
- Alert if >500MB of cruft found
- Auto-clean items >30 days old and <10MB
--execute to see what would be deleted--exclude for files that look like cruft but aren't# Weekly cleanup of obvious cruft
python3 {{SKILL_DIR}}/scripts/cleanup.py --min-age 7 --execute
# What's taking up space?
python3 {{SKILL_DIR}}/scripts/cleanup.py --min-size 50 --json | jq '.items | sort_by(.size_mb) | reverse'
# Clean before committing
python3 {{SKILL_DIR}}/scripts/cleanup.py --execute && git status
trash command (macOS: brew install trash, Linux: trash-cli)