reels-scripting
Skill27 starsChanged 7 months agoMITView on GitHub
Turn a reference Instagram Reel into a script for your own Reel, tuned to your voice and repurposed from your newsletter content. Takes a Reel URL or Notion reference link, uses Apify to scrape the video, sends it to Gemini 2.5 Flash for full transcript + hook + structure analysis, then writes a new script applying the same patterns to your newsletter topic. Use this skill whenever the user says "script a reel", "reels scripting", "turn this into a reel", pastes an Instagram Reel URL, or references their Notion outlier reels database. Requires APIFY_API_TOKEN and GOOGLE_AI_API_KEY environment variables.
- Reads credentials
3 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- charlie947/social-media-skillsedited, first seen Sep 15, 2026
- alebgl77/claude-inctheir own version, first seen Jul 28, 2026
- mahiunfiltered/claude-code-skillsword for word, first seen Jul 8, 2026
Other versions3 projects use a version of this.
Word for word · 1
- mahiunfiltered/claude-code-skills★ 1100% same
Edited · 1
- charlie947/social-media-skills★ 3.8k47% same
Wrote their own version · 1
- alebgl77/claude-inc★ 16same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository18 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- analytics-dashboardSkill
- content-matrixSkill
- gemini-carouselSkill
- gemini-infographicSkill
- graphic-designerSkill
- hook-generatorSkill
- newsletter-voiceSkill
- niche-researchSkill
- pinned-commentSkill
- post-formatterSkill
- post-scorerSkill
- post-writerSkill
- profile-optimizerSkill
- quote-postSkill
- socialblast-pipelineSkill
- voice-builderSkill
- youtube-thumbnailSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
19 rules. About 0 are common, 18 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈18
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 11
When this skill triggers, go straight to Step 1.
- Distinctive: line 21
If either env var is missing, tell the user to run:
- Distinctive: line 36
Wait for the URL.
- Distinctive: line 38
If the user pastes a Notion link, follow it via WebFetch, locate the Instagram Reel URL on the page, and extract it.
- Distinctive: line 46
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 …
- Very specific: line 50
Create ~/Desktop/Reels/ if it does not exist.
- Distinctive: line 57
Run the script. Confirm file size and metadata (views, likes, comments, caption first 200 chars) before continuing.
- Distinctive: line 103
Never open with "I". Use "this", "you", a fact, or a name drop.
- Distinctive: line 110
Use "you" and "just" conversationally ("you just drop in...").
- Distinctive: line 111
Never merge three or more staccato fragments.
- Distinctive: line 112
Never state the conclusion.
- Distinctive: line 117
Must directly relate to what is being promised.
- Distinctive: line 118
No quotes, no "below", no trailing punctuation.
- Distinctive: line 186
After the script is approved, offer:
- Distinctive: line 195
Never skip the 95/100 QA gate.
- Distinctive: line 196
Always read voice.md and about-me.md before writing.
- Distinctive: line 197
Never invent metrics from the reference Reel.
- Distinctive: line 199
Every script deliverable includes the exact caption and comment trigger alongside the script.
- Distinctive: line 200
If the reference Reel scrape fails across all three actor variants, report the failure and stop.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Reels Scripting
CRITICAL: Auto-start on load
When this skill triggers, go straight to Step 1. Do not summarise.
Prerequisites
This skill needs:
APIFY_API_TOKENenvironment variable (Instagram scraping)GOOGLE_AI_API_KEYenvironment variable (Gemini 2.5 Flash video analysis)- Node.js 18+ and the
apify-clientand@google/generative-aipackages
If either env var is missing, tell the user to run:
! export APIFY_API_TOKEN=your_token
! export GOOGLE_AI_API_KEY=your_keyThen stop until both are set.
Step 1. Get the reference
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.
Step 2. Get the newsletter topic
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.
Step 3. Scrape and download the Reel
Create ~/Desktop/Reels/ if it does not exist. Write a Node.js script at ~/Desktop/Reels/analyse-reel.js that:
- Uses
apify-clientto callapify/instagram-reel-scraperwith{ directUrls: [reelUrl], resultsLimit: 1 }. If that returns no items, fall back to{ urls: [reelUrl], resultsLimit: 1 }, thenapify/instagram-scraperwith{ directUrls: [reelUrl], resultsType: 'posts', resultsLimit: 1 }. - Extracts
videoUrlfrom the returned item. - Downloads the video to
~/Desktop/Reels/downloads/{username}_{shortCode}.mp4. - Saves raw scrape data to
~/Desktop/Reels/reel_data_{shortCode}.json.
Run the script. Confirm file size and metadata (views, likes, comments, caption first 200 chars) before continuing.
Step 4. Analyse with Gemini 2.5 Flash
Extend the Node script (or run a second pass) that:
- Reads the downloaded
.mp4as base64. - Calls
genAI.getGenerativeModel({ model: 'gemini-2.5-flash' }). - Sends the video with this exact prompt:
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 ReelSave the analysis to ~/Desktop/Reels/analysis_reference_{shortCode}.md.
Step 5. Write the new Reel script
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):
Hook
- Never open with "I". Use "this", "you", a fact, or a name drop.
- Proven formats: "This changed... forever" / negative flip ("X is useless unless...") / capability statement.
- Hook creates curiosity or pattern interrupt within 3 seconds.
- Mirror the hook's word count and structure from the reference analysis.
Body
- British English. Short sentences. No em dashes, no semicolons.
- Use "you" and "just" conversationally ("you just drop in...").
- Never merge three or more staccato fragments. Combine into one flowing sentence.
- Never state the conclusion. Let the facts do the work.
- No "link in bio". Use comment automation.
Comment trigger
- Single caps word only (SCRIPT, WIKI, PROMPTS, VIDEO).
- Must directly relate to what is being promised.
- No quotes, no "below", no trailing punctuation.
CTA
- "Comment [WORD] and I'll send you [specific thing]"
- Short. No "the link to my full" padding.
Duration and structure
- Target 30 to 45 seconds total.
- 2 key points maximum, not 3.
- Caption mirrors the script. Update both together.
Script file structure
# 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]Step 6. QA loop
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:
- Opens with "I"
- Staccato fragments of three or more
- States the conclusion
- Multi-word or stylised comment trigger
- Duration over 45 seconds when read aloud
- 3 points instead of 2
- Caption does not mirror script
Step 7. Offer the pipeline
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.
Rules
- Never skip the 95/100 QA gate.
- Always read voice.md and about-me.md before writing. Voice match is non-negotiable.
- Never invent metrics from the reference Reel. Use only what Apify returns.
- British English. No em dashes. No semicolons.
- Every script deliverable includes the exact caption and comment trigger alongside the script. Never deliver just the script.
- If the reference Reel scrape fails across all three actor variants, report the failure and stop. Do not fabricate analysis.
- Gemini 2.5 Flash is the model. Do not substitute without the user's approval.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

