← 返回 Skills 市场
dinghaibin

Head Tool

作者 BIN · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
43
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install head-tool
功能描述
Display the first lines of files. Use for quickly previewing file contents, checking headers, or sampling data.
使用说明 (SKILL.md)

File Header Viewer

Output the beginning of files, defaulting to the first 10 lines. Essential for previewing log files, CSV headers, and large text files without loading them entirely.

Usage

head-tool [options] [file...]

Options

  • -n N: Show first N lines (default: 10)
  • -c N: Show first N bytes instead of lines
  • -q: Quiet mode (suppress filename headers)
  • Read from stdin when no file specified

Examples

# Show first 10 lines
head-tool data.csv

# Show first 20 lines
head-tool -n 20 log.txt

# Show first 100 bytes
head-tool -c 100 config.yaml
安全使用建议
This skill appears to be what it claims (a simple head-like viewer) and contains no network or credential requests, but the documentation and examples promise features (-c byte mode, -q quiet, multiple files) that the included script does not implement. Before installing or relying on it: 1) treat the package as untrusted code and review the script (it's short) or run it in a sandbox; 2) be aware the script reads entire files into memory (open(...).readlines()), which can cause large-memory use on very big files — prefer a streaming implementation if you need to inspect huge logs; 3) if you need the advertised -c/-q/multiple-file behavior, either update the code or do not rely on this skill; 4) since the skill can read any file the agent has permission to access, avoid invoking it on sensitive paths unless you trust the environment. If you want a fully coherent skill, ask the author to either update SKILL.md to match the code or extend the script to implement the advertised options and safe streaming/encoding handling.
功能分析
Type: OpenClaw Skill Name: head-tool Version: 1.0.0 The skill bundle provides a standard utility to preview the beginning of files, mimicking the Unix 'head' command. The implementation in scripts/head.py and the instructions in SKILL.md are consistent with the stated purpose and contain no evidence of malicious intent, data exfiltration, or prompt injection.
能力评估
Purpose & Capability
The stated purpose (show first lines of files) matches the supplied script: scripts/head.py prints the first N lines or reads from stdin. However SKILL.md advertises additional options (-c to show bytes, -q quiet mode, multiple files) that the script does not implement; this mismatch is unexplained and could confuse users or hide missing functionality.
Instruction Scope
SKILL.md instructs the agent to run head-tool and to read from stdin when no file is specified, which the script follows. The instructions imply handling multiple files and byte-mode output, but the runtime code only accepts a single optional filename and a line-count flag, so the instruction set is broader than the actual code behavior.
Install Mechanism
This is an instruction-only skill with one small Python script and no install spec; nothing is downloaded or installed automatically, which minimizes risk.
Credentials
No environment variables, credentials, or config paths are requested or required; the script only reads files or stdin, which is consistent with purpose.
Persistence & Privilege
The skill does not request always-on presence and has normal invocable defaults; it does not modify system or other skills' configs.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install head-tool
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /head-tool 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
Slug head-tool
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Head Tool 是什么?

Display the first lines of files. Use for quickly previewing file contents, checking headers, or sampling data. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 43 次。

如何安装 Head Tool?

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

Head Tool 是免费的吗?

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

Head Tool 支持哪些平台?

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

谁开发了 Head Tool?

由 BIN(@dinghaibin)开发并维护,当前版本 v1.0.0。

💬 留言讨论