Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
Automates safe cleanup of OpenClaw workspaces by previewing and moving temp files, logs, duplicates, and cruft to the system trash with customizable filtering.
Automates safe cleanup of OpenClaw workspaces by previewing and moving temp files, logs, duplicates, and cruft to the system trash with customizable filtering.
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
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
Dry-run by default — Always previews before deleting Uses trash — Files go to system trash, recoverable Size-aware — Shows sizes, can filter by threshold Age filtering — Target files older than N days Customizable patterns — Edit config to match your workflow JSON output — Machine-readable for automation Safe defaults — Never touches .git, memory/, core configs
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): CategoryPatternsSafe?Temp downloads*.skill in root✅Generated images*.png, *.jpg in root✅macOS cruft.DS_Store✅Logs*.log✅Temp files*.tmp, *.bak, *~✅Node modulesnode_modules/ in root✅Python venvs.venv*/, venv/ (except known)⚠️Duplicate reposSame remote as projects/*⚠️
Never deleted, regardless of patterns: .git/ directories memory/ directory MEMORY.md, SOUL.md, USER.md, AGENTS.md projects/ directory contents skills/ directory contents Files modified in last 24 hours (unless --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": [".venv-skill-scanner"] }
Always preview first — Run without --execute to see what would be deleted Check the trash — Files go to system trash, not permanent delete Exclude patterns — Use --exclude for files that look like cruft but aren't Backup first — For large cleanups, consider a backup
# 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
Python 3.8+ trash command (macOS: brew install trash, Linux: trash-cli)
Workflow acceleration for inboxes, docs, calendars, planning, and execution loops.
Largest current source with strong distribution and engagement signals.