# Text Toolkit

> Summarize text, extract keywords, check readability, and remove duplicate lines with Python. Use when the user or agent wants to shorten, measure, or clean up a text file.

Text Toolkit is a free AI agent skill on Agensi by megaartaiking-cmd, in Productivity. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [megaartaiking-cmd](https://www.agensi.io/creators/ahmad-hasnain)
- Category: [Productivity](https://www.agensi.io/skills/productivity)
- Version: 1.1
- Last updated: 2026-11-26
- Security: scan passed (2026-11-26); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/text-toolkit
- Tags: productivity, python, text-processing, cli-tools

## About this skill

Manually processing large text files for summaries or cleanup is slow and prone to human error. This skill provides a suite of Python-based utilities to analyze and organize plain text files locally without relying on external cloud APIs.

### What it does
- **Extractive summarization** selects the most representative sentences from a document while maintaining their original order.
- **Keyword extraction** identifies the most frequent terms in a text file after filtering out common stopwords.
- **Readability scoring** calculates the Flesch reading ease score and provides a grade-level estimate.
- **Line deduplication** scans files for redundant content and removes duplicate lines while preserving the first occurrence.

### How it works
1. **Validate format** by confirming the target file is plain text before beginning any operations.
2. **Run analysis** using the `texttool.py` script with specific flags for summarization, keywords, or readability.
3. **Clean data** by executing the dedupe command to output a unique-line version of the file.
4. **Report findings** by quoting extracted sentences exactly or listing word frequency percentages.

### Frameworks & tools
This skill utilizes a Python-based CLI tool named `texttool.py`. It operates entirely on local text files and does not require internet connectivity or third-party LLM credits for its core processing logic.

### Why this beats prompting it yourself
Prompting an LLM for these tasks often results in rewritten summaries that lose the original phrasing or hallucinations in keyword counts. This tool ensures 100% accuracy in extraction and line-by-line deduplication that generative models frequently fail to execute perfectly on long files.

### Use cases
- Generate 3-sentence extractive summaries for long technical articles.
- Extract top 10 keywords and their frequencies from documentation.
- Audit the reading level of user manuals using Flesch scores.
- Remove duplicate entries from log files or raw list exports.

### Known limitations
Works only with plain text files. Summaries are strictly extractive and will not paraphrase. Keyword extraction is frequency-based and does not account for semantic importance.

## Requires

- Python 3.10+

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Text Toolkit skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What core text processing problems does the Text Tools skill solve?

This skill provides Python-driven extractive summarization, keyword frequency analysis, readability scoring (Flesch Ease), and file deduplication for plain text documents. It solves the issue of LLM 'hallucinations' in data analysis by using local programmatic logic to ensure 100% accuracy in extraction.

### Does this skill require an internet connection or external API credits to work?

No, this tool operates entirely offline and does not require OpenAI, Anthropic, or any other LLM API credits. All processing—from summarization to deduplication—is performed locally on your machine via the included Python script.

### What exactly is included in the purchase of the Text Tools skill?

You will receive the `texttool.py` script, a comprehensive README with setup instructions, and a set of integration prompts to help your AI agent understand how to trigger specific flags. The package includes everything needed to start processing text files immediately.

### Are there specific file formats or size limitations I should be aware of?

The tools are optimized for .txt, .log, .csv, and other plain text formats. While it cannot natively parse complex binaries like PDFs or Word docs, your agent can use it on any text-extracted content from those files.

### Why should I use this skill instead of just asking an LLM to summarize a text?

Unlike generative prompting, which often paraphrases or alters meaning, this tool uses extractive logic to pull the exact sentences from the source. This ensures that the summaries and keywords are 100% faithful to the original text without any creative "hallucinations."

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
