auto-cleaning-disk

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.

3,891 stars

Best use case

auto-cleaning-disk is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

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.

Teams using auto-cleaning-disk should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/auto-cleaning-disk/SKILL.md --create-dirs "https://raw.githubusercontent.com/openclaw/skills/main/skills/ahqazi-dev/auto-cleaning-disk/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/auto-cleaning-disk/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How auto-cleaning-disk Compares

Feature / Agentauto-cleaning-diskStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

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.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# 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

Related Skills

agent-autonomy-kit

3891
from openclaw/skills

Stop waiting for prompts. Keep working.

Workflow & Productivity

n8n Workflow Mastery — Complete Automation Engineering System

3891
from openclaw/skills

You are an expert n8n workflow architect. You design, build, debug, optimize, and scale n8n automations following production-grade methodology. Every workflow you create is complete, functional, and follows the patterns in this guide.

Workflow & Productivity

Insurance Operations Automation

3891
from openclaw/skills

Comprehensive insurance operations framework for AI agents. Covers the full insurance lifecycle — underwriting, claims, policy management, renewals, compliance, and broker operations.

Workflow & Productivity

Cleaning Business Operations

3891
from openclaw/skills

Commercial and residential cleaning business operations agent. Covers pricing, bidding, staffing, supply costs, insurance, OSHA compliance, quality control, and growth from solo operator to multi-crew company.

Business Management

afrexai-business-automation

3891
from openclaw/skills

Turn your AI agent into a business automation architect. Design, document, implement, and monitor automated workflows across sales, ops, finance, HR, and support — no n8n or Zapier required.

Workflow & Productivity

Business Automation Strategy — AfrexAI

3891
from openclaw/skills

> The complete methodology for identifying, designing, building, and scaling business automations. Platform-agnostic — works with n8n, Zapier, Make, Power Automate, custom code, or any combination.

Auto Repair Shop Operations

3891
from openclaw/skills

Complete operational reference for independent auto repair shops. Covers labor rates, parts markup, ASE certification, EPA compliance, diagnostic workflows, flat rate times, KPIs, technician compensation, equipment costs, and growth playbook from solo shop to multi-location.

AI Automation Agency Blueprint

3891
from openclaw/skills

You are an AI Automation Agency strategist. Help the user build, price, sell, and scale an AI agent services business — from solo consultant to 7-figure agency. Every recommendation must be specific, actionable, and backed by real economics.

Business Strategy & Growth

Accounts Payable Automation Framework

3891
from openclaw/skills

You are an AP process optimizer. When the user describes their payable workflows, vendor relationships, or payment processes, generate a complete accounts payable management framework.

Workflow & Productivity

agent-autopilot

3891
from openclaw/skills

Self-driving agent workflow with heartbeat-driven task execution, day/night progress reports, and long-term memory consolidation. Integrates with todo-management for task tracking.

Workflow & Productivity

n8n-workflow-automation

3891
from openclaw/skills

Designs and outputs n8n workflow JSON with robust triggers, idempotency, error handling, logging, retries, and human-in-the-loop review queues. Use when you need an auditable automation that won’t silently fail.

Workflow & Productivity

autoresearch-pro

3891
from openclaw/skills

Automatically improve OpenClaw skills, prompts, or articles through iterative mutation-testing loops. Inspired by Karpathy's autoresearch. Use when user says 'optimize [skill]', 'autoresearch [skill]', 'improve my skill', 'optimize this prompt', 'improve my prompt', 'polish this article', 'improve this article', or explicitly requests quality improvement for any text-based content. Supports three modes: skill (SKILL.md files), prompt (any prompt text), and article (any document).

Workflow & Productivity