From social-media-skills
Generates custom Instagram Reel scripts from reference Reel URLs or Notion links and newsletter content using Apify scraping and Gemini 2.5 Flash analysis.
npx claudepluginhub charlie947/social-media-skills --plugin social-media-skillsThis skill uses the workspace's default tool permissions.
When this skill triggers, go straight to Step 1. Do not summarise.
Guides video marketing strategy, script creation, and optimization for short-form (TikTok, Reels, Shorts) and long-form (YouTube) content.
Structures scripts for Xiaohongshu videos, live streams, and carousels with hooks, value, pacing, structure, and CTAs to maximize audience retention.
Repurposes completed YouTube videos into newsletters, Twitter threads, LinkedIn posts, and Substack Notes using episode research, plans, and transcripts. Invoke for content distribution workflows.
Share bugs, ideas, or general feedback.
When this skill triggers, go straight to Step 1. Do not summarise.
This skill needs:
APIFY_API_TOKEN environment variable (Instagram scraping)GOOGLE_AI_API_KEY environment variable (Gemini 2.5 Flash video analysis)apify-client and @google/generative-ai packagesIf either env var is missing, tell the user to run:
! export APIFY_API_TOKEN=your_token
! export GOOGLE_AI_API_KEY=your_key
Then stop until both are set.
Ask:
Paste the reference Reel URL or Notion link. This is the outlier Reel you want to reverse-engineer the format from.
Wait for the URL.
If the user pastes a Notion link, follow it via WebFetch, locate the Instagram Reel URL on the page, and extract it. If no Reel URL is found on the Notion page, ask the user to paste the Reel URL directly.
Ask:
What's the topic from your newsletter you want to repurpose into this Reel? Paste the relevant newsletter section, or type the core idea in a sentence.
Wait for the topic. Read newsletter-voice.md, voice.md, and about-me.md from the project if they exist, so the script matches the user's voice.
Create ~/Desktop/Reels/ if it does not exist. Write a Node.js script at ~/Desktop/Reels/analyse-reel.js that:
apify-client to call apify/instagram-reel-scraper with { directUrls: [reelUrl], resultsLimit: 1 }. If that returns no items, fall back to { urls: [reelUrl], resultsLimit: 1 }, then apify/instagram-scraper with { directUrls: [reelUrl], resultsType: 'posts', resultsLimit: 1 }.videoUrl from the returned item.~/Desktop/Reels/downloads/{username}_{shortCode}.mp4.~/Desktop/Reels/reel_data_{shortCode}.json.Run the script. Confirm file size and metadata (views, likes, comments, caption first 200 chars) before continuing.
Extend the Node script (or run a second pass) that:
.mp4 as base64.genAI.getGenerativeModel({ model: 'gemini-2.5-flash' }).I'm studying this Reel to write my own script in a similar style for my audience of [AUDIENCE FROM about-me.md].
## Full Transcript
- Transcribe EVERY word with timestamps
## Hook
- Exact first words spoken
- Word count of the hook
- What makes it stop the scroll?
## Language Patterns
- Average sentence length
- You/your vs I/me ratio
- Transitions between points
- Where are the 'just' minimisers?
## Structure
- Total duration
- Section breakdown with timings
- What's the before/after moment?
- What's the CTA?
## One key insight
- The single most important technique to learn from this Reel
Save the analysis to ~/Desktop/Reels/analysis_reference_{shortCode}.md.
Using the analysis from Step 4, the newsletter topic from Step 2, and the user's voice files, write a new Reel script to ~/Desktop/Reels/reel-[slug].md.
Apply these rules (non-negotiable):
# Reel: [title]
## Reference analysis
- URL: [reel url]
- Views: [number]
- Key technique: [from Gemini analysis]
## Duration target
30-45 seconds
## Hook (0-3s)
[Exact words]
## Point 1 ([start]-[end]s)
[Exact words]
## Point 2 ([start]-[end]s)
[Exact words]
## CTA ([start]-[end]s)
[Exact words including "Comment [WORD]"]
---
## Caption
[Mirror the script, formatted for Instagram]
## Comment trigger
[WORD]
## Deliverable
[What the comment trigger unlocks]
---
## Visual notes
[Cuts, B-roll ideas, text overlays]
Score the script against the rules in Step 5. Every violation must be fixed. Re-score until the script hits 95/100. Never show the user anything below 95.
Common violations to check:
After the script is approved, offer:
Two paths from here:
- Record it yourself.
- Auto-generate with ElevenLabs (voice) + HeyGen (avatar) + Remotion (motion graphics). If you have the my-video project configured, run
npm run pipeline:claude-routineswith this script config.