text-analyzer
Skill656 starsChanged 6 days agoApache-2.0View on GitHub
Analyze text content and produce statistics including word count, line count, character count, most frequent words, and readability metrics. Works on any plain text input provided inline or from a file path.
In this repository7 other files it gives its agents.
- docs/AGENTS.mdAGENTS.md
- skillevaluatorSkill
- api-callerSkill
- calculatorSkill
- create-custom-graderSkill
- task-listSkill
- simpleSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 21
Read this SKILL.md to understand capabilities.
- Very specific: line 22
Run scripts/analyze_text.py with the appropriate arguments.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Text Analyzer
Analyze text and produce structured statistics.
Purpose
Provide quick text analytics — word counts, line counts, character counts, top frequent words, average word length, and sentence count — for any plain-text input.
Agent Instructions
- Read this SKILL.md to understand capabilities.
- Run
scripts/analyze_text.pywith the appropriate arguments. - Return the analysis results to the user.
Examples
Usage
# Analyze inline text
python scripts/analyze_text.py --text "Your text content here"
# Analyze a file
python scripts/analyze_text.py --file /path/to/file.txt
# JSON output (default is human-readable)
python scripts/analyze_text.py --text "Hello world" --jsonOutput
The script prints a structured report with:
- Word count — total words
- Line count — total lines
- Character count — total characters (including whitespace)
- Sentence count — estimated sentence count
- Average word length — mean characters per word
- Top 5 words — most frequent words and their counts
Limitations
- Sentence detection uses simple period/question/exclamation splitting; may be inaccurate for abbreviations (e.g., "U.S.A.").
- Non-UTF-8 files will be read with errors replaced.
Troubleshooting
| Problem | Fix |
FileNotFoundError | Check the --file path exists |
| Empty output | Ensure --text or --file is provided |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

