reels-scripting

reels-scripting is a skill for Claude Code, Codex from Freespirits/social-auto-engine. It costs 135 tokens per session (1,713 once invoked), scanned A, a copy of reels-scripting, MIT.

A workflow that studies an Instagram Reel and turns its structure into a new script based on newsletter material. A Reel is a short Instagram video; the workflow uses external services to scrape and analyze the reference video.

In plain words
What is it for?
Supplying a Reel or Notion link, extracting the reference video, analyzing its transcript and structure, and writing a new script from newsletter content.
Why use it?
It removes the manual work of transcribing a reference video, identifying its hook and structure, and adapting that format to another topic.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/freespirits/social-auto-engine/reels-scripting
Any agent
npx skills add Freespirits/social-auto-engine --skill reels-scripting
Clone the repo
git clone --depth 1 https://github.com/Freespirits/social-auto-engine

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for reels-scripting

README.md
[![agentmods](https://agentmods.dev/badge/skills/freespirits/social-auto-engine/reels-scripting.svg)](https://agentmods.dev/skills/freespirits/social-auto-engine/reels-scripting)
Your own site
<a href="https://agentmods.dev/skills/freespirits/social-auto-engine/reels-scripting"><img src="https://agentmods.dev/badge/skills/freespirits/social-auto-engine/reels-scripting.svg" alt="Measured on agentmods" height="20"></a>
Per session 135 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,713 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00135 $0.01713
Opus 5 $0.00068 $0.00856
Sonnet 5 $0.00027 $0.00343
Haiku 4.5 $0.00014 $0.00171

Measured 5d ago against content hash 639f380857a0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

reels-scripting scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to reels-scripting — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/reels-scripting/SKILL.md · 202 lines

How it starts

The opening of the file, as written. The whole thing — 202 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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_TOKEN environment variable (Instagram scraping)
  • GOOGLE_AI_API_KEY environment variable (Gemini 2.5 Flash video analysis)
  • Node.js 18+ and the apify-client and @google/generative-ai packages

If 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.

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:

  1. Uses 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 }.
  2. Extracts videoUrl from the returned item.
  3. Downloads the video to ~/Desktop/Reels/downloads/{username}_{shortCode}.mp4.
  4. 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.

Read the full file on GitHub · 202 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 202 lines · 135 tokens per session scan A 639f380857a0

Subscribe to this mod's changes

reels-scripting is a skill published in the GitHub repository Freespirits/social-auto-engine (23 stars, last pushed 1mo ago), licensed MIT. It adds 135 tokens to every session and 1,713 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to reels-scripting, differing in 0 lines, and is treated as a copy.