返回 Skill 列表
extension
分类: 开发与工程无需 API Key

disk-space-analyzer

分析磁盘空间并找到可清理的文件。当用户想要清理磁盘、释放空间、查找大文件、分析磁盘使用情况,或者询问是什么占用了空间时使用。触发条件包括请求如“清理我的磁盘”、“释放C盘的空间”、“查找大文件”、“什么占用了我的磁盘空间”、“磁盘清理”。

person作者: jakexiaohubgithub

Disk Space Analyzer

Analyze disk space usage and identify files that can be safely cleaned. Data source and scripts differ by OS — do not reuse Windows scripts on macOS or vice versa.

First: determine the current operating system, then follow the workflow for that system only.

System check

Before any workflow steps, determine the OS:

  • Windows: sys.platform == "win32" or user is on Windows.
  • macOS: sys.platform == "darwin" or user is on Mac.

You can run:

python3 -c "import sys; print(sys.platform)"

(win32 → Windows, darwin → macOS)

Next steps by system

  • If Windows → Read and follow docs/windows.md for the full workflow (WizTree, scripts in scripts/windows/, analysis commands).
  • If macOS → Read and follow docs/macos.md for the full workflow (different data source and scripts; no WizTree).

Do not mix: Windows workflow uses scripts/windows/ (WizTree + CSV analysis). macOS workflow uses its own data source and scripts as described in docs/macos.md.