AutoClip is an AI video-processing system that downloads videos, finds notable moments, cuts them into clips, and groups the results into collections. It is for people who want to turn YouTube, Bilibili, or uploaded videos into highlight content, and its catalogue add-ons extend the system's workflows.
Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/zhouxiaoka/autoclipnpx agentmods add skills/zhouxiaoka/autoclip/template-clonerWrote 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.
[](https://agentmods.dev/skills/zhouxiaoka/autoclip/template-cloner)<a href="https://agentmods.dev/skills/zhouxiaoka/autoclip/template-cloner"><img src="https://agentmods.dev/badge/skills/zhouxiaoka/autoclip/template-cloner/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.
<a href="https://agentmods.dev/skills/zhouxiaoka/autoclip/template-cloner"><img src="https://agentmods.dev/badge/skills/zhouxiaoka/autoclip/template-cloner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00130 | $0.02429 |
| Opus 5.5 | $0.00052 | $0.00972 |
| Sonnet 5.5 | $0.00026 | $0.00486 |
| Haiku 4.5 | $0.00013 | $0.00243 |
Grade A, and why
template-cloner 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 today.
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.
How it starts
The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AutoClip Template Cloner:参考视频 → 可热更新成片模板
把任意爆款切片样式(如小红书技术访谈、播客金句、街头快剪、双语演讲)逆向还原成确定性、离线安全、可热更新的 AutoClip 模板包,无需修改任何 AutoClip 源码或重新发版。
开始写模板前,先快速查阅 references/spec-v2-cheatsheet.md 里的 TemplateSpec v2 字段与 window.setData 数据结构。
工作流(5 步闭环)
第 1 步:抽取参考帧与元信息
用户提供本地参考视频或截图时,先运行抽帧分析脚本:
python scripts/template_cloner.py extract-ref /path/to/reference.mp4 --out /tmp/ref_work --frames 6
如果用户发的是多张截图:
python scripts/template_cloner.py extract-ref /path/to/shot1.png /path/to/shot2.png --out /tmp/ref_work
用图像查看工具读取输出的 contact_sheet.jpg(或各张 frame_*.jpg)和 reference_brief.json。
第 2 步:按 7 个维度拆解视觉语法
不要凭感觉写样式,逐项把参考画面的视觉语法映射到 AutoClip 的声明式契约:
- 画布与构图(
base.framing/head_zone/zoom):满屏人像(full_face)、画框窗口(window)还是方形(square)?镜头是缓慢推进(creep)还是节拍跳切(step+step_window: true)? - 调色与底部暗角(
base.grade/base.scrim):冷调、暖胶片还是高对比?底部字幕区是否需要渐变暗角衬托(用base.scrim声明,由 FFmpeg 单帧循环合成,不要在 CSS 里做大面积模糊)。 - 进度条(
base.progress_bar):是否有底部/边距进度条?用progress_bar声明高度(偶数像素)、边距、颜色和透明度,由 FFmpeg 随视频时钟驱动,避免每帧重绘 PNG。 - 字幕排版与分页(
caption_layout):字号(font_px)、左右留白(inset_px)、短屏分句(grouped_screen)还是逐句(phrase/sentence)、中英双语对齐方式(synced/per_cue/sentence_screens)。 - 关键词高亮与色彩系统(
style.css+template.js):主字幕颜色、强调词高亮色(seg.hl/seg.key)、描边/阴影/胶囊底色、英文字幕层级。 - 辅助包装元素(
overlay.slots&fields.optional):顶部kicker标签、讲者名片(speakers)、数字弹卡(numbers)、术语注释卡(gloss)。注意成片默认不烧入封面大标题(由paint_fill清空title_lines)。 - 平台安全区与避脸铁律(
overlay.safe_area):小红书(xiaohongshu)、抖音(douyin)、TikTok(tiktok)等,确保口播字幕严格落入避脸安全区(y: 1220..1520或头顶y: 160..320),严禁在清晰人脸上直接盖大字;只有配合 FFmpeg 时间轴虚化(base.grade: "gblur=sigma=14:enable='lt(t,1.35)'")或全屏纯色节奏插卡时,才允许短暂居中放巨幅标题。 - 3 层本地 ONNX 人像景深(
1.6.3+可选,「大字穿人像背后」):- 在
template.yaml中声明base.subject_layer: true、overlay.back_entry: back.html、meta.min_app_version: "1.6.3"; back.html+back.js渲染在人物头肩背后(建议放在发际线景深带y=505..535,保证上部 75%~80% 清晰可读、底部被发丝自然遮挡),且必须随每句口播动态进场 → 停留 → 淡出,不要常驻死字;index.html+template.js渲染在人物前景安全区字幕与标签。
- 在
- 包装引擎 v2:品牌变量 &
ACMotion原子动效库(1.6.4+推荐):- 在
template.yaml顶层声明variables:(支持kind: color | number | boolean | select,如accent_color、font_scale(S/M/L)、depth_enabled),用户选中模板后即可在单行工具条实时改色/调字号/开关景深,渲染前引擎自动注入fill.vars; - 共享 SDK
./ac-template-sdk.js内置window.ACMotion原子动效套件(springPop/blurIn/clipWipe/kineticSlam/staggerIndex/chunkCaption/safeBands/renderVignette/renderGrain/getVar),以及面向 GSAP 模板的ACMotion.bindTimeline(tl)确定性暂停时间轴桥接(motion_runtime: gsap)。 - 支持
.zip模板包标准互传:用户可在 AutoClip 桌面端模板栏直接点击「导入模板包」导入.zip,或在已安装模板下点击「导出」分享给他人。
- 在
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- today Changed · +4 lines eee7fc0f9415
- yesterday Changed · +7 lines ced6dd793c38
- 4d ago First seen · 89 lines · 130 tokens per session scan A 51905c5648f6
template-cloner is a skill published in the GitHub repository zhouxiaoka/autoclip (18,671 stars, last pushed today), licensed MIT. It adds 130 tokens to every session and 2,429 once invoked, about $0.0005 per session on Opus 5.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-11-26.
template-cloner compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| template-clonerzhouxiaoka/autoclip | Skill | 19k | today | MIT | A | 130 | Claude Code |
| weftcutWeftCut/WeftCut | Skill | 418 | yesterday | MIT | A | 108 | Claude Code |
| douyin-uploaddreammis/social-auto-upload | Skill | 17k | 3d ago | MIT | A | 93 | Claude Code, Codex |
| package-authorPinvou/pinvou-agent | Skill | 3.0k | today | MIT | A | 133 | Claude Code, Codex |
| ha-data-storesshiwenwen/hope-agent | Skill | 1.9k | yesterday | MIT | A | 115 | Claude Code, Codex |
| children-warm-orangearcsin1/oh-my-ppt | Skill | 2.7k | 4d ago | Apache-2.0 | A | 0 | Claude Code, Codex |
| teach-meandrooAGI/starnet | Skill | 2.0k | today | MIT | A | 47 | Claude Code, Codex |