Content Summarizer
by @kryzl19
Fetch any URL and produce a structured content summary with extractive summarization, AI enhancement prompts, and structured output templates. Extracts clean...
clawhub install strd-content-summarizerπ About This Skill
name: content-summarizer description: Fetch any URL and produce a structured content summary with extractive summarization, AI enhancement prompts, and structured output templates. Extracts clean text from HTML, identifies key sentences, generates metadata, and provides ready-to-use prompts for AI summarization. Perfect for content repurposing, research pipelines, and newsletter workflows. metadata: { "openclaw": { "requires": { "bins": ["curl", "python3"] }, "install": [], }, }
Content Summarizer
Transform any URL or raw text into structured, actionable content summaries using extractive summarization + AI enhancement prompts.
What This Skill Does
1. Fetches any URL and extracts clean text (removes HTML, nav, scripts, ads) 2. Extracts key sentences algorithmically (extractive summarization β no API needed) 3. Generates metadata (title, word count, reading time) 4. Outputs a structured markdown template + AI enhancement prompt ready for any LLM
The AI enhancement prompt makes the extracted content easy to summarize with MiniMax, GPT-4o, or Claude.
Quick Start
# Summarize a URL (outputs to terminal + /tmp/summaries/)
./scripts/url-to-summary.sh https://example.com/articleSummarize text directly (from argument or pipe)
./scripts/summarize.sh "Your article text here..."
cat article.txt | ./scripts/summarize.shCustom model for AI prompt
./scripts/url-to-summary.sh https://example.com --model openai
Scripts
url-to-summary.sh β Full Summary from URL
./scripts/url-to-summary.sh [--model minimax|openai|anthropic]
Fetches URL, extracts clean text, produces:
Output saved to /tmp/summaries/summary-TIMESTAMP.md
summarize.sh β Summarize Text Directly
./scripts/summarize.sh "Your text..."
cat file.txt | ./scripts/summarize.sh
Same output as url-to-summary.sh but for raw text input.
Output Format
# Content SummarySource: [url]
Title: [extracted or unknown]
Stats: ~1,200 words | ~6 min read
Key Sentences (Extractive Summary)
[Top 15-20 most meaningful sentences from the text]Structured Summary Template
[TODO fields for: what, why, key points]Tweet Hook
[TODO: Compelling one-liner]Key Takeaways
1. [TODO]
2. [TODO]
3. [TODO]AI Enhancement Prompt
[Ready-to-use prompt with extracted text embedded]
Environment Variables
| Variable | Default | Description |
|----------|---------|-------------|
| OUTPUT_DIR | /tmp/summaries | Where to save summary files |
| MODEL | minimax | AI model for enhancement prompt |
Use Cases
Notes
Output Format
## Summary[2-3 paragraph summary of the content]
Tweet Hook
> [One compelling, shareable sentence that captures the essence]Key Takeaways
1. [First key point]
2. [Second key point]
3. [Third key point]
*Source: [URL] | ~X min read | ~Y words*
Environment Variables
| Variable | Required | Default | Description |
|----------|----------|---------|-------------|
| SUMMARIZER_MODEL | No | auto | LLM model for summarization (or let the agent auto-select) |
| MAX_TOKENS | No | 500 | Max tokens in summary output |
Usage Examples
# Summarize a blog post
./scripts/url-to-summary.sh https://yourcompetitor.com/blog/industry-trendsProcess a research paper
./scripts/summarize.sh "$(curl -sL https://arxiv.org/pdf/2301.00001.pdf | head -c 10000)"Quick key points for a meeting
./scripts/key-points.sh https://news.ycombinator.com/item?id=12345678Use with OpenClaw: feed the output directly into your workflow
SUMMARY=$(./scripts/url-to-summary.sh https://example.com/article)
echo "$SUMMARY" | ./scripts/key-points.sh
Tips
MAX_TOKENS=1000 for longer, more detailed summariesDependencies
curl β for fetching URLsβ‘ When to Use
π‘ Examples
# Summarize a URL (outputs to terminal + /tmp/summaries/)
./scripts/url-to-summary.sh https://example.com/articleSummarize text directly (from argument or pipe)
./scripts/summarize.sh "Your article text here..."
cat article.txt | ./scripts/summarize.shCustom model for AI prompt
./scripts/url-to-summary.sh https://example.com --model openai
π Tips & Best Practices
MAX_TOKENS=1000 for longer, more detailed summaries