← 返回 Skills 市场
johnnywang2001

Text Stats

作者 John Wang · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
149
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install jrv-text-stats
功能描述
Analyze text files for word count, character count, line count, sentence count, reading time, speaking time, readability scores (Flesch Reading Ease, Flesch-...
使用说明 (SKILL.md)

Text Stats

Analyze text for word count, readability, reading time, and more. Reads files or stdin.

Quick Start

# Analyze a file
python3 scripts/text_stats.py README.md

# Multiple files
python3 scripts/text_stats.py file1.txt file2.txt

# From stdin
echo "The quick brown fox jumps over the lazy dog." | python3 scripts/text_stats.py

# JSON output
python3 scripts/text_stats.py essay.md -f json

# Compact (key metrics only)
python3 scripts/text_stats.py chapter.txt --compact

Output Metrics

Metric Description
Words Total word count
Characters Total characters (with and without spaces)
Lines Total and non-blank line count
Sentences / Paragraphs Count of each
Syllables Estimated syllable count
Unique Words Vocabulary diversity
Avg Word/Sentence Length Average sizes
Reading Time Estimated at 238 WPM
Speaking Time Estimated at 150 WPM
Flesch Reading Ease 0-100 scale (higher = easier)
Flesch-Kincaid Grade US grade level equivalent
Difficulty Easy / Standard / Fairly Difficult / Difficult / Very Difficult

Options

Flag Description
-f, --format plain or json output
--compact Show only words, sentences, reading time, grade, difficulty

Notes

  • No external dependencies (Python 3 stdlib only)
  • Handles UTF-8 text with graceful fallback for encoding errors
  • Syllable counting is heuristic-based (English-optimized)
安全使用建议
This skill appears safe and does what it claims: it analyzes text locally with a small Python script and has no network calls or credential access. Before installing/run: (1) review the included script (it's short and uses only the stdlib); (2) only supply files you are comfortable having processed locally (the script will read file contents); (3) if you obtained this skill from an unknown source and need stronger assurance, run it in a sandbox or compare the code to a trusted repository; and (4) note the syllable heuristics and sentence splitting are English-optimized and approximate.
功能分析
Type: OpenClaw Skill Name: jrv-text-stats Version: 1.0.0 The skill bundle provides a standard utility for analyzing text statistics such as word count, readability scores (Flesch-Kincaid), and estimated reading time. The implementation in `scripts/text_stats.py` relies solely on the Python standard library, processes files or stdin locally, and contains no indicators of data exfiltration, malicious execution, or prompt injection.
能力评估
Purpose & Capability
The name/description (text statistics, readability, reading/speaking time) match the provided SKILL.md and the included Python script. There are no unrelated required binaries, env vars, or config paths.
Instruction Scope
SKILL.md instructs running the bundled script on files or stdin and describes output flags; the runtime instructions and code operate only on supplied text and produce local output. The instructions do not request reading unrelated system files or sending data to external endpoints.
Install Mechanism
No install spec; the skill is instruction-only with an included script. Nothing is downloaded or installed from remote URLs and the script uses only the Python standard library.
Credentials
No environment variables, credentials, or config paths are required. The script reads only files you pass or stdin, which is proportionate to its stated purpose; be aware that any file you provide will be read and processed locally.
Persistence & Privilege
The skill is not declared as always:true and does not attempt to modify agent/system configuration. Autonomous invocation is allowed by default but there are no privileged actions requested by the skill.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install jrv-text-stats
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /jrv-text-stats 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of text-stats skill: - Analyze text files for word count, character count, line count, sentence count, syllables, and paragraph count. - Provides vocabulary statistics, readability scores (Flesch Reading Ease, Flesch-Kincaid Grade), and difficulty level. - Estimates reading (238 WPM) and speaking time (150 WPM). - Supports multiple files, stdin input, JSON output, and compact summary mode. - Requires only Python 3 standard library; handles UTF-8 text and encoding errors robustly.
元数据
Slug jrv-text-stats
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Text Stats 是什么?

Analyze text files for word count, character count, line count, sentence count, reading time, speaking time, readability scores (Flesch Reading Ease, Flesch-... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 149 次。

如何安装 Text Stats?

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

Text Stats 是免费的吗?

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

Text Stats 支持哪些平台?

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

谁开发了 Text Stats?

由 John Wang(@johnnywang2001)开发并维护,当前版本 v1.0.0。

💬 留言讨论