youtube-shorts-generator

youtube-shorts-generator is a skill for Claude Code from Anil-matcha/awesome-generative-ai-apps. It costs 135 tokens per session (1,935 once invoked), scanned A, original, MIT.

A tool that turns a long YouTube video or local video file into short vertical clips for YouTube Shorts, TikTok, or Instagram Reels.

In plain words
What is it for?
Use it to select highlight clips, create 9:16 videos, generate opening hooks and viral scores, and produce clips from podcasts, interviews, lectures, or other long videos.
Why use it?
It removes the manual work of finding interesting moments, transcribing the source, and cropping clips for phone screens.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to select highlight clips, create 9:16 videos, generate opening hooks and viral scores, and produce clips from podcasts, interviews, lectures, or other long videos.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/anil-matcha/awesome-generative-ai-apps/youtube-shorts-generator
About the project

Awesome Generative AI Apps is a collection of complete open-source applications for image generation, video, virtual try-ons, writing, e-commerce, and other generative-AI uses. Developers and businesses can use the templates as starting points for branded AI SaaS products with authentication, billing, and deployment setup included. The catalogue entries support workflows built around these application templates.

Anil-matcha/awesome-generative-ai-apps · 3,208 stars · on GitHub · muapi.ai

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.

Any agent
npx skills add Anil-matcha/awesome-generative-ai-apps --skill youtube-shorts-generator
Clone the repo
git clone --depth 1 https://github.com/Anil-matcha/awesome-generative-ai-apps

Made for: Claude Code.

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 youtube-shorts-generator

