Initial commit with translated description
This commit is contained in:
104
SKILL.md
Normal file
104
SKILL.md
Normal file
@@ -0,0 +1,104 @@
|
||||
---
|
||||
name: news-summary
|
||||
description: "当用户要求新闻更新、每日简报或世界上正在发生的事情时使用。从可信的国际RSS源获取新闻并可创建语音摘要。"
|
||||
---
|
||||
|
||||
# News Summary
|
||||
|
||||
## Overview
|
||||
|
||||
Fetch and summarize news from trusted international sources via RSS feeds.
|
||||
|
||||
## RSS Feeds
|
||||
|
||||
### BBC (Primary)
|
||||
```bash
|
||||
# World news
|
||||
curl -s "https://feeds.bbci.co.uk/news/world/rss.xml"
|
||||
|
||||
# Top stories
|
||||
curl -s "https://feeds.bbci.co.uk/news/rss.xml"
|
||||
|
||||
# Business
|
||||
curl -s "https://feeds.bbci.co.uk/news/business/rss.xml"
|
||||
|
||||
# Technology
|
||||
curl -s "https://feeds.bbci.co.uk/news/technology/rss.xml"
|
||||
```
|
||||
|
||||
### Reuters
|
||||
```bash
|
||||
# World news
|
||||
curl -s "https://www.reutersagency.com/feed/?best-regions=world&post_type=best"
|
||||
```
|
||||
|
||||
### NPR (US perspective)
|
||||
```bash
|
||||
curl -s "https://feeds.npr.org/1001/rss.xml"
|
||||
```
|
||||
|
||||
### Al Jazeera (Global South perspective)
|
||||
```bash
|
||||
curl -s "https://www.aljazeera.com/xml/rss/all.xml"
|
||||
```
|
||||
|
||||
## Parse RSS
|
||||
|
||||
Extract titles and descriptions:
|
||||
```bash
|
||||
curl -s "https://feeds.bbci.co.uk/news/world/rss.xml" | \
|
||||
grep -E "<title>|<description>" | \
|
||||
sed 's/<[^>]*>//g' | \
|
||||
sed 's/^[ \t]*//' | \
|
||||
head -30
|
||||
```
|
||||
|
||||
## Workflow
|
||||
|
||||
### Text summary
|
||||
1. Fetch BBC world headlines
|
||||
2. Optionally supplement with Reuters/NPR
|
||||
3. Summarize key stories
|
||||
4. Group by region or topic
|
||||
|
||||
### Voice summary
|
||||
1. Create text summary
|
||||
2. Generate voice with OpenAI TTS
|
||||
3. Send as audio message
|
||||
|
||||
```bash
|
||||
curl -s https://api.openai.com/v1/audio/speech \
|
||||
-H "Authorization: Bearer $OPENAI_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"model": "tts-1-hd",
|
||||
"input": "<news summary text>",
|
||||
"voice": "onyx",
|
||||
"speed": 0.95
|
||||
}' \
|
||||
--output /tmp/news.mp3
|
||||
```
|
||||
|
||||
## Example Output Format
|
||||
|
||||
```
|
||||
📰 News Summary [date]
|
||||
|
||||
🌍 WORLD
|
||||
- [headline 1]
|
||||
- [headline 2]
|
||||
|
||||
💼 BUSINESS
|
||||
- [headline 1]
|
||||
|
||||
💻 TECH
|
||||
- [headline 1]
|
||||
```
|
||||
|
||||
## Best Practices
|
||||
|
||||
- Keep summaries concise (5-8 top stories)
|
||||
- Prioritize breaking news and major events
|
||||
- For voice: ~2 minutes max
|
||||
- Balance perspectives (Western + Global South)
|
||||
- Cite source if asked
|
||||
Reference in New Issue
Block a user