Install
openclaw skills install disk-space-analyzer磁盘空间分析与优化建议工具。自动扫描所有磁盘驱动器,生成包含目录占用排名、 爆满元凶锁定、可清理缓存识别和优化建议的完整报告。 触发词: 磁盘空间分析、C盘满了、硬盘空间不足、磁盘爆满、磁盘占用、磁盘分析、 磁盘清理、C盘空间、磁盘空间报告、扫描磁盘、disk space、磁盘满了、磁盘空间不够、 帮我看看磁盘、磁盘空间分析工具、清理磁盘空间、磁盘瘦身
openclaw skills install disk-space-analyzer扫描用户所有磁盘驱动器,生成专业的空间分析报告(HTML)。
Run the bundled scanner script to collect disk usage data:
python scripts/disk_scan.py --top 10 --deep --output <output_path>
--top N: Number of top directories per drive (default 10)--deep: Deep-trace the top 3 directories on each drive, recursively following the largest child up to 5 levels deep to find the true culprit--output: Save JSON to file (recommended for large reports)Read the JSON output. Key fields:
drives[]: Per-drive overview with top_directoriesdrives[].deep_consumers[]: Top 3 dirs with their children + culprit_trace (recursive deep trace result with chain, leaf, breadcrumb)special_locations: Cache/temp locations across all driveswindows_components: C:\Windows subfolder breakdownCreate an HTML report by:
assets/report_template.html to the workspace as the HTML output file__REPORT_DATA__ in the HTML with the raw JSON string from json.dumps(data, ensure_ascii=False, separators=(',',':'))const REPORT_DATA = __REPORT_DATA__; — JSON is injected directly as a JS object literal, no parsing needed⚠️ Simply replace __REPORT_DATA__ with the raw JSON output. Do NOT add any extra escaping.
Python snippet for report generation:
import json
with open(scan_json_path, encoding='utf-8') as f:
data = json.load(f)
with open(template_path, encoding='utf-8') as f:
html = f.read()
json_str = json.dumps(data, ensure_ascii=False, separators=(',',':'))
html = html.replace('__REPORT_DATA__', json_str)
with open(output_html_path, 'w', encoding='utf-8') as f:
f.write(html)
After showing the visual report, provide a text summary to the user:
Program Files → NetEase → MuMu → vms)WinSxS is not safe to manually delete; recommend Dism /Online /Cleanup-Image /StartComponentCleanupspecial_locations scan will simply find fewer items