← Back to Skills Marketplace
dinghaibin

Wc Chars 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-chars-tool
Description
Count characters in text input — total, non-whitespace, CJK, and Unicode-aware character counts. Useful for text analysis, content length limits, and i18n va...
README (SKILL.md)

WC Chars Tool — Character Counting Utility

Count characters in text with Unicode awareness. Supports total characters, non-whitespace characters, CJK character detection, and byte-offset reporting. Essential for validating text constraints (SMS, tweets, form fields, database column limits).

Quick Start

# Count characters in a string
wc-chars-tool "Hello, 世界!"

# Count from stdin
echo "Hello World" | wc-chars-tool

# Count characters in a file
wc-chars-tool --file document.txt

Usage

wc-chars-tool [TEXT] [OPTIONS]
wc-chars-tool --file FILE [OPTIONS]

Options:
  --file FILE       Read from file instead of argument
  --bytes           Count bytes instead of characters
  --no-whitespace   Exclude whitespace from count
  --cjk-only        Count only CJK characters
  --graphemes       Count grapheme clusters (user-perceived characters)
  --json            Output as structured JSON
  --detailed        Show breakdown: total, non-ws, digits, punct, spaces

Examples

# Count total characters
wc-chars-tool "Hello World"

# Count bytes in a UTF-8 string
wc-chars-tool "Hello, 世界!" --bytes

# Count non-whitespace characters
wc-chars-tool "Hello World" --no-whitespace

# Count CJK characters only
wc-chars-tool "Hello 你好 世界 world" --cjk-only

# Detailed breakdown
wc-chars-tool "Hello, 世界! 123" --detailed --json

Features

  • Unicode-aware — correctly handles multi-byte characters (CJK, emoji, accents)
  • Grapheme clusters — counts user-perceived characters, not just code points
  • Multiple modes — total, non-whitespace, CJK, byte count
  • Detailed breakdown — digits, punctuation, spaces, letters
  • File and stdin input — flexible input sources
  • JSON output — for monitoring and script integration
Usage Guidance
This skill looks safe to install from a security perspective. Be aware that the documentation lists options such as file input and grapheme counting, while the included script only performs a simple stdin character count, so verify functionality before relying on it.
Capability Analysis
Type: OpenClaw Skill Name: wc-chars-tool Version: 1.0.0 The skill bundle provides a basic character counting utility. While the documentation in SKILL.md describes advanced features like CJK detection, JSON output, and file handling, the actual implementation in scripts/chars.py is a minimal Python script that only counts characters from standard input. There is no evidence of malicious intent, data exfiltration, or harmful instructions.
Capability Assessment
Purpose & Capability
The stated purpose is character counting, and the included script only reads stdin and prints a character count; the documentation advertises more options than the script shows, but that is a functionality gap rather than a security risk.
Instruction Scope
The instructions are user-directed CLI examples and do not contain prompt overrides, forced tool use, hidden goals, or autonomous high-impact actions.
Install Mechanism
There is no install spec, no declared dependencies, no required binaries, and the static scan reported no suspicious patterns.
Credentials
The described inputs are user-provided text, stdin, or a user-selected file, which is proportionate for a character-counting utility.
Persistence & Privilege
No persistence, background execution, credential handling, privilege escalation, or account access is 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-chars-tool
  3. After installation, invoke the skill by name or use /wc-chars-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-chars-tool
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Wc Chars Tool?

Count characters in text input — total, non-whitespace, CJK, and Unicode-aware character counts. Useful for text analysis, content length limits, and i18n va... It is an AI Agent Skill for Claude Code / OpenClaw, with 17 downloads so far.

How do I install Wc Chars Tool?

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

Is Wc Chars Tool free?

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

Which platforms does Wc Chars Tool support?

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

Who created Wc Chars Tool?

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

💬 Comments