sample-text-processor

Counts words and characters and applies case transformations to text files.

Updated Aug 14, 2026
One-click install
npx skills add https://github.com/Rohithdgrr/REEK-uninstaller --skill sample-text-processor-rohithdgrr
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: sample-text-processor
Source: https://github.com/Rohithdgrr/REEK-uninstaller/tree/main/.opencode/skills/sample-text-processor
Command: npx skills add https://github.com/Rohithdgrr/REEK-uninstaller --skill sample-text-processor-rohithdgrr

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? It provides a minimal, dependency-free way to analyze text file statistics (word counts, character counts, line counts, word frequency) and apply basic text transformations, while also serving as a reference fixture for validating skill-testing tooling. ## Core Features & Use Cases - Text Analysis: Count total and unique words, characters, and lines, and identify the most frequent word in a file. - Text Transformation: Convert text to uppercase, lowercase, title case, or reversed text. - Batch Processing: Process entire directories of text files (.txt, .md, .rst, .csv, .log) with aggregated results in JSON or human-readable format. - Use Case: Run the analyze command on a folder of Markdown drafts to get per-file word counts and a combined total, exported as JSON for reporting. ## Quick Start Ask the assistant to analyze a text file with the text processor script, for example to count the words and characters in notes.txt and show the most frequent word.

Frequently Asked Questions about sample-text-processor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I count words in a text file with Python?▼

Run the analyze command with the text processor script: python text_processor.py analyze document.txt. It reports total words, unique words, characters, lines, and the most frequent word, with optional JSON output via --format json.

How to convert text to uppercase or title case from the command line?▼

Use the transform command with a mode flag: python text_processor.py transform file.txt --mode upper. Supported modes are upper, lower, title, and reverse, and the result can be written to a file with --output.

Can I batch process multiple text files at once?▼

Yes, the batch command recursively scans a directory for .txt, .md, .rst, .csv, and .log files and processes each one. It outputs per-file statistics plus aggregate totals in either JSON or human-readable format.

Does this text processor require external Python packages?▼

No, it uses only the Python standard library (argparse, json, collections, pathlib) and requires Python 3.7 or later. There are no pip dependencies to install.

Why do I get a UnicodeDecodeError when analyzing a file?▼

The error occurs when the file's actual encoding differs from the default utf-8. Re-run the command with the --encoding option set to the correct encoding, such as latin-1 or utf-16.

What are the limitations of this text processing approach?▼

It only handles plain text formats and does not support PDF or Word documents, sentiment analysis, or language detection. Very large datasets are processed sequentially without parallelization.