TopRank Skills

Home / Claw Skills / Others / storage-cleanup
Official OpenClaw rules 15%

storage-cleanup

One-command disk cleanup for macOS and Linux — trash, caches, temp files, old kernels, snap revisions, Homebrew, Docker, and Xcode artifacts. Use when user asks to free storage, clean up disk, reclaim space, reduce disk usage, or encounters low disk / "disk full" warnings. Safe by default with dry-run mode. No dependencies beyond bash and awk.

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 storage-cleanup 技能。 若已安装,则直接安装 storage-cleanup 技能。

Overview

Skill Key
camopel/storage-cleanup
Author
camopel
Source Repo
openclaw/skills
Version
-
Source Path
skills/camopel/storage-cleanup
Latest Commit SHA
5c53f83af6ec13dd9b11316311644f38aefac1b9

Extracted Content

SKILL.md excerpt

# Storage Cleanup

Reclaim tens of gigabytes in one command. No config files, no dependencies, no damage.

## Why This Skill

Systems accumulate junk silently — IDE caches, old snap revisions, stale pip builds, forgotten trash, outdated kernels. Manually hunting them down wastes time and risks deleting the wrong thing.

This skill:
- **Scans 12+ cleanup targets** across both macOS and Linux in a single pass
- **Safe by default** — `--dry-run` shows exactly what would be cleaned before touching anything
- **Zero dependencies** — pure bash + awk, works on any stock macOS or Linux install
- **Cross-platform** — auto-detects OS and runs only what applies (no errors on missing tools)
- **Selective** — skip any category with `--skip-kernels`, `--skip-docker`, `--skip-brew`, `--skip-snap`
- **Reports savings** — shows before/after disk usage and exact bytes freed

## Quick Start

```bash
# Preview what would be cleaned (safe, changes nothing)
bash scripts/cleanup.sh --dry-run

# Clean everything
bash scripts/cleanup.sh --yes

# Clean but keep Docker and old kernels
bash scripts/cleanup.sh --yes --skip-docker --skip-kernels
```

## What Gets Cleaned

### Both Platforms
| Target | Typical Size | Notes |
|--------|-------------|-------|
| Trash | 1–50 GB | macOS `~/.Trash`, Linux `~/.local/share/Trash` |
| Stale `/tmp` | 1–10 GB | pip/npm/rust build dirs older than 60 min |
| pip cache | 50–500 MB | `pip cache purge` |
| Go build cache | 100 MB–2 GB | `go clean -cache` |
| pnpm / yarn / node caches | 50–500 MB | Safe to regenerate |
| JetBrains IDE cache | 1–10 GB | IntelliJ, PyCharm, WebStorm, etc. |
| Whisper model cache | 1–5 GB | Redownloads on demand |
| Chrome / Firefox cache | 200 MB–2 GB | Browsing cache only |
| Playwright browsers | 200 MB–1 GB | Redownloads on demand |
| Docker dangling images | 0–10 GB | Only unreferenced images + build cache |

### Linux Only
| Target | Typical Size | Notes |
|--------|-------------|-------|
| Apt cache | 200 MB–2 GB | `apt clean...

Related Claw Skills

captchasco

captchas-openclaw

★ 0

OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.

capncoconut

x402hub

★ 0

Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay, check marketplace stats, or manage agent credentials. Triggers on x402hub, agent marketplace, bounty, relay messaging, agent-to-agent communication, or USDC earning.

capt-marbles

Task Router Skill

★ 0

Task Router

carol-gutianle

Modelready

★ 0

name: modelready description: Start using a local or Hugging Face model instantly, directly from chat. metadata: {"openclaw":{"requires":{"bins": "bash", "curl" }, "env": "URL" }}

cartoonitunes

Ethereum History

★ 0

Read-only factual data about historical Ethereum mainnet contracts. Use when the user asks about a specific contract address, early Ethereum contracts, deployment era, deployer, bytecode, decompiled code, or documented history (what a contract is and is not). Data is non-opinionated and includes runtime bytecode, decompiled code, and editorial history when available. Base URL https://ethereumhistory.com (or set BASE_URL for local/staging).

cameron-jovan

landing-page-converter

★ 0

Build high-converting landing pages and product sales pages using proven 10-section conversion frameworks. Includes Hero → Social Proof → Benefits → CTA flow for both lead capture and e-commerce pages.