mcpField
T
text

text

github.com/vercel-labsDocuments62974 installsUpdated 10w ago
Repository

About text

A text-processing skill that uses standard bash tools and included scripts to inspect and manipulate text files. It is intended for tasks such as measuring file statistics, searching patterns, extracting sections, and counting word frequencies.

Key features

  1. 01File line, word, and character counts
  2. 02Pattern search with optional context
  3. 03Extract lines or sections
  4. 04Word frequency counts

Use cases

  1. 01Checking the size of a document
  2. 02Finding errors in a log with context
  3. 03Extracting a range of lines
  4. 04Listing frequent terms in a text file

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/vercel-labs/bash-tool --skill text

After installing, type/textin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

scripts/
extract.sh
search.sh
stats.sh
wordfreq.sh

Details

From the project README

Text Processing Skill

Process text files using standard bash tools (grep, sed, awk, wc).

Available Scripts

stats.sh

Get statistics about a text file (lines, words, characters).

bash /skills/text/scripts/stats.sh document.txt
search.sh

Search for patterns in text files.

bash /skills/text/scripts/search.sh <file> <pattern> [--count] [--context <lines>]
extract.sh

Extract specific lines or sections from a file.

bash /skills/text/scripts/extract.sh <file> --lines <start>-<end>
bash /skills/text/scripts/extract.sh <file> --between <start_pattern> <end_pattern>
wordfreq.sh

Count word frequencies in a text file.

bash /skills/text/scripts/wordfreq.sh document.txt [--top <n>]

Examples

# Get file statistics
bash /skills/text/scripts/stats.sh readme.txt

# Search with context
bash /skills/text/scripts/search.sh log.txt "ERROR" --context 2

# Extract lines 10-20
bash /skills/text/scripts/extract.sh file.txt --lines 10-20

# Top 10 most frequent words
bash /skills/text/scripts/wordfreq.sh article.txt --top 10

Comments

Markdown supported