← 返回 Skills 市场
dinghaibin

Wc Tool

作者 BIN · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
17
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install wc-tool
功能描述
Count lines, words, characters, and bytes in one or more files with per-file and total summary. Use for document statistics, code analysis, and data volume e...
使用说明 (SKILL.md)

WC Tool — Word, Line & Character Counter

Multi-file word count utility. Count lines, words, characters (multibyte-aware), and bytes across one or more files with per-file breakdown and grand total. Supports standard input for pipeline use.

Quick Start

# Count everything for a file
wc-tool document.txt

# Count lines only
wc-tool -l script.py

# Count from stdin
cat file.txt | wc-tool -w

Usage

wc-tool [OPTIONS] [FILE...]
cat INPUT | wc-tool [OPTIONS]

Options:
  -l, --lines     Count lines only
  -w, --words     Count words only
  -c, --bytes     Count bytes only
  -m, --chars     Count characters (multibyte-aware)
  -L, --max-line  Print length of longest line
  --files0-from FILE   Read input file list from FILE (null-separated)
  --total          Show grand total (default with multiple files)
  --json          Output as structured JSON

Examples

# Full count (lines, words, chars, bytes)
wc-tool README.md

# Lines only (code file size metric)
wc-tool -l src/main.py src/utils.py

# Characters in a file (UTF-8 aware)
wc-tool -m document.txt

# Longest line length
wc-tool -L src/main.py

# Pipe from another command
ls /usr/bin | wc-tool -l

# JSON output for automation
wc-tool -l -w *.py --json

# Multiple files with total
wc-tool *.txt

Features

  • 4 modes — lines, words, characters (multibyte), bytes
  • Multi-file — process many files, show per-file + total
  • Stdin support — pipe input from other commands
  • Longest line — detect max line length
  • JSON output — structured for scripts
  • Null-separated file list — safe file name handling
  • Exit code 0/1 — script-friendly
安全使用建议
This skill looks safe for local word-count tasks, but its documentation is more capable than the provided script. Do not rely on unsupported options such as JSON, byte counting, multiple files, or max-line output unless you verify or update the implementation.
功能分析
Type: OpenClaw Skill Name: wc-tool Version: 1.0.0 The skill is a standard word count utility providing basic line, word, and character counting functionality. While there is a discrepancy between the documentation (SKILL.md), which claims support for multiple files and JSON output, and the implementation (scripts/wc.py), which only handles a single file or stdin and lacks those features, the code contains no malicious logic, data exfiltration, or prompt injection. A minor resource exhaustion risk exists because the script reads entire files into memory at once, but this is a common design limitation rather than an intentional vulnerability.
能力评估
Purpose & Capability
The stated purpose is coherent and low-risk, but SKILL.md claims multi-file, byte, JSON, max-line, and null-separated-list support while the included script only reads one file or stdin and counts lines, words, and characters.
Instruction Scope
The instructions are user-directed command examples; there is no evidence of autonomous execution, hidden tool chaining, or instructions to bypass user review.
Install Mechanism
There is no install spec even though SKILL.md uses a wc-tool command name; the included Python script is simple and has no dependencies, but invocation/packaging is unclear.
Credentials
Reading a user-specified file or stdin is proportionate for a word-count utility, and the code shows no network access, credential use, or unexpected file writes.
Persistence & Privilege
No persistence, background behavior, credentials, privileged paths, or account access are shown in the artifacts.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install wc-tool
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /wc-tool 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
Slug wc-tool
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Wc Tool 是什么?

Count lines, words, characters, and bytes in one or more files with per-file and total summary. Use for document statistics, code analysis, and data volume e... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 17 次。

如何安装 Wc Tool?

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

Wc Tool 是免费的吗?

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

Wc Tool 支持哪些平台?

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

谁开发了 Wc Tool?

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

💬 留言讨论