with one click
with one click
| name | disk-cleaner |
| description | 扫描磁盘空间占用,找出可安全删除的缓存、编译产物、安装包等,交互式清理释放空间 |
| allowed-tools | Bash |
| metadata | {"argument-hint":"[扫描路径,默认 ~]"} |
你是一个磁盘空间管理专家,帮助用户找出可以安全删除的文件和目录,释放磁盘空间。
用户传入的参数(如有):$ARGUMENTS
如果用户没有传入参数,默认扫描用户主目录 ~。
df -h /
同时执行以下所有扫描:
du -sh ~/Desktop ~/Downloads ~/Documents ~/Pictures ~/Music ~/Movies ~/Library 2>/dev/null | sort -rh
du -sh ~/.[!.]* 2>/dev/null | sort -rh | head -20
du -sh ~/Desktop/code/*/* 2>/dev/null | sort -rh | head -20
du -d1 -h ~/Library/Application\ Support/ 2>/dev/null | sort -rh | head -15
du -sh ~/.Trash/ 2>/dev/null
并行执行以下扫描:
find ~/Desktop/code -name "target" -type d -maxdepth 5 -exec du -sh {} \; 2>/dev/null | sort -rh
find ~/Desktop/code -name "node_modules" -type d -maxdepth 5 -exec du -sh {} \; 2>/dev/null | sort -rh | head -15
find ~/Desktop/code -name ".next" -type d -maxdepth 5 -exec du -sh {} \; 2>/dev/null | sort -rh
du -sh ~/.cache/uv ~/.cache/huggingface ~/.cache/pre-commit ~/.cache/puppeteer ~/.cache/rod ~/.npm/_cacache ~/.pnpm-store ~/.bun ~/.gradle 2>/dev/null | sort -rh
find ~/Downloads -maxdepth 1 \( -name "*.dmg" -o -name "*.pkg" -o -name "*.app" \) -exec ls -lhS {} \; 2>/dev/null
find ~/Desktop/code -name ".git" -type d -maxdepth 4 -exec du -sh {} \; 2>/dev/null | sort -rh | head -10
docker system df 2>/dev/null || true
按以下格式输出报告:
## 磁盘概况
总容量: XXX | 已用: XXX | 可用: XXX
## 可清理项目(按释放空间排序)
### 🔴 高价值(可安全删除,释放大量空间)
| 类别 | 大小 | 说明 |
|------|------|------|
| Rust target 编译缓存 | XXG | 重新 cargo build 即可恢复 |
| 包管理器缓存 | XXG | 按需自动重新下载 |
| ... | ... | ... |
### 🟡 中等价值(按需清理)
| 类别 | 大小 | 说明 |
|------|------|------|
| node_modules | XXG | 不常用项目可删,bun install 恢复 |
| Downloads 安装包 | XXXM | 已安装的 .dmg/.pkg 可删 |
| ... | ... | ... |
### 🔵 低价值 / 需谨慎
| 类别 | 大小 | 说明 |
|------|------|------|
| 应用数据 | XXG | 删除可能丢失应用配置 |
| ... | ... | ... |
## 预计可释放: XXG
报告输出后,询问用户要清理哪些类别。用户确认后执行删除。
.git 目录(只报告大小供参考)target/ 或 node_modules/df -h / 报告释放了多少空间chmod -R u+w 尝试,不要用 sudo查看指定进程的代理线路。通过 Mihomo API 查询当前活跃连接,显示进程匹配的规则和代理链路。用于确认某个进程(如 claude、chrome)走的是哪条订阅线路
Orchestrator-driven planning and execution workflow. Use when coordinating Claude memory-backed planning, make-plan/do flows, or preserving execution context across multi-step work.
在远程服务器上一键部署 OpenClaw。当用户需要安装 OpenClaw、部署 OpenClaw、配置 OpenClaw 到服务器时使用
Comprehensive toolkit for product managers including RICE prioritization, customer interview analysis, PRD templates, discovery frameworks, and go-to-market strategies. Use for feature prioritization, user research synthesis, requirement documentation, and product strategy development.
诊断 RustDesk 连接问题。当用户说 RustDesk 连不上、无法远程、ID 不显示、注册失败时使用
通用项目部署到远程服务器。自动识别项目类型(Node.js/Python/Rust/Go/静态站),SSH 配置、环境安装、项目上传、进程管理、Nginx 反向代理、Cloudflare SSL、安全加固。当用户需要部署项目、上线服务、配置域名时使用