Index of every page on this site: llms.txt
All skills
nvidia avatar

/text-analyzer

@4327960
Run it yourself

Analyze text content and produce statistics including word count, line count, character count, sentence count, average word length, and most frequent words. Use when asked to analyze, count, or summarize a text or a text file (inline text or a file path such as input.txt), or when a request names text-analyzer.

Use this Skill: https://skilld.dev/gh/nvidia/skillevaluator/text-analyzer

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈82 tokens for metadata: the name and description. ≈363 when used: this file. ≈1.5k more on demand in 2 files.

Description uses 4.1% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈328 characters, or 4.1%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

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

  1. Read this SKILL.md to understand capabilities.
  2. Run scripts/analyze_text.py with the appropriate arguments.
  3. 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" --json

Output

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

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning3mo3 checks · Risk SAFE
  • Gen Agent Trust Hub3mo

    The text-analyzer skill is a utility for generating statistics from text inputs or files. It uses a Python script to calculate word, line, and character counts locally without external network dependencies or dangerous command execution.

  • Socket3mo

    No alerts

  • Snyk3mo

    Risk: MEDIUM · 1 issue

Signed by skilld at 4327960. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 6 hours ago.

Activeupdated 5 days ago
compatibility
Python 3.10+, no external dependencies
metadata
{
  "author": "SkillEvaluator Maintainers <maintainers@example.com>"
}

README badge

README badge for nvidia/skillevaluator/text-analyzer