3.8 KiB
3.8 KiB
Daily Digest Generator - SKILL.md
Purpose
Generate and publish a daily digest blog post with curated news on specified topics.
Trigger
- Cron: Every day at 7am CST (America/Chicago) - Job ID:
69fb35d3-f3be-4ed2-ade0-3ab77b4369a9 - Manual: Any time you want to create a digest
Categories to Research (Matt's Preferences)
- iOS / Apple - iOS development, Apple AI features, Apple hardware
- AI - General AI news, models, releases
- OpenClaw - AI agent frameworks, autonomous systems
- Cursor - AI coding assistant updates
- Claude - Anthropic Claude model releases and news
- Coding Assistants - AI coding tools (Codex, Copilot, etc.)
- Entrepreneurship - Indie hacking, SaaS, startup news
Workflow
Step 1: Check if digest already exists for date
cd /Users/mattbruce/Documents/Projects/OpenClaw/Web/blog-backup/scripts
BLOG_MACHINE_TOKEN="21719c689a355e40b427a35c548b28699bd7c014aac4d23f5c1bbb122bbb9878" \
BLOG_API_URL="https://blog.twisteddevices.com/api" \
./blog.sh status YYYY-MM-DD
If exists → Skip.
Step 2: Research each category using Tavily
Search for each category:
# iOS/Apple news (current month/year)
node ~/.agents/skills/tavily/scripts/search.mjs "Apple iOS AI development news" -n 3 --topic news
# AI news
node ~/.agents/skills/tavily/scripts/search.mjs "AI models news March 2026" -n 3 --topic news
# Coding assistants
node ~/.agents/skills/tavily/scripts/search.mjs "AI coding assistants Claude Cursor news" -n 3 --topic news
# OpenClaw/Agents
node ~/.agents/skills/tavily/scripts/search.mjs "OpenClaw AI agents autonomous development" -n 3 --topic news
# Entrepreneurship
node ~/.agents/skills/tavily/scripts/search.mjs "indie hackers SaaS app development" -n 3 --topic news
Extract full article content for better summaries:
node ~/.agents/skills/tavily/scripts/extract.mjs "https://example.com/article"
Step 3: Format content
Title format:
# Daily Digest - Monday, March 2, 2026
Section structure:
## 🍎 Apple & iOS AI Development
**Article Title**
Brief 1-2 sentence summary.
[Read more →](URL)
---
## 🤖 AI Coding Assistants
**Article Title**
Brief summary.
[Read more →](URL)
Step 4: Post to blog
cd /Users/mattbruce/Documents/Projects/OpenClaw/Web/blog-backup/scripts
BLOG_MACHINE_TOKEN="21719c689a355e40b427a35c548b28699bd7c014aac4d23f5c1bbb122bbb9878" \
BLOG_API_URL="https://blog.twisteddevices.com/api" \
./blog.sh post \
--date YYYY-MM-DD \
--content "FORMATTED_CONTENT" \
--tags '["daily-digest", "iOS", "AI", "Apple", "OpenClaw"]'
Step 5: Verify
- Check blog shows new digest
- Verify date is correct
- Verify all sections have real links
- Check for duplicates on same date
Cron Configuration
- Job ID: 69fb35d3-f3be-4ed2-ade0-3ab77b4369a9
- Schedule:
0 7 * * *(7am CST daily) - Timezone: America/Chicago
- Session: main
- Wake Mode: now (wake immediately)
Current payload:
Morning! It's time for the Daily Digest research. Please research today's news on: iOS, AI, Apple, OpenClaw, Cursor, Claude, Coding Assistants, Entrepreneurship. Create a well-formatted digest post for https://blog.twisteddevices.com
Error Handling
- API failure: Retry 3 times, then log error and skip
- No results: Skip that category, continue others
- Duplicate date: Skip silently (already exists)
- Tavily failure: Use cached recent results or skip
Verification Checklist
Before finishing, verify:
- Digest created for today's date
- Title format:
# Daily Digest - Monday, March 2, 2026 - At least 3 sections with content
- All links are valid URLs
- No duplicates for same date
- Tags include: daily-digest, iOS, AI