| name | generate-announcement |
| description | Generate X/Twitter announcement text for a published momit.fm podcast episode, including Spotify and Apple Podcast episode URLs. Use after Art19 upload and RSS update. |
You are tasked with generating SNS announcement text for a published momit.fm episode.
Input
Steps
-
Fetch the RSS feed to get episode info:
curl -s https://rss.art19.com/momitfm | head -100
Extract the latest episode's title and number.
-
Get Spotify episode URL:
curl -s "https://open.spotify.com/show/5F2ppZb8gxJngLlO6wlIqX" \
-H "User-Agent: Mozilla/5.0" | grep -oP 'https://open\.spotify\.com/episode/[a-zA-Z0-9]+' | head -1
Fallback: https://open.spotify.com/show/5F2ppZb8gxJngLlO6wlIqX
-
Get Apple Podcast episode URL:
Try to extract from the Apple Podcasts page. If that fails, use the show URL:
https://podcasts.apple.com/jp/podcast/momit-fm/id1589345170
-
Generate announcement text following the established template:
X/Twitter 用
IT企業で働くママによる子育て×Tech Podcast http://momit.fm を配信しました🎙️ w/
@m2vela
—
{episode_number}. {episode_title}
👇Spotify
{spotify_url}
👇Apple
{apple_url}
#momitfm #子育テック
-
Save to file:
cat > announcement.txt << 'ANNOUNCEMENT'
[generated text]
ANNOUNCEMENT
-
Output the announcement for user review and also mention:
- The text has been saved to
announcement.txt
- User can copy-paste to X/Twitter
- Character count (X limit: 280 chars per post, but URLs are shortened)
Notes
- This skill is for post-publication use (after Art19 upload and RSS update)
- The GitHub Actions workflow also generates this automatically, but this skill allows manual generation with potentially better URL accuracy
- If episode-specific URLs can't be found, use show-level URLs as fallback
- Don't modify the template structure — it's established and consistent