Source Code
TechNews Skill
Fetches top stories from TechMeme, summarizes linked articles, and highlights social media buzz.
Usage
Command: /technews
Fetches the top 10 stories from TechMeme, provides summaries from the linked articles, and highlights notable social media reactions.
Setup
This skill requires:
- Python 3.9+
requestsandbeautifulsoup4packages- Optional:
tiktokenfor token-aware truncation
Install dependencies:
pip install requests beautifulsoup4
Architecture
The skill works in three stages:
- Scrape TechMeme โ
scripts/techmeme_scraper.pyfetches and parses top stories - Fetch Articles โ
scripts/article_fetcher.pyretrieves article content in parallel - Summarize โ
scripts/summarizer.pygenerates summaries and finds social reactions
Commands
/technews
Fetches and presents top tech news stories.
Output includes:
- Story title and original link
- AI-generated summary
- Social media highlights (Twitter reactions)
- Relevance score based on topic preferences
How It Works
- Scrapes TechMeme's homepage for top stories (by default, top 10)
- For each story, fetches the linked article
- Generates a concise summary (2-3 sentences)
- Checks for notable social media reactions
- Presents results in a clean, readable format
State
<workspace>/memory/technews_history.jsonโ cache of recently fetched stories to avoid repeats
Examples
/technewsโ Get the latest tech news summary
Future Expansion
This skill is designed to be extended to other sources:
- Hacker News (
/hn) - Reddit (
/reddit) - Other tech news aggregators
The modular architecture allows adding new source handlers without changing core functionality.