← Back to Skills Marketplace
dinghaibin

Wc Tool

by BIN · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
17
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install wc-tool
Description
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...
README (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
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install wc-tool
  3. After installation, invoke the skill by name or use /wc-tool
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release
Metadata
Slug wc-tool
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 17 downloads so far.

How do I install Wc Tool?

Run "/install wc-tool" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Wc Tool free?

Yes, Wc Tool is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Wc Tool support?

Wc Tool is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Wc Tool?

It is built and maintained by BIN (@dinghaibin); the current version is v1.0.0.

💬 Comments