ai-daily-news
npx skills add https://github.com/geekjourneyx/ai-daily-skill --skill ai-daily-news
Agent 安装分布
Skill 文档
AI Daily News
Fetches AI industry news from smol.ai, intelligently summarizes and categorizes using built-in Claude AI capabilities, outputs structured markdown, and optionally generates themed webpages and shareable card images.
Quick Start
# Yesterday's news
æ¨å¤©AIèµè®¯
# Specific date
2026-01-13çAIæ°é»
# By category
æ¨å¤©ç模ååå¸ç¸å
³èµè®¯
# Generate webpage
æ¨å¤©AIèµè®¯ï¼çæç½é¡µ
# Generate shareable card image
æ¨å¤©AIèµè®¯ï¼çæå享å¾ç
çææ¥æ¥å¡çå¾ç
Supported Query Types
| Type | Examples | Description |
|---|---|---|
| ç¸å¯¹æ¥æ | “æ¨å¤©AIèµè®¯” “åå¤©çæ°é»” “ä»å¤©çAI卿” | Yesterday, day before, today |
| ç»å¯¹æ¥æ | “2026-01-13çæ°é»” | YYYY-MM-DD format |
| åç±»çé | “模åç¸å ³èµè®¯” “产å卿” | Filter by category |
| ç½é¡µçæ | “çæç½é¡µ” “å¶ä½HTML页颔 | Optional webpage generation |
| å¾ççæ | “çæå¾ç” “çæå享å¡ç” “å¶ä½æ¥æ¥å¡ç” | Generate shareable card image |
Workflow
Copy this checklist to track progress:
Progress:
- [ ] Step 1: Parse date from user request
- [ ] Step 2: Fetch RSS from smol.ai
- [ ] Step 3: Check if content exists for target date
- [ ] Step 4: Extract and analyze content
- [ ] Step 5: Generate structured markdown
- [ ] Step 6: Ask about webpage generation (if requested)
- [ ] Step 7: Generate shareable card image (if requested)
Step 1: Parse Date
Extract the target date from user request.
| User Input | Target Date | Calculation |
|---|---|---|
| “æ¨å¤©AIèµè®¯” | Yesterday | today – 1 day |
| “å天AIèµè®¯” | Day before yesterday | today – 2 days |
| “2026-01-13çæ°é»” | 2026-01-13 | Direct parse |
| “ä»å¤©çAI卿” | Today | Current date |
Date format: Always use YYYY-MM-DD format (e.g., 2026-01-13)
Step 2: Fetch RSS
Run the fetch script to get RSS data:
python plugins/ai-daily/skills/ai-daily/scripts/fetch_news.py
This downloads and parses https://news.smol.ai/rss.xml, returning structured JSON.
Available dates can be checked with:
python plugins/ai-daily/skills/ai-daily/scripts/fetch_news.py --date-range
Step 3: Check Content
Verify if content exists for the target date.
When Content Exists
Continue to Step 4.
When Content NOT Found
Display a friendly message with available dates:
æ±æï¼2026-01-14 ææ èµè®¯
å¯ç¨æ¥æèå´: 2026-01-10 ~ 2026-01-13
建议:
- æ¥ç [2026-01-13](command:æ¥ç2026-01-13çèµè®¯) çèµè®¯
- æ¥ç [2026-01-12](command:æ¥ç2026-01-12çèµè®¯) çèµè®¯
User experience principles:
- Clear problem statement
- Show available alternatives
- Provide clickable commands for quick access
- Never leave user stuck with no options
Step 4: Extract and Analyze Content
Use built-in Claude AI capabilities to:
- Extract full content from the RSS entry
- Generate summary – 3-5 key takeaways
- Categorize items by topic:
- Model Releases (模ååå¸)
- Product Updates (产å卿)
- Research Papers (ç 究论æ)
- Tools & Frameworks (å·¥å ·æ¡æ¶)
- Funding & M&A (èèµå¹¶è´)
- Industry Events (è¡ä¸äºä»¶)
- Extract keywords – Companies, products, technologies
Prompt Template:
Analyze this AI news content and organize it:
1. Generate 3-5 key takeaways (one sentence each)
2. Categorize items into: Model Releases, Product Updates, Research, Tools, Funding, Events
3. Extract 5-10 keywords
Original content:
{content}
Step 5: Generate Markdown
Output structured markdown following the format in output-format.md.
Key sections:
- Title with date
- Core summary
- Categorized news items
- Keywords
- Footer with source info
Example output:
# AI Daily · 2026å¹´1æ13æ¥
## æ ¸å¿æè¦
- Anthropic åå¸ Cowork ç»ä¸ Agent å¹³å°
- Google 弿º MedGemma 1.5 å»ç夿¨¡ææ¨¡å
- LangChain Agent Builder æ£å¼åå¸
## 模ååå¸
### MedGemma 1.5
Google åå¸ 4B åæ°å»ç夿¨¡ææ¨¡å...
[åæé¾æ¥](https://news.smol.ai/issues/26-01-13-not-much/)
## 产å卿
...
## å
³é®è¯
#Anthropic #Google #MedGemma #LangChain
---
æ°æ®æ¥æº: smol.ai
Step 6: Webpage Generation (Optional)
Only trigger when user explicitly says:
- “çæç½é¡µ”
- “å¶ä½HTML页颔
- “çæéæç½ç«”
Ask User Preferences
æ¯å¦éè¦çæç²¾ç¾çç½é¡µï¼
å¯é主é¢:
- [è¹æé£](command:使ç¨è¹æé£ä¸»é¢) - ç®æ´ä¸ä¸ï¼éåææ¯å
容
- [深海è](command:ä½¿ç¨æ·±æµ·è主é¢) - åå¡é£æ ¼ï¼éå产ååå¸
- [ç§æ¥æé³](command:使ç¨ç§æ¥æé³ä¸»é¢) - æ¸©ææ´»åï¼éå社åºå¨æ
Theme Prompt Templates
See html-themes.md for detailed prompt templates for each theme.
Apple Style Theme (Key Points):
Generate a clean, minimalist HTML page inspired by Apple's design:
**Design**:
- Pure black background (#000000)
- Subtle blue glow from bottom-right (#0A1929 â #1A3A52)
- Generous white space, content density ⤠40%
- SF Pro Display for headings, SF Pro Text for body
- Smooth animations and hover effects
**Structure**:
- Header: Logo icon + Date badge
- Main: Summary card + Category sections
- Footer: Keywords + Copyright
**Colors**:
- Title: #FFFFFF
- Body: #E3F2FD
- Accent: #42A5F5
- Secondary: #B0BEC5
Save Webpage
Save to docs/{date}.html:
# Save webpage
cat > docs/2026-01-13.html << 'EOF'
{generated_html}
EOF
Step 7: Shareable Card Image Generation (Optional)
Trigger when user explicitly requests:
- “çæå¾ç”
- “çæå享å¡ç”
- “å¶ä½æ¥æ¥å¡ç”
- “çæå¡çå¾ç”
- “çæå享徔
Image Generation Process
-
Build condensed Markdown for card display:
- Title and date
- Core summary (3-5 items)
- Top items per category (3 items each)
- Keywords
-
Call Firefly Card API:
- API:
POST https://fireflycard-api.302ai.cn/api/saveImg - Body contains
contentfield with Markdown - Returns binary image stream (
Content-Type: image/png)
- API:
-
Save and display result:
- Save to
docs/images/{date}.png - Display preview or download link
- Save to
API Request Format
{
"content": "# AI Daily\\n## 2026å¹´1æ13æ¥\\n...",
"font": "SourceHanSerifCN_Bold",
"align": "left",
"width": 400,
"height": 533,
"fontScale": 1.2,
"ratio": "3:4",
"padding": 30,
"switchConfig": {
"showIcon": false,
"showTitle": false,
"showContent": true,
"showTranslation": false,
"showAuthor": false,
"showQRCode": false,
"showSignature": false,
"showQuotes": false,
"showWatermark": false
},
"temp": "tempBlackSun",
"textColor": "rgba(0,0,0,0.8)",
"borderRadius": 15,
"color": "pure-ray-1"
}
Output Example
ð¸ å享å¡çå·²çæ
å¾çå·²ä¿åå°: docs/images/2026-01-13.png
[é¢è§å¾ç](docs/images/2026-01-13.png)
ä½ å¯ä»¥å°æ¤å¾çå享å°ç¤¾äº¤åªä½ï¼
Configuration
No configuration required. Uses built-in RSS fetching and Claude AI capabilities.
RSS Source: https://news.smol.ai/rss.xml
Date Calculation: Uses current UTC date, subtracts days for relative queries.
Complete Examples
Example 1: Yesterday’s News (Basic)
User Input: “æ¨å¤©AIèµè®¯”
Process:
- Calculate yesterday’s date:
2026-01-14 - Fetch RSS
- Check content exists
- Analyze and categorize
- Output markdown
Output: Structured markdown with all categories
Example 2: Specific Date
User Input: “2026-01-13çAIæ°é»”
Process:
- Parse date:
2026-01-13 - Fetch RSS
- Check content exists
- Analyze and categorize
- Output markdown
Example 3: By Category
User Input: “æ¨å¤©ç模ååå¸ç¸å ³èµè®¯”
Process:
- Calculate yesterday’s date
- Fetch RSS
- Analyze and filter for “Model Releases” category
- Output filtered markdown
Example 4: With Webpage Generation
User Input: “æ¨å¤©AIèµè®¯ï¼çæç½é¡µ”
Process:
1-5. Same as Example 1
6. Ask: “Which theme?”
7. User selects: “è¹æé£”
8. Generate HTML with Apple-style theme
9. Save to docs/2026-01-14.html
Example 5: Content Not Found
User Input: “2026-01-15çèµè®¯”
Output:
æ±æï¼2026-01-15 ææ èµè®¯
å¯ç¨æ¥æèå´: 2026-01-10 ~ 2026-01-13
建议:
- æ¥ç [2026-01-13](command:æ¥ç2026-01-13çèµè®¯) çèµè®¯
- æ¥ç [2026-01-12](command:æ¥ç2026-01-12çèµè®¯) çèµè®¯
References
- Output Format – Markdown output structure
- HTML Themes – Webpage theme prompts
Troubleshooting
RSS Fetch Fails
Error: “Failed to fetch RSS”
Solution: Check network connectivity to news.smol.ai
Date Parsing Fails
Error: “Invalid date format”
Solution: Use YYYY-MM-DD format or relative terms like “æ¨å¤©”
No Content for Date
Output: Friendly message with available dates (see Step 3)
Webpage Save Fails
Error: “Cannot save to docs/”
Solution: Ensure docs/ directory exists:
mkdir -p docs
CLI Reference
# Fetch RSS (returns JSON)
python plugins/ai-daily/skills/ai-daily/scripts/fetch_news.py
# Get available date range
python plugins/ai-daily/skills/ai-daily/scripts/fetch_news.py --date-range
# Get specific date content
python plugins/ai-daily/skills/ai-daily/scripts/fetch_news.py --date 2026-01-13