Generates a branded logo sting animation with synchronized sound effects from an SVG logo. Handles frame-accurate timing, audio mixing, and Remotion integration for video outros.
Ships in video-creation. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
把品牌的官方 Logo SVG 变成一段卡拍的片尾:中心光点吸气内爆,Logo 的笔画一拍一笔砸入(震屏、RGB 分离、冲击波、火花), 吸入变暗,小节线上一帧负片,字标落定并扫过一道光,随拍呼吸,最后硬切黑场;合成音效与画面读同一份帧表,每一击落在同一帧。 参考实现是《如何用 AI 制作视频》v0.2 的 4.8 秒片尾(30 fps、100 bpm、三笔)。
交付物:spec.json(Logo 规格)、timing.json(帧表)、sting.wav(音效),以及挂进宿主 Remotion 工程的 <LogoSting>
Sequence,或给其它剪辑管线的独立 sting-<画幅>.mp4;另附关键帧联系表与数值质检。
本 Skill 同时是所有视频类 Skill 的默认片尾(作者 2026-11-17:采访片结尾的 Logo 片段就是手工川视频的 media end 模板,
其他视频 Skill 都用它)。片尾长什么样只登记一次,在共享 Profile 的 preferences.video_outro:官方 SVG 与 sha256、
三个颜色、fps、bpm、intro、音效增益、真峰值上限。宿主 Skill 不再各自挑 Logo、调颜色或写混音脚本,只做两步:
# 1. 生成:读 preferences.video_outro,校验 SVG sha256,写 spec.json / timing.json / sting.wav / outro.json
python3 "$SKILL_DIR/scripts/media_end.py" make --out "<project>/work/sting" [--fps <本片 fps>]
# 2. 并进混音:配乐先在片尾起点淡出;把音效按帧加进整片混音,限幅、定响度、复测真峰值
python3 "$SKILL_DIR/scripts/media_end.py" mix --mix <整片混音> --sting "<project>/work/sting/sting.wav" \
--at-frame <片尾起点帧> --fps <本片 fps> --out <最终混音> [--gain 0.40 --target -16 --tp -3.0]
outro.json.frames。LogoSting.tsx 挂成最后一个 Sequence,intro 取 outro.json.intro(手工川为 black),
不传 audioSrc;其它管线用 render_sting.py 出 clip 接在末尾。make。timing.json 与 sting.wav 逐字节相同;spec.json 只有 source 文件名可能不同。preferences.video_outro。lov-media-creator、lov-motion-media-creator、lov-interview-media-creator 等)在定片尾时交来官方 Logo
SVG、本片 fps 和可选的拍点网格,要一段片尾。lov-gen-logo。本 Skill 只用官方文件,不画新 Logo。lov-find-logo;拿到的必须是品牌自己的官方 SVG 才能进本 Skill。lov-media-creator)或 lov-media-publisher;本 Skill 只交片尾。motion-graphics / hyperframes。lov-channels-cover、lov-video-chapter。每次运行先读共享 Profile(skill.yaml 声明 user-profile/v1):
python3 "$SKILL_DIR/scripts/profile_store.py" read --skill-id lov-logo-sting --pretty
按下面的顺序解析,取到即停:
| 值 | 解析顺序 |
|---|---|
共享片尾(media_end.py) | preferences.video_outro(SVG、sha256、颜色、fps、bpm、intro、增益、真峰值上限)→ 缺失时问一次并写回 |
Logo SVG(传给 --svg) | 当前请求点名的文件或宿主 Skill 交来的品牌素材 → preferences.video_outro.svg → skills.lov-logo-sting.records.logo_svg → brand.logo → 问一次 |
强调色 accent | 当前请求 → records.accent → SVG 自带的彩色填充(logo_spec.py 默认)→ 都没有时问一次 |
高光色 hot | 当前请求 → records.hot → 由 accent 向白混 60 % 推出 |
落定色 final | 当前请求 → records.final → #FFFFFF |
brand.logo 可能是另一个品牌(母品牌、个人品牌、产品)或方形图标版。片子署名的品牌与 brand.name 不一致、或文件是方形图标时,
先问一次用哪个品牌的哪个文件;Profile 里的 $HOME/... 路径传给脚本前要展开。python3 "$SKILL_DIR/scripts/profile_store.py" record --skill-id lov-logo-sting \
--path records.logo_svg --value '"$HOME/brand/logo-white.svg"' --confirm
写完报告保存路径。推断出的值只留在本次任务里。完整合同见 references/user-profile.md。
本 Skill 是所有视频类 Skill 的默认片尾:它们在 frontmatter dependencies: 里登记本 Skill,按「共享片尾」一节用 media_end.py
生成并混音;作者明确不要片尾时才省略,宿主没装时报出安装命令。
交接全部是文件:官方 SVG → spec → timing → wav → Sequence 或 clip。片子放在哪、整片混音与响度质检仍归片型 Skill。
详见 references/skill-composition.md。
按顺序执行。 所有中间文件写进宿主项目的工作目录(下文记作 $W,例如 <project>/work/sting),不写进 Skill 目录。
SKILL_DIR 优先取宿主提供的值,否则用本 SKILL.md 所在目录。确认这些文件存在:
$SKILL_DIR/scripts/logo_spec.py、$SKILL_DIR/scripts/sting_timing.py、$SKILL_DIR/scripts/sting_audio.py、
$SKILL_DIR/scripts/render_sting.py、$SKILL_DIR/scripts/media_end.py、$SKILL_DIR/assets/remotion/LogoSting.tsx、$SKILL_DIR/assets/remotion-template/package.json。
缺任何一个,报出相对路径后停止。python3 -c "import numpy"、node --version(24+)、ffmpeg -version、ffprobe -version。references/spec-contract.md:三份文件的字段、取整规则和组件参数以它为准。python3 "$SKILL_DIR/scripts/logo_spec.py" --svg "<official-logo.svg>" \
--out "$W/spec.json" --preview "$W/spec-preview.svg" # 需要时加 --accent '#RRGGBB' --hot --final
rsvg-convert -w 1200 "$W/spec-preview.svg" -o "$W/spec-preview.png" # 或 qlmanage -t -s 1200 -o "$W" …;或用浏览器打开
--mark N(N = 全部路径数);
顺序不对或几段路径属于同一笔时用 --order 2,0+1。<text> → 要转曲后的官方文件;徽章/反白锁定(白字压在色块上)→ 要单色版;
没有彩色填充 → 用 --accent 给品牌强调色;旋转/斜切变换、rect 等非路径形状 → 要导出为纯路径的官方文件。
任何情况下都不手改路径、不描摹位图、不用相近字体重排字标;也不要自己按 SVG 写的字体名转曲,活字的字形随机器上装的字体而变,转曲版要由品牌方或设计师导出并确认。colors.final 是品牌在深色底上的 Logo 颜色;彩色 Logo 要么用官方反白版,要么用 --final 给官方颜色。--fps 填本片帧率,--bpm 默认 100。python3 "$SKILL_DIR/scripts/sting_timing.py" --spec "$W/spec.json" --fps 30 --bpm 100 --out "$W/timing.json"
--beats 传入(第一个必须是 0),笔画落在第 1..N 拍、
字标落在第 N+1 拍,--dur 可指定总长:python3 "$SKILL_DIR/scripts/sting_timing.py" --spec "$W/spec.json" --fps 30 \
--beats 0,18,36,54,72,90,108,126 --dur 144 --out "$W/timing.json"
--beats 可以跳过某些拍,让字标仍落在小节线上。references/integration.md。python3 "$SKILL_DIR/scripts/sting_audio.py" --timing "$W/timing.json" --out "$W/sting.wav"
48 kHz 立体声 16-bit,确定性生成(固定种子),真峰值归一到 −1 dBTP,长度严格等于 dur / fps 秒。每一击都在帧表的帧上。
路线 A — Remotion 宿主(详细步骤与代码见 references/integration.md):
$SKILL_DIR/assets/remotion/LogoSting.tsx 到宿主 src/;spec.json、timing.json 放 src/data/(tsconfig 开
resolveJsonModule,可直接 import 后传入);sting.wav 放 public/。<Sequence from={start} durationInFrames={timing.dur}>;合成的 fps 必须等于 timing.fps,
总长 = start + timing.dur。audioSrc(如 "sfx/logo-sting.wav");宿主另有统一的最终混音时不传 audioSrc,
把 sting.wav 以 0.95 增益放在起点帧并进母带前的混音,Remotion 只挂那一条最终混音。intro="point"(1080 短边下约 6 px 白芯、58 px 白光晕,黑底),
两者无缝衔接;否则用 intro="black",第一击之前是纯黑,由音效的前奏承接。路线 B — 其它管线(FFmpeg、剪映等):
python3 "$SKILL_DIR/scripts/render_sting.py" --spec "$W/spec.json" --timing "$W/timing.json" \
--audio "$W/sting.wav" --aspect 9x16,16x9 --out "$W/clips/"
# 已有 Remotion 4.0.534 安装时加 --node-modules <dir>/node_modules,免去一次 npm install
9x16 1080×1920、16x9 1920×1080、1x1 1080×1080、4x3 1440×1080;fps 取自帧表。输出 H.264 CRF 16 + AAC 320k,
标 bt709,脚本自带 ffprobe 校验。references/integration.md);剪映直接导入 MP4 放到末尾。ebur128=peak=true,看整体响度与真峰值。参考成片加片尾后,AAC 编码文件的真峰值一度超过
0 dBFS,把母带目标降到 −2.5 dBTP、限制器 0.70 重混后才过(最终 −16.0 LUFS / −2.8 dBTP)。references/qc.md)hits)、吸入变暗(gate + 1)、负片(bar)、扫光、静置、硬切黑(cut)。
逐张看:Logo 形状完整无变形,最终锁定位置正确,没有裁出画外(砸入的一两帧碰边属正常)。spec.json 的 source_sha256 等于官方文件的 shasum -a 256;用相同参数重跑 logo_spec.py 与现有 spec 逐字节一致
(证明没被手改);整段没有「圆盘 + 放射线」构图,光条、火花、闪光都是水平向,圆形只有细冲击波环。round(dur / fps × 48000);接入后整片响度与真峰值达标;最后几帧黑场时声音已收住。dur,fps 与宿主一致,路线 A 的合成总长与起点正确。sting_audio.py 需要 numpy,logo_spec.py、sting_timing.py、profile_store.py 只用标准库。assets/remotion-template/package.json)。npm install(装进 ~/.cache/lov-logo-sting/remotion-4.0.534),给 --node-modules 时不联网。lov-branding-consistency,frontmatter 不写 depends_on。python3 "$SKILL_DIR/scripts/validate_skill.py" "$SKILL_DIR"
可信度材料:skill-card.yaml、skill-card.md、cases/cases.json、pricing-card.yaml。
CHANGELOG.md (opens in a new tab)LICENSE (opens in a new tab)README.md (opens in a new tab)assets/remotion-template/package.json (opens in a new tab)assets/remotion-template/remotion.config.ts (opens in a new tab)assets/remotion-template/src/Root.tsx (opens in a new tab)assets/remotion-template/src/index.ts (opens in a new tab)assets/remotion-template/tsconfig.json (opens in a new tab)assets/remotion/LogoSting.tsx (opens in a new tab)cases/cases.json (opens in a new tab)pricing-card.yaml (opens in a new tab)references/integration.md (opens in a new tab)references/qc.md (opens in a new tab)references/skill-card-standard.md (opens in a new tab)references/skill-composition.md (opens in a new tab)references/spec-contract.md (opens in a new tab)references/user-profile.md (opens in a new tab)scripts/logo_spec.py (opens in a new tab)scripts/media_end.py (opens in a new tab)scripts/profile_store.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
logo-sting, brand-outro, video-ending, motion-graphics, sound-design, remotion
/video-creation:lov-logo-stingfrom video-creation
npx claudepluginhub lovstudio/skills --plugin video-creation17 skills in this plugin
/lov-branding-consistency面向公众号、网站、App、策划案、海报等真实发布场景,为读者可见文本建立受众、品牌角色、组件惯例与信息可见性门禁。Use when generating, editing, rendering, publishing, or reviewing audience-facing copy for brand and context fit.
/lov-compress-video把指定视频压到尽可能小且画质不明显下降:默认 HEVC CRF 28 保留分辨率,可选质量 档、目标体积、VMAF 画质门禁与替换原文件模式。Use when 用户说“把这个视频压小” “压缩到 50M 以内”或 “compress this video as small as possible”。
/lov-koubo-media-creator口播短片:输入一个主题,产出 AI 工具类竖版口播的调研、脚本、提词器、上屏素材与封面;作者录完口播后自动剪成上素材下出镜的成片。 Use for 做一条口播短视频、topic to talking-head short.
Other plugins' skills for the same job