text-summarizer
Generate extractive summaries from long text documents. Control summary length, extract key sentences, and process multiple documents.
Profile →npx skills add majiayu000/claude-skill-registry --skill text-summarizer --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Text Summarizer Create concise summaries from long text documents using extractive summarization. Identifies and extracts the most important sentences while preserving meaning. ## Quick Start ```python from scripts.text_summarizer import TextSummarizer # Summarize text summarizer = TextSummarizer() summary = summarizer.summarize(long_text, ratio=0.2) # 20% of original print(summary) # Summarize file summary = summarizer.summarize_file("article.txt", num_sentences=5) ``` ## Features - **Extractive Summarization**: Selects key sentences from original text - **Length Control**: By ratio, sentence count, or word count - **Multiple Algorithms**: TextRank, LSA, frequency-based - **Key Points**: Extract bullet-point summaries - **Batch Processing**: Summarize multiple documents - **Preserve Structure**: Maintains sentence order option ## API Reference ### Initialization ```python summarizer = TextSummarizer( method="textrank", # textrank, lsa, frequency language="english" ) ``` ### Summarization ```python # By ratio (20% of original length) summary = summarizer.summarize(text, ratio=0.2) # By sentence count summary = summarizer.summarize(text, num_sentences=5) # By word count summary =
- Quick Start
- Features
- API Reference
- Initialization
- Summarization
- Key Points Extraction
- Batch Processing
- Options
- CLI Usage
- CLI Arguments
- Examples
- News Article Summary
- Research Paper Abstract
- Meeting Notes Summary
Summarize text file python text_summarizer.py --input article.txt --ratio 0.2 Specific sentence count python text_summarizer.py --input article.txt --sentences 5 Extract key points python text_summarizer.py --input article.txt --points 5 Batch process python text_summarizer.py --input-dir ./docs --output-dir ./summaries --ratio 0.3 Output to file python text_summarizer.py --input article.txt --output summary.txt --ratio 0.2
What does the text-summarizer skill do?
Generate extractive summaries from long text documents. Control summary length, extract key sentences, and process multiple documents.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill text-summarizer --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.