README.md
[![agentmods](https://agentmods.dev/badge/skills/anil-matcha/awesome-generative-ai-apps/youtube-shorts-generator/github.svg)](https://agentmods.dev/skills/anil-matcha/awesome-generative-ai-apps/youtube-shorts-generator)
Your own site
<a href="https://agentmods.dev/skills/anil-matcha/awesome-generative-ai-apps/youtube-shorts-generator"><img src="https://agentmods.dev/badge/skills/anil-matcha/awesome-generative-ai-apps/youtube-shorts-generator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for youtube-shorts-generator

Your own site · 80×15
<a href="https://agentmods.dev/skills/anil-matcha/awesome-generative-ai-apps/youtube-shorts-generator"><img src="https://agentmods.dev/badge/skills/anil-matcha/awesome-generative-ai-apps/youtube-shorts-generator.svg" alt="Reviewed on agentmods" width="80" 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,935 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found 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.1 $0.00135 $0.01935
Opus 5 $0.00068 $0.00967
Sonnet 5 $0.00027 $0.00387
Haiku 4.5 $0.00014 $0.00194

Measured 13d ago against content hash 275ea503562c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

youtube-shorts-generator 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 13d 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.

video_generation/AI-Youtube-Shorts-Generator/.claude/skills/youtube-shorts-generator/SKILL.md · 157 lines

How it starts

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

YouTube Shorts Generator

End-to-end pipeline that turns one long video into N viral-ready vertical clips. Each clip ships with a viral score (0–100), an opening hook line, and a one-sentence reason it should perform.

Reference implementation: https://github.com/SamurAIGPT/AI-Youtube-Shorts-Generator

When to use this skill

  • "Generate shorts from this YouTube video"
  • "Find the most viral 60-second clips in this podcast"
  • "Auto-crop this interview to 9:16"
  • "Give me TikTok clips from this lecture"

If the user only wants transcription, summarization, or thumbnails — this is the wrong skill.

Inputs to collect before running

Ask once, then proceed:

  1. Source — YouTube URL (preferred) or path/URL to an mp4
  2. num_clips — default 3
  3. aspect_ratio — default 9:16 (also: 1:1, 4:5)
  4. language — default auto-detect (forwarded to MuAPI Whisper as ISO-639-1)
  5. Output JSON path — optional; if set, dump full result there

If the user gave a URL and nothing else, use defaults and don't block on questions.

Prerequisites (verify before first run)

  • Python 3.10+
  • A MuAPI key — set MUAPI_API_KEY in .env. Powers download, transcription, highlight ranking, and clipping. If missing, stop and ask the user for it; do not invent one.
  • pip install -r requirements.txt inside a venv

If the repo isn't cloned yet, clone https://github.com/SamurAIGPT/AI-Youtube-Shorts-Generator.git into the working directory.

Pipeline (what to execute)

Run the eight stages in order. Each maps to a module in shorts_generator/.

  1. Download (downloader.py) — pull the source video at the requested resolution (360/480/720/1080, default 720).
  2. Transcribe (transcriber.py) — MuAPI /openai-whisper runs Whisper server-side and returns timestamped verbose_json segments. Billed per minute of audio.
  3. Classify content type — LLM tags the video (podcast / interview / tutorial / vlog / lecture / monologue) and density. Tune the highlight prompt per type.
  4. Chunk if long (highlights.py) — videos > LONG_VIDEO_THRESHOLD (1800s default) are split into CHUNK_SIZE_SECONDS (1200s default) windows with CHUNK_OVERLAP_SECONDS (60s default) overlap so cross-boundary highlights aren't missed.
  5. Rank highlights — LLM scans each chunk through VIRALITY_CRITERIA:
    • Hook moments — strong opening line that stops the scroll
    • Emotional peaks — laughter, anger, vulnerability, awe
    • Opinion bombs — spicy, contrarian, debate-bait takes
    • Revelation moments — "wait, what?" reframes
    • Conflict — disagreement, tension, callouts
    • Quotable lines — tight, screenshot-worthy phrasing
    • Story peaks — climax of a narrative arc
    • Practical value — actionable insight a viewer will save Each candidate gets start_time, end_time, score 0–100, title, hook_sentence, virality_reason. Aim for 30–75s clips unless content dictates otherwise.
  6. Dedupe — collapse overlaps. Rule: if two candidates overlap > 50%, keep the higher score, drop the other.
  7. Top-N selection — sort surviving candidates by score, take num_clips.
  8. Vertical auto-crop (clipper.py) — render each highlight at aspect_ratio. Auto-handles face tracking and screen recordings; no Haar cascades.

Read the full file on GitHub · 157 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. 13d ago First seen · 157 lines · 135 tokens per session scan A 275ea503562c

Subscribe to this mod's changes

youtube-shorts-generator is a skill published in the GitHub repository Anil-matcha/awesome-generative-ai-apps (3,208 stars, last pushed 8d ago), licensed MIT. It adds 135 tokens to every session and 1,935 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

reskin

Author a NEW skin for the reskinnable-demo app. A skin is a self-contained domain plugin under src/skins/ / that implements the frozen Skin contract (src/shell/skin-contract.ts) to swap the app's entire experience — brand, theme, layout, pages, tools, data, and agent — as a live sales demo. Use when the user says "add…

CopilotKit/CopilotKit · 154 tokens

copilotkit-channels

Use for the CODE half of a managed Intelligence Channel with Slack or Microsoft Teams: customising the Channel a CLI-scaffolded project already ships, or — for a project the CLI did not generate — writing the Channel declaration, the long-running host, and the awaited activation call. Teams provider setup is in scope…

CopilotKit/CopilotKit · 112 tokens

setup-slack-channel

Use for the PROVIDER half of getting a locally running CopilotKit Channels agent to answer in Slack, when no Slack app exists yet — setting up a Channels bot in Slack for the first time, creating the Slack app and its tokens, attaching it to a managed Intelligence Channel, or when a Channel reports setuprequired, sits…

CopilotKit/CopilotKit · 206 tokens

copilotkit

Use for any CopilotKit question — adding it to an app, chat UI, frontend or server tools, generative UI, shared state, human-in-the-loop, agent frameworks (LangGraph, CrewAI, Mastra, ADK, PydanticAI, and others), the runtime, Intelligence, threads, voice, or diagnosing something that is not working. Do not answer from…

CopilotKit/CopilotKit · 103 tokens

inspector-workbench

Runs Inspector UI work on the standalone Threads state lab so the agent can see the overlay. Use when a CopilotKit employee asks an agent to fix, polish, add, or debug Inspector UI, chrome, panes, overlay actions, launcher, Home, Threads, Playground, Memory, or any visual behavior in @copilotkit/web-inspector. Don't…

CopilotKit/CopilotKit · 112 tokens

intelligence-docs

Keeps the CopilotKit Intelligence landing page in sync when a new Intelligence feature ships or when Intelligence docs are added, renamed, or removed. Use when adding Intelligence capabilities, writing or moving pages under docs/intelligence, editing IntelligenceFeatureCards, or changing…

CopilotKit/CopilotKit · 83 tokens