Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计提醒

muapi-youtube-shortsmuapi youtube 短裤

Agent Skill

muapi-youtube-shorts 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

710

周安装

29

GitHub Stars

3,086

下载量

227
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:muapi-youtube-shorts(muapi youtube 短裤)
来源仓库:https://github.com/samuraigpt/generative-media-skills
仓库路径:skills/muapi-youtube-shorts
安装命令:
npx skills add https://github.com/samuraigpt/generative-media-skills --skill muapi-youtube-shorts
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/samuraigpt/generative-media-skills --skill muapi-youtube-shorts

简介

muapi-youtube-shorts 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合整理项目协作事项。

  • 适用于围绕仓库状态、代码变更或团队协作需求的信息归纳场景。
  • 通过 npx skills add 命令从 samuraigpt/generative-media-skills 仓库安装。
  • 使用前应确认权限范围、维护状态及是否涉及网络或文件操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

YouTube Shorts Generator

End-to-end pipeline: Long Video → Transcript → Ranked Highlights → Vertical Clips.

Turns one long video into N viral-ready vertical mp4s. 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 Underlying API: https://muapi.ai/playground/ai-clipping


Agent Execution Protocol

Step 1 — Collect Inputs

Ask once, then proceed:

InputDefaultNotes
sourceYouTube URL, or hosted mp4 URL, or local file path
num_clips3How many shorts to render
aspect_ratio9:169:16 for TikTok/Reels/Shorts, 1:1 square, 4:5 portrait
whisper_modelbasetiny / base / small / medium / large
languageautoWhisper language code (e.g. en)
output_jsonOptional path; if set, dump full result there

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


Step 2 — Verify Prerequisites

  • muapi-cli installed and authed (muapi auth configure)
  • ffmpeg on PATH (Whisper needs it for audio decoding)
  • Python 3.10+ with openai-whisper installed (only if running the local transcribe stage)

If MUAPI_API_KEY is missing, stop and ask the user. Never invent a key.


Step 3 — Run the Pipeline

The standard path is the orchestrator script — it handles all eight stages in order:

bash library/social/youtube-shorts/scripts/run-youtube-shorts.sh \
  --source "<YOUTUBE_URL>" \
  --num-clips 5 \
  --aspect-ratio 9:16 \
  --whisper-model base \
  --output-json result.json \
  --view

The eight stages:

  1. Download — pull the source video at the requested resolution (360/480/720/1080, default 720). For local files, skip.
  2. Transcribe — local Whisper produces timestamped segments. Audio stays on the machine.
  3. Classify content type — LLM tags the video (podcast / interview / tutorial / vlog / lecture / monologue) and density. Tunes the highlight prompt per type.
  4. Chunk if long — 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.

  1. Dedupe — collapse overlaps. Rule: if two candidates overlap > 50%, keep the higher score, drop the other.
  2. Top-N selection — sort surviving candidates by score, take num_clips.
  3. Vertical auto-crop — render each highlight at aspect_ratio via muapi edit clipping. Auto-handles face tracking and screen recordings.

Quick Invocation Patterns

Single video, defaults:

bash scripts/run-youtube-shorts.sh --source "https://youtube.com/watch?v=VIDEO_ID"

Tuned for high-density podcast (more clips, larger Whisper model):

bash scripts/run-youtube-shorts.sh \
  --source "<URL>" --num-clips 8 --whisper-model medium --view

Square clips for Instagram feed:

bash scripts/run-youtube-shorts.sh \
  --source "<URL>" --aspect-ratio 1:1 --num-clips 3

Batch — urls.txt with one URL per line:

xargs -a urls.txt -I{} bash scripts/run-youtube-shorts.sh --source "{}"

Async submit (returns request_id, poll later):

REQUEST_ID=$(bash scripts/run-youtube-shorts.sh \
  --source "<URL>" --async --output-json - --jq '.request_id' | tr -d '"')
muapi predict wait "$REQUEST_ID" --download ./outputs

Platform Specs

PlatformAspectSweet-spot durationNotes
YouTube Shorts9:1630–60sHook in first 1s, max quality
TikTok9:1630–75sHigh energy; longer is fine if hook lands
Instagram Reels9:1630–60sHook in first 1s
Instagram Feed1:115–45sStatic-feel works well
LinkedIn16:9 or 1:130–60sProfessional tone
Twitter/X16:915–60sPunchy, direct

Output Schema

{
  "source_video_url": "...",
  "transcript": { "duration": 1873.4, "segments": [...] },
  "highlights": [ /* every candidate, before top-N cut */ ],
  "shorts": [
    {
      "title": "The one mistake that cost me $50K",
      "start_time": 124.3,
      "end_time": 187.6,
      "score": 92,
      "hook_sentence": "Nobody talks about this, but it killed my first startup...",
      "virality_reason": "Opens with a number + regret, peaks on a contrarian lesson",
      "clip_url": "https://.../short_1.mp4"
    }
  ]
}

When reporting back to the user, surface for each clip: rank, score, time range, title, hook, and clip URL. Skip the raw transcript unless asked.


Tunable Knobs

Edit defaults inside the orchestrator or pass via flags:

KnobDefaultPurpose
CHUNK_SIZE_SECONDS1200Chunk length for long videos
LONG_VIDEO_THRESHOLD1800Videos longer than this get chunked
CHUNK_OVERLAP_SECONDS60Overlap between chunks
MUAPI_POLL_INTERVAL5Seconds between job-status polls
MUAPI_POLL_TIMEOUT1800Give up after this long
OVERLAP_DEDUPE_THRESHOLD0.5Min IoU to collapse overlapping candidates

Whisper Model Selection

  • tiny / base — fast, English-leaning, fine for clean studio audio
  • small / medium — better for accents and music beds
  • large — highest accuracy, much slower; only worth it on a GPU

Pick base unless transcript quality is poor, then bump to medium.


Common Mistakes to Avoid

  1. Skipping the dedupe step — without it, you ship near-duplicate clips that all came from the same hot moment.
  2. Generic virality prompt — the highlight ranker must score against the eight signals above, not "interestingness."
  3. Wrong aspect ratio for the platform — YouTube Shorts and TikTok are 9:16; LinkedIn often 16:9. Default to 9:16 only if the platform isn't specified.
  4. Crop without face tracking — vertical crops on talking-head content must follow the speaker's face; static center-crop loses the subject.
  5. Padding to hit num_clips — if dedupe leaves fewer survivors than requested, return what you have. Don't ship low-score filler.
  6. Re-running the full pipeline on a 404'd clip URL — re-run only the crop stage for that highlight.

Failure Modes

  • ffmpeg not found on PATH — stop and tell the user to install (brew install ffmpeg / apt install ffmpeg).
  • Whisper produced no segments — likely no detectable speech or a hard language. Retry with --whisper-model medium --language <code> before declaring failure.
  • API key missing or rejected — surface the exact error; don't fabricate a key.
  • Job timed out — bump MUAPI_POLL_TIMEOUT and retry; don't silently truncate.
  • Highlight ranker returned <num_clips — return what survived dedupe with a note.

Done Criteria

The skill is done when:

  1. result.shorts has up to num_clips entries, each with a working clip_url.
  2. The user has been shown the ranked list (score, time range, title, hook, URL).
  3. If --output-json was set, the file exists and parses.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.74%
按下载量换算79

Claude

33.05%
按下载量换算75

Cursor

18.7%
按下载量换算42

Gemini CLI

9.67%
按下载量换算22

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills