Skills auto-cleaning-disk
install
source · Clone the upstream repo
git clone https://github.com/openclaw/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/ahqazi-dev/auto-cleaning-disk" ~/.claude/skills/openclaw-skills-auto-cleaning-disk && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/ahqazi-dev/auto-cleaning-disk" ~/.openclaw/skills/openclaw-skills-auto-cleaning-disk && rm -rf "$T"
manifest:
skills/ahqazi-dev/auto-cleaning-disk/SKILL.mdsource content
Auto Cleaning Disk
Safely clean disk space on any operating system (Windows, Linux, macOS). Never deletes important files — only junk, cache, temp, and log files.
What This Skill Cleans
| Category | Examples |
|---|---|
| Temp Files | , , system temp folders |
| Browser Cache | Chrome, Firefox, Edge, Safari cache |
| Recycle Bin / Trash | Windows Recycle Bin, macOS Trash, Linux Trash |
| Log Files | Old files in system/app folders |
⚠️ NEVER delete: Documents, Downloads, Desktop files, user data, system files, installed apps, or anything outside designated junk folders.
Mode Selection
Always ask the user FIRST (if not already specified):
- Auto Mode — Clean everything silently, show summary at end
- Confirm Mode — Ask user before each category is cleaned
Step-by-Step Instructions
Step 1: Detect Operating System
Detect the OS using Python:
import platform os_type = platform.system() # "Windows", "Linux", "Darwin" (Mac)
Step 2: Run the Appropriate Script
Based on OS, refer to the matching reference file:
- Windows → See
windows-cleaner.md - Linux → See
linux-cleaner.md - macOS → See
mac-cleaner.md
Step 3: Show Results
After cleaning, always show:
- ✅ How much space was freed (MB/GB)
- 📁 Which categories were cleaned
- ⚠️ Anything skipped and why
Safety Rules (MUST FOLLOW)
- ❌ Never touch System32 or Windows folder
- ❌ Never touch Documents, Pictures, Videos, Downloads
- ❌ Never touch installed software folders
- ✅ Only clean folders explicitly listed in scripts
- ✅ Only delete files older than 1 day
- ✅ If unsure about a file — SKIP it
Usage Examples
User says: "My disk is full" → Ask mode preference → Run full clean → Show space freed
User says: "Clear browser cache only" → Only clean browser cache → Show result
User says: "Auto clean everything" → Run all categories silently → Show summary