Install
openclaw skills install @zhaoxinghua09-cell/disk-scan磁盘占用扫描 — 只读扫描目录占用:Top N 大文件 + 各子目录大小排行,快速定位空间杀手(零依赖) 适用场景:当需要磁盘占用扫描能力时使用本技能;触发词:disk-scan。
openclaw skills install @zhaoxinghua09-cell/disk-scan凡自治之物 · LGD 治理学 · 创造术家族 | 评测协议:见平台质量门禁规范
Use it whenever you need to analyze local or remote disk space usage — in particular to hunt for unknown large files or to rank subdirectories by size. Fits the moments when the system warns that storage is running low, when old data needs archiving, or when server operations need to assess disk health. Because it is zero-dependency and strictly read-only, it can run a safe probe quickly on any system with no special network constraints.
Invoke the script directly: python disk_scan.py. Use -p <dir> to set the scan root (defaults to the current directory). Use --top <number> to cap the number of largest files returned — 100 is recommended to balance speed and precision. Add --recursive to force traversal of deep substructures. Run -h for the standard help text.
python disk_scan.py -p /mnt/data -n 50 --recursive to start the scan.适用于需要分析本地或远程磁盘空间占用情况,特别是排查未知大文件或统计子目录大小排名的场景。当系统提示存储空间不足、需清理归档旧数据、或服务器运维中评估磁盘健康状态时使用本技能。因其零依赖且为只读模式,适合在任何没有特定网络环境限制的系统上快速执行安全探查。
直接调用脚本命令:python disk_scan.py。支持参数 -p <目录路径> 指定扫描目标根目录,默认为当前目录;使用 --top <数字> 设置大文件返回数量上限,推荐设为 100 以平衡性能与精度;添加 --recursive 参数可强制遍历深层子结构。若需查看具体命令帮助信息,请调用 -h 参数获取标准配置说明。
python disk_scan.py -p /mnt/data -n 50 --recursive 启动扫描进程。