npx skills add ...
npx skills add samuraigpt/generative-media-skills --skill muapi-ai-clipping
Turn a long video into N viral-ready short clips with a single managed API call. Wraps muapi.ai's `/ai-clipping` endpoint, which handles transcription, highlight ranking through a virality framework (hook / emotional peak / opinion bomb / revelation / conflict / quotable / story peak / practical value), overlap dedupe, and vertical face-tracking auto-crop server-side. No local Whisper, no local LLM, no GPU.
npx skills add samuraigpt/generative-media-skills --skill muapi-ai-clipping
One API call: long video in → ranked vertical short clips out.
Each clip ships with a viral score (0–100), an opening hook line, a one-sentence "why it works" reason, and a hosted mp4 URL.
Underlying API: https://muapi.ai/playground/ai-clipping Reference implementation (open source): https://github.com/SamurAIGPT/AI-Youtube-Shorts-Generator
If you only need raw timestamps for your own renderer, set --coords-only to skip cropping and just get the highlight ranges.
| Input | Required | Default | Notes |
|---|---|---|---|
--video | yes | — | Hosted mp4 URL, or local file path (auto-uploaded), or YouTube URL (if backend supports it) |
--num-clips | no | 3 | Number of highlights to extract |
--aspect-ratio | no | 9:16 | 9:16 | 1:1 | 4:5 |
--coords-only | no | off | Return just the highlight time ranges, skip cropping |
If the user gave only a video URL, run with defaults — don't block on questions.
muapi-cli installed and authed (muapi auth configure)MUAPI_API_KEY available (env var or muapi auth status passes)That's it. No ffmpeg, no Python, no Whisper install, no LLM keys. Everything runs server-side.
The script:
--video to a hosted URL (uploads local files via muapi upload file if needed).muapi edit clipping with the supported parameters.request_id immediately under --async).--output-json is set, writes the full result.The /ai-clipping endpoint internally runs the full pipeline so the agent doesn't have to:
This is why the skill is small: the heavy lifting is on the API.
Defaults — three 9:16 clips:
Podcast — more clips, view in player:
Square clips for Instagram feed:
Just the timestamps (build your own renderer):
Async submit (returns request_id, poll later):
Local file:
Batch — urls.txt with one URL per line:
| Platform | Ratio | Sweet-spot duration |
|---|---|---|
| TikTok / Reels / YouTube Shorts | 9:16 | 30–75s |
| Instagram Feed | 1:1 | 15–45s |
| Pinterest / portrait | 4:5 | 30–60s |
Default to 9:16 unless the platform is specified.
When --coords-only is set, each entry has start_time/end_time but no clip_url — render locally with ffmpeg.
When reporting back to the user, surface for each clip: rank, score, time range, title, hook, and clip URL.
9:16. Default to that.num_clips — if the API returns fewer survivors than requested, return what you have. Don't pretend.request_id can be re-fetched with muapi predict wait <id> rather than re-clipping.--poll-timeout) and retry.muapi upload file <path> first, then pass the returned URL.The skill is done when:
result.shorts has up to num_clips entries, each with a working clip_url (or start_time/end_time under --coords-only).--output-json was set, the file exists and parses.