Skip to content
Back to skills

Auto Cleaning Disk

ASecurity

Automatically clean disk space by removing temp files, browser cache, recycle bin/trash, and log files — safely, without deleting any important files. Use this skill whenever the user asks to clean their disk, free up space, remove junk files, clear cache, empty trash, or says things like \"disk full\", \"storage is low\", \"computer is slow\", \"clean my disk\", \"remove junk files\", or wants to speed up their system. Works on Windows, Linux, and Mac. Always ask user whether to run automati...

  • 33 stars
  • 0 votes
  • 2 copies
  • 12 views
  • Added September 5, 2026
developmentpythongo

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add dvcrn/openclaw-skills-marketplace --skill auto-cleaning-disk --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Auto Cleaning Disk?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Auto Cleaning Disk
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dvcrn-auto-cleaning-disk/badge)](https://www.skillsdirectory.com/skills/dvcrn-auto-cleaning-disk)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: auto-cleaning-disk
description: "Automatically clean disk space by removing temp files, browser cache, recycle bin/trash, and log files — safely, without deleting any important files. Use this skill whenever the user asks to clean their disk, free up space, remove junk files, clear cache, empty trash, or says things like \"disk full\", \"storage is low\", \"computer is slow\", \"clean my disk\", \"remove junk files\", or wants to speed up their system. Works on Windows, Linux, and Mac. Always ask user whether to run automatically or with confirmation."
---

# 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          | `%TEMP%`, `/tmp`, system temp folders           |
| Browser Cache       | Chrome, Firefox, Edge, Safari cache             |
| Recycle Bin / Trash | Windows Recycle Bin, macOS Trash, Linux Trash   |
| Log Files           | Old `.log` 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:
```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)

1. ❌ Never touch System32 or Windows folder
2. ❌ Never touch Documents, Pictures, Videos, Downloads
3. ❌ Never touch installed software folders
4. ✅ Only clean folders explicitly listed in scripts
5. ✅ Only delete files older than 1 day
6. ✅ 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

Files in this skill

  • SKILL.md2.7 KB
  • linux-cleaner.md834 B
  • mac-cleaner.md818 B
  • main.py1.1 KB
  • scripts/clean_linux.py2.6 KB
  • scripts/clean_mac.py2.7 KB
  • scripts/clean_windows.py3.5 KB
  • windows-cleaner.md1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…