disk-cleanup
Skill3 starsChanged 8 months agoMITView on GitHub
macOS 磁碟清理。掃描大目錄、分類可刪/可搬/需確認、Docker/Xcode 清理。當用戶說「清磁碟」「磁碟空間不夠」「disk cleanup」時使用。
- Reads credentials
12 other projects use a version of this.
Adopted by
Most recently taken up by
- galonge/free-claude-skillstheir own version, first seen Sep 6, 2026
- zhaochuang001/awesome-agent-skillstheir own version, first seen Sep 4, 2026
- gaganjainse/shesh-skillstheir own version, first seen Aug 15, 2026
- ebal/AI-Skillstheir own version, first seen Jul 15, 2026
- xiaxin5666/claude-skills-marketplacetheir own version, first seen Jul 6, 2026
- TsinHzl/disk-cleanup-skilltheir own version, first seen Jul 4, 2026
Other versions12 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 12
- glebis/claude-skills★ 387same name
- jayll1303/AIEKit★ 18same name
- vndee/engineering-skills★ 3same name
- foogunlana/skills★ 1same name
- galonge/free-claude-skills★ 1same name
- shell-nlp/skills★ 1same name
- skyvanguard/infra-ops★ 1same name
- TsinHzl/disk-cleanup-skill★ 1same name
- xiaxin5666/claude-skills-marketplace★ 1same name
- ebal/AI-Skills★ 0same name
2 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- architecture-diagramSkill
- case-studySkill
- csv-to-chartSkill
- cv-optimizeSkill
- db-edaSkill
- demo-storytellingSkill
- drawioSkill
- generate-imageSkill
- gh-issue-to-specSkill
- pdf-to-summarySkill
- postmortemSkill
- product-positioningSkill
- proposal-reviewSkill
- roundtableSkill
- vendor-evalSkill
The file
Files
macOS 磁碟清理
一鍵掃描磁碟用量,分類建議,協助清理空間。
流程
Step 1:總覽
同時執行:
df -h /
diskutil apfs list | grep -E "Capacity In Use|Capacity Not Allocated" | head -2報告:APFS 實際可用空間(注意 Finder 數字含 purgeable,不準確)。
Step 2:掃描大目錄
du -sh ~/Documents ~/Downloads ~/Movies ~/GitHub ~/GitLab ~/Projects ~/.cache ~/Library/Caches ~/Library/Developer ~/Library/Containers 2>/dev/null | sort -rh對 > 5GB 的目錄進一步展開子目錄。
Step 3:分類
將找到的項目分成三類,用表格呈現:
| 類別 | 說明 | 需確認 |
| 可安全刪除 | cache、.venv、node_modules、DerivedData、pycache、.ruff_cache | 自動列出,確認後刪 |
| 可搬到外接 | 大型模型、VM、DMG、影片、舊專案 | 列出後問用戶 |
| 需確認 | 不確定用途的大目錄 | 問用戶 |
Step 4:Docker 清理
docker system df若有可回收空間,建議 docker system prune(需用戶確認)。
Step 5:Xcode 清理
檢查:
xcrun simctl runtime list # Simulator runtimes
ls ~/Library/Developer/Xcode/iOS\ DeviceSupport/ # DeviceSupport
du -sh ~/Library/Developer/Xcode/DerivedData # DerivedData
du -sh /Library/Developer/CoreSimulator # CoreSimulator 總量列出可刪的舊版本(保留最新兩個),用戶確認後執行。
Step 6:Python venvs
掃描所有 .venv 和 virtualenvs:
find ~ -maxdepth 4 -type d -name ".venv" -o -name "venv" 2>/dev/nullStep 7:Time Machine 本機快照
tmutil listlocalsnapshots /若快照過多(> 10 個),建議清理。
Step 8:結果報告
## 磁碟清理報告
**清理前**: APFS free {X}GB
**可回收空間**:
- 可安全刪除: {X}GB
- 可搬到外接: {X}GB
- Docker: {X}GB
- Xcode: {X}GB
### 建議操作(需你確認):
1. ...
2. ...注意
- 所有刪除操作前必須讓用戶確認
- 不要刪 .env、credentials、SSH key 等敏感檔案
- 掃描不應超過 60 秒
- 此 skill 僅適用 macOS
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

