📦 Head Tool — Head 工具
v1.0.0Display the first lines of files. Use for quickly previewing file contents, 检查ing headers, or sampling data.
0· 27·0 当前·0 累计
安全扫描
OpenClaw
可疑
medium confidenceThe 技能 is a simple file-preview 工具 and contAIns no network/凭证 behavior, but the documentation (技能.md) and declared usage clAIm features that the included script does not implement, so the package is internally inconsistent.
评估建议
This 技能 应用ears to be what it clAIms (a simple head-like viewer) and contAIns no network or 凭证 请求s, but the documentation and examples promise features (-c byte mode, -q quiet, multiple files) that the included script does not implement. Before 安装ing or relying on it: 1) treat the package as untrusted code and review the script (it's short) or 运行 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 — pre...详细分析 ▾
ℹ 用途与能力
The 状态d purpose (show first lines of files) matches the supplied script: scripts/head.py prints the first N lines or reads from stdin. However 技能.md advertises 添加itional 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.
ℹ 指令范围
技能.md instructs the 代理 to 运行 head-工具 and to read from stdin when no file is specified, which the script follows. The instructions imply handling multiple files and byte-mode 输出, but the 运行time code only accepts a single optional filename and a line-count flag, so the instruction 设置 is broader than the actual code behavior.
✓ 安装机制
This is an instruction-only 技能 with one small Python script and no 安装 spec; nothing is 下载ed or 安装ed automatically, which minimizes risk.
✓ 凭证需求
No 环境 variables, 凭证s, or config paths are 请求ed or required; the script only reads files or stdin, which is consistent with purpose.
✓ 持久化与权限
The 技能 does not 请求 always-on presence and has normal invocable defaults; it does not modify 系统 or other 技能s' configs.
安全有层次,运行前请审查代码。
运行时依赖
无特殊依赖
安装命令
点击复制官方npx clawhub@latest install head-tool
镜像加速npx clawhub@latest install head-tool --registry https://cn.longxiaskill.com
技能文档
File Header Viewer
输出 the beginning of files, defaulting to the first 10 lines. Essential for previewing 记录 files, CSV headers, and large text files without loading them entirely.
Usage head-工具 [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-工具 data.csv
# Show first 20 lines head-工具 -n 20 记录.txt
# Show first 100 bytes head-工具 -c 100 config.yaml