← 返回 Skills 市场
jinwangmok

Disk Usage

作者 목진왕 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
114
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install disk-usage
功能描述
Show disk usage of a directory or file in human-readable format. Use when the user wants to know how much space a folder or file takes.
使用说明 (SKILL.md)

Disk Usage

Show how much disk space a directory or file uses with a single command.

Usage

du -sh \x3CPATH>

Arguments:

# Name Description
1 PATH Path to file or directory to measure

Example

du -sh /home/user/projects

Output:

1.2G	/home/user/projects

Format: SIZE PATH

Success / Failure

  • Success: One line with human-readable size and path (exit code 0)
  • Failure: Error message (exit code non-zero, e.g. path not found)
安全使用建议
This skill appears safe to run from a security perspective: it uses only the local du command, asks for no credentials, and contains no network calls. However, there is a functional inconsistency: the description and SKILL.md say it works for files or directories, but the included run.sh explicitly rejects non-directory arguments and lists only non-hidden entries (DIR/*), so hidden files/directories won’t be shown. Before installing or running, inspect run.sh (you already have it) and confirm it matches what you need. If you need file support or inclusion of hidden files, modify the script (e.g., allow files, and use du -sh "$DIR_PATH" or adjust globbing). Only run code from sources you trust; although no malicious behavior is evident, verifying the script is good practice.
功能分析
Type: OpenClaw Skill Name: disk-usage Version: 1.0.0 The disk-usage skill is a straightforward utility for measuring directory and file sizes using the standard 'du' command. The implementation in run.sh and the instructions in SKILL.md are well-structured, include basic error handling, and align perfectly with the stated purpose without any signs of malicious intent or suspicious behavior.
能力评估
Purpose & Capability
The skill's stated purpose is to show disk usage for a file or directory. The SKILL.md example (du -sh <PATH>) would support files or directories, but the provided run.sh explicitly rejects non-directory arguments (it checks [ ! -d "$DIR_PATH" ] and errors). That mismatch between description and the runnable script is an inconsistency a user should be aware of.
Instruction Scope
Both SKILL.md and run.sh limit actions to running du on local filesystem paths, sorting results, and printing the total. There are no network calls, no reading of unrelated files or environment variables, and no exfiltration. Note: run.sh uses the shell glob DIR/* so it will omit hidden (dot) entries and may behave differently on empty directories (shell glob expansion), which is a functional caveat rather than a security issue.
Install Mechanism
No install spec — instruction-only plus a small helper script. Nothing is downloaded or written to disk by an installer; risk from installation is minimal.
Credentials
The skill declares no required environment variables or credentials and the code does not reference any environment secrets. Required binary du is appropriate for the stated purpose.
Persistence & Privilege
The skill does not request permanent or elevated presence (always=false). It does not modify other skills or system configs and does not request privileged access.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install disk-usage
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /disk-usage 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of disk-usage skill. - Provides disk usage in a human-readable format for any file or directory. - Uses the Bash du -sh <PATH> command to measure space. - Outputs size and path in a single line, or an error message if the path is invalid.
元数据
Slug disk-usage
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Disk Usage 是什么?

Show disk usage of a directory or file in human-readable format. Use when the user wants to know how much space a folder or file takes. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 114 次。

如何安装 Disk Usage?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install disk-usage」即可一键安装,无需额外配置。

Disk Usage 是免费的吗?

是的,Disk Usage 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Disk Usage 支持哪些平台?

Disk Usage 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Disk Usage?

由 목진왕(@jinwangmok)开发并维护,当前版本 v1.0.0。

💬 留言讨论