Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计提醒

disk-space-analyzer磁盘空间分析器

Agent Skill

disk-space-analyzer 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,929

周安装

82

GitHub Stars

1

下载量

676
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:disk-space-analyzer(磁盘空间分析器)
来源仓库:https://github.com/raingingkleec/disk-space-analyzer
安装命令:
openclaw skills install disk-space-analyzer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install disk-space-analyzer

简介

扫描磁盘空间并生成占用分析报告。

  • 识别目录排名、爆满原因与可清理缓存。
  • 提供优化建议与清理操作指南。disk-space-analyzer 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 支持多驱动器分析与可视化展示。适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。
  • 触发词包括“磁盘满了”“空间不足”等自然语言指令。

SKILL.md

name
disk-space-analyzer
description
>

Disk Space Analyzer

扫描用户所有磁盘驱动器,生成专业的空间分析报告(HTML)。

Workflow

Phase 1: Scan

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)
  • Output: JSON with per-drive data, progress to stderr

Read the JSON output. Key fields:

  • drives[]: Per-drive overview with top_directories
  • drives[].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 drives
  • windows_components: C:\Windows subfolder breakdown

Phase 2: Generate Report

Create an HTML report by:

  1. Read the scan JSON data
  2. Copy assets/report_template.html to the workspace as the HTML output file
  3. Replace __REPORT_DATA__ in the HTML with the raw JSON string from json.dumps(data, ensure_ascii=False, separators=(',',':'))
  4. The HTML template uses const REPORT_DATA = __REPORT_DATA__; — JSON is injected directly as a JS object literal, no parsing needed
  5. Deliver the HTML file and preview it

⚠️ 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)

Phase 3: Present & Advise

After showing the visual report, provide a text summary to the user:

  1. 每个盘元凶锁定: Every drive gets a culprit alert — the deep tracer recursively follows the largest child directory up to 5 levels to find the true space hog (e.g., Program Files → NetEase → MuMu → vms)
  2. 追踪路径可视化: Show the breadcrumb path of how the culprit was traced
  3. 前3目录深度分析: Show children breakdown for each drive's top 3 directories
  4. 可清理项: List safe-to-clean caches and temp files with total savings
  5. 优化建议: Actionable recommendations ordered by impact

Suggestion Rules

  • If a directory exceeds 30% of drive used space, flag it as the primary culprit
  • For Windows systems, note WinSxS is not safe to manually delete; recommend Dism /Online /Cleanup-Image /StartComponentCleanup
  • For MuMu/Android emulators, recommend migrating VM storage to another drive
  • For cache/temp files, confirm with user before deleting (show the list first)

Edge Cases

  • If a drive scan fails (permission denied), skip and note it
  • On non-Windows systems, the special_locations scan will simply find fewer items
  • If only one drive exists, still run the full workflow

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

78.67%
按下载量换算532

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills