blog-watcher
Installation
SKILL.md
Blog Watcher
Overview
Monitor blogs and RSS/Atom feeds for new content and updates.
Reading RSS/Atom Feeds
Fetch and parse with curl + jq/xmlstarlet
# Atom feed (GitHub releases, blogs)
curl -s "https://github.com/user/repo/releases.atom" \
| xmlstarlet sel -t -m "//entry" -v "title" -n
# RSS feed
curl -s "https://blog.example.com/rss" \
| xmlstarlet sel -N rss="http://purl.org/rss/1.0/" -t -m "//item" -v "title" -o " | " -v "link" -n
Using newsboat (TUI reader)
# Install
sudo apt-get install newsboat # or: brew install newsboat
# Add feeds to ~/.newsboat/urls
echo "https://blog.example.com/rss" >> ~/.newsboat/urls
# Launch
newsboat
Simple bash monitor
#!/bin/bash
# Check for new posts since last check
FEED_URL="https://blog.example.com/rss"
CACHE="/tmp/feedcache-$(echo "$FEED_URL" | md5sum | cut -d' ' -f1)"
NEW=$(curl -s "$FEED_URL" | xmlstarlet sel -t -m "//item" -v "title" -o "|" -v "link" -n | head -5)
if [ -f "$CACHE" ]; then
diff <(cat "$CACHE") <(echo "$NEW") | grep "^>" | sed 's/^> //'
fi
echo "$NEW" > "$CACHE"
Monitoring GitHub
# Watch releases
gh api repos/owner/repo/releases --jq '.[0:5][] | "\(.tag_name) - \(.name) (\(.published_at | split("T")[0]))"'
# Watch commits
gh api repos/owner/repo/commits --jq '.[0:5][] | "\(.sha[0:7]) \(.commit.message | split("\n")[0])"'
# Watch issues
gh api repos/owner/repo/issues --jq '.[0:10][] | "#\(.number) \(.title) [\(.state)]"'
Monitoring Web Pages (changes)
# Save a snapshot and compare later
curl -s "https://example.com/page" | html2text > /tmp/page-snapshot.txt
# Later...
curl -s "https://example.com/page" | html2text | diff /tmp/page-snapshot.txt -
Tips
- Install
xmlstarletfor XML/RSS parsing:apt install xmlstarletorbrew install xmlstarlet - Use
html2textto convert web pages to plain text for diffing - Combine with cron or Code Buddy's daemon for automated monitoring
- For JSON feeds (modern blogs): just use
curl -s | jq
Related skills
More from phuetz/code-buddy
blender
Blender 3D modeling, animation, and rendering automation via Python bpy scripting and CLI
19figma
Automate Figma design workflows via REST API, Plugin API, and MCP integration
3github
Interact with GitHub using the gh CLI for issues, PRs, CI runs, releases, and API queries
3gitlab
GitLab DevOps platform with CI/CD pipelines, API automation, and glab CLI control
3csharp-avalonia
Cross-platform desktop/mobile development with C# and Avalonia UI
3email-tools
Read and send emails from the terminal using himalaya or curl/SMTP
2