← 返回
未分类 中文

Content Summarizer

Fetch any URL and produce a structured content summary with extractive summarization, AI enhancement prompts, and structured output templates. Extracts clean...
获取任意URL并生成结构化内容摘要,采用提取式摘要技术,包含AI增强提示和结构化输出模板,提取清洁内容。
kryzl19
未分类 clawhub v1.0.0 1 版本 99763.7 Key: 无需
★ 1
Stars
📥 1,669
下载
💾 83
安装
1
版本
#latest

概述

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/article

# Summarize text directly (from argument or pipe)
./scripts/summarize.sh "Your article text here..."
cat article.txt | ./scripts/summarize.sh

# Custom 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 <url> [--model minimax|openai|anthropic]

Fetches URL, extracts clean text, produces:

  • Extracted key sentences (extractive summarization)
  • Structured markdown template (summary, tweet hook, key takeaways)
  • AI enhancement prompt — copy-paste into any LLM for full summarization
  • Metadata (title, word count, reading time)

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 Summary

**Source:** [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

VariableDefaultDescription
--------------------------------
OUTPUT_DIR/tmp/summariesWhere to save summary files
MODELminimaxAI model for enhancement prompt

Use Cases

  • Content repurposing: Fetch articles, extract key points, feed into content pipeline
  • Research pipeline: Batch summarize 20 URLs, collect key points, synthesize insights
  • Newsletter workflow: Fetch sources, generate structured summaries, assemble newsletter
  • Quick reading: Extract key sentences from long articles for rapid triage

Notes

  • Uses extractive summarization (algorithmically selects important sentences) — no API key needed
  • AI enhancement prompt is the value-add: paste into MiniMax/GPT/Claude for full abstractive summary
  • HTML extraction removes scripts, styles, nav, footer, ads — focuses on article body
  • Limited to 15,000 characters of extracted text to keep context manageable

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

VariableRequiredDefaultDescription
------------------------------------------
SUMMARIZER_MODELNoautoLLM model for summarization (or let the agent auto-select)
MAX_TOKENSNo500Max tokens in summary output

Usage Examples

# Summarize a blog post
./scripts/url-to-summary.sh https://yourcompetitor.com/blog/industry-trends

# Process 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=12345678

# Use 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

  • For better results, provide clean article URLs (avoid paywalls and heavy JS pages)
  • Use MAX_TOKENS=1000 for longer, more detailed summaries
  • Chain with other skills: competitor-tracker alerts → content-summarizer → social posting
  • The tweet hook is designed to be engaging, not just a truncated sentence
  • Key points should be actionable insights, not just topic labels

Dependencies

  • curl — for fetching URLs
  • OpenClaw agent with web_fetch tool for content extraction (used internally by the agent)

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-31 18:06 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Uptime Monitor

kryzl19
监控网站/服务的可用性,在宕机时发送告警。适用于检查网站可达性、监控服务健康状态或在服务下线时获取提醒。
★ 0 📥 426

Seo Keyword Researcher

kryzl19
为任意主题进行SEO关键词调研,并生成完整文章摘要,包括主关键词、次关键词、竞争分析、文章结构等。
★ 0 📥 404

Seo Reporter

kryzl19
对URL进行SEO因素审计并生成可操作的Markdown报告。适用于分析、检查或审计网页SEO表现,涵盖标题等关键指标。
★ 0 📥 415