short-form-pipeline
Skill3.6k starsChanged 3 months agoMITView on GitHub
Privacy: This skill logs usage locally to ~/.ai-marketing-skills/analytics/. Remote telemetry is opt-in only. No code, file paths, or repo content is ever collected. See telemetry/README.md. Extract viral short-form clips (TikTok, Reels, Shorts) from long-form YouTube videos. Handles download, transcription, AI segmentation, cutting, vertical cropping, and caption burn-in. The pipeline handles four video layouts differently: Claude outputs a layout_hint for each segment during segmentation. Each clip is output as: - 1080×1920 resolution (9:16 vertical) - H.264 + AAC encoding - Word-highlighted…
- Reads credentials
Trending
Quiet since September.thin dataabout the whole repository
Who's talking about ericosiu/ai-marketing-skills
- sudosubin/agents.nix“agent-skills.github.ericosiu.ai-marketing-skills: init at 0-unstable-2026-09-22”GitHub · Sep 27, 2026
- modiqo/skillspec“Doctor report: ericosiu/ai-marketing-skills@6a66267”GitHub · Jul 28, 2026
- modiqo/skillspec“Doctor report: ericosiu/ai-marketing-skills@6a66267”GitHub · Jul 28, 2026
The biggest 3 of 3 mentions linking to the repository that our crawl found. Each line is their own headline.
In this repository35 other files it gives its agents.
- eval/CLAUDE.mdCLAUDE.md
- Agentic video understandingSkill
- autoresearchSkill
- clone-siteSkill
- closed-loop-analytics-upgradeSkill
- content-evalSkill
- expert-panelSkill
- conversion-opsSkill
- deck-generatorSkill
- finance-opsSkill
- growth-engineSkill
- growth-signal-chartsSkill
- lead-dossierSkill
- leveling-up-content-engineSkill
- net-new-video-editorSkill
- cold-outbound-optimizerSkill
- packaging-youtube-thumbnailsSkill
- personal-strategic-signal-intelligenceSkill
- podcast-pipelineSkill
- revenue-intelligenceSkill
- sales-pipelineSkill
- sales-playbookSkill
- seo-opsSkill
- shortform-format-librarySkill
- shortform-idea-grillSkill
- shortform-productionSkill
- show-and-tell-video-slateSkill
- sidebar-prioritizerSkill
- team-opsSkill
- video-analysisSkill
- video-caption-generatorSkill
- video-clip-pipelineSkill
- video-content-engineSkill
- x-longform-postSkill
- yt-competitive-analysisSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 98
FFmpeg filter_complex error: Don't use -c:v copy with -filter_complex.
- Very specific: line 99
Wrong output resolution: Always crop before scaling.
- Distinctive: line 100
Caption sync issues: Run Whisper on the cut clip, not the source episode.
- Very specific: line 101
TikTok upload fails: Ensure H.264 + AAC encoding.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Short-Form Video Clip Pipeline — Skill
Preamble (runs on skill start)
# Version check (silent if up to date)
python3 telemetry/version_check.py 2>/dev/null || true
# Telemetry opt-in (first run only, then remembers your choice)
python3 telemetry/telemetry_init.py 2>/dev/null || truePrivacy: This skill logs usage locally to
~/.ai-marketing-skills/analytics/. Remote telemetry is opt-in only. No code, file paths, or repo content is ever collected. Seetelemetry/README.md.
Extract viral short-form clips (TikTok, Reels, Shorts) from long-form YouTube videos. Handles download, transcription, AI segmentation, cutting, vertical cropping, and caption burn-in.
Prerequisites
yt-dlpandffmpeginstalledANTHROPIC_API_KEYenvironment variable set- Python dependencies from
requirements.txtinstalled - Optional:
mediapipeandopencv-pythonfor face-detected smart crop
Quick Start
Single video → clips
python3 scripts/shortform_pipeline.py \
--url "https://www.youtube.com/watch?v=VIDEO_ID" \
--max-clips 3 \
--output-dir ./outputStandalone clipper (no Claude, heuristic scoring)
python3 scripts/video_clipper.py --url "https://www.youtube.com/watch?v=VIDEO_ID"Pipeline Overview
- Download — yt-dlp fetches video + auto-generated VTT captions
- Transcribe — Whisper generates word-level timestamps (falls back to YouTube captions)
- Segment — Claude identifies 2–5 best 30–60s moments with hook scoring ≥7/10
- Cut Verification — Second Claude pass verifies each clip ends on a complete thought
- Cut — FFmpeg extracts each clip from the source video
- Vertical Crop — Layout-aware 16:9 → 9:16 conversion with face detection
- Caption Burn — TikTok-style word-highlighted captions (ASS format) burned in
Key Files
| File | Purpose |
scripts/shortform_pipeline.py | Full pipeline: download → segment → cut → crop → caption |
scripts/video_clipper.py | Standalone clipper with heuristic scoring (no Claude needed) |
scripts/clip_sender.py | Helper for clip delivery and review workflow |
Layout-Aware Cropping
The pipeline handles four video layouts differently:
talking_head— Face-detected center crop using MediaPipe; audio panning fallbackscreen_share_overlay— Stacks screen content on top, webcam bubble on bottomside_by_side— Stacks screen on top, presenter face on bottomgallery_view— Crops to active speaker quadrant
Claude outputs a layout_hint for each segment during segmentation.
Customization
Voice patterns
Edit VOICE_PATTERNS in video_clipper.py to match your creator's speech patterns. These boost clip scoring for authentic-sounding segments.
Segmentation prompt
The Claude prompt in shortform_pipeline.py can be customized:
- Adjust
hook_strengthminimum (default: 7/10) - Change target duration range (default: 30–60s)
- Modify layout hint options
Crop tuning
In video_clipper.py:
scale_factor— Zoom level for single face (default: 1.08)desired_face_y— Target face position in frame (default: upper 35%)
Output
Each clip is output as:
- 1080×1920 resolution (9:16 vertical)
- H.264 + AAC encoding
- Word-highlighted captions burned in
- Ready for direct upload to TikTok, Reels, or Shorts
Troubleshooting
- FFmpeg filter_complex error: Don't use
-c:v copywith-filter_complex. Only-c:a copyis safe. - Wrong output resolution: Always crop before scaling. Verify with
ffprobe -show_entries stream=width,height. - Caption sync issues: Run Whisper on the cut clip, not the source episode.
- TikTok upload fails: Ensure H.264 + AAC encoding. Add
-c:v libx264 -c:a aacif needed. - Clip too long: Claude sometimes overshoots. The pipeline auto-trims clips >90s to 75s.
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.

