Get the FREE Ultimate OpenClaw Setup Guide →

news-fetcher

npx machina-cli add skill next-open-ai/openclawx/news-fetcher --openclaw
Files (1)
SKILL.md
922 B

News Fetcher Skill

Use this skill when the user asks for the latest news, updates on a topic, or trending topics.

Workflow

  1. Understand the user's topic of interest (e.g., "AI news", "technology", "sports").
  2. Use the read_url_content tool to fetch RSS feeds (like news.ycombinator.com/rss) or news aggregator sites. If the site requires JavaScript, advise the user that the agent-browser skill might be more appropriate.
  3. Parse the retrieved content. If it's XML/RSS, you can use bash tools (like xmllint, grep, or short python scripts) to extract titles and URLs.
  4. Present the top 5-10 headlines with URLs to the user in a clean, markdown-formatted list.

Source

git clone https://github.com/next-open-ai/openclawx/blob/main/presets/workspaces/news-assistant/skills/news-fetcher/SKILL.mdView on GitHub

Overview

News Fetcher retrieves the latest headlines and topic updates by pulling content from RSS feeds or news sites via read_url_content. It parses XML with bash tools to extract titles and URLs, then presents a concise list of top headlines for quick consumption.

How This Skill Works

The user specifies a topic, and the skill uses read_url_content to fetch relevant RSS feeds or news pages. It then parses the XML/RSS with bash tools (xmllint, grep, or small scripts) to extract titles and URLs and outputs the top 5-10 headlines with links.

When to Use It

  • You need the latest headlines on a topic (e.g., AI, technology, politics).
  • You want a quick briefing with top links for a daily snapshot.
  • Tracking breaking news from RSS feeds or news aggregators.
  • Curating headlines for a client report or newsletter.
  • Monitoring updates from a specific site's RSS feed for changes.

Quick Start

  1. Step 1: Ask the user for the topic of interest.
  2. Step 2: Use read_url_content to fetch the RSS feed for that topic.
  3. Step 3: Parse the feed with bash tools and present the top 5-10 headlines with URLs.

Best Practices

  • Provide a clear topic or feed URL to fetch relevant results.
  • Verify feed validity and freshness before presenting to users.
  • Limit results to 5-10 headlines to avoid information overload.
  • Parse XML reliably with tools like xmllint or grep to avoid brittle extraction.
  • Cross-check headlines and URLs; note publication dates when available.

Example Use Cases

  • Fetch latest AI news headlines from a tech RSS feed.
  • Pull cryptocurrency market updates from a major RSS feed.
  • Monitor sports news ahead of weekend games.
  • Compile a 5-headline brief for a daily newsletter.
  • Track updates from a specific site's RSS feed for breaking news.

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers