template-cloner

template-cloner is a skill for Claude Code from zhouxiaoka/autoclip. It costs 130 tokens per session (2,429 once invoked), scanned A, original, MIT.

A video-template workflow that studies a reference video, images, or style description and produces an AutoClip template package matching its visual structure.

In plain words
What is it for?
It is for extracting video frames, analysing composition, colour, progress bars, captions, and motion, then validating, installing, or packaging the resulting template.
Why use it?
It turns a visual example into a defined template contract instead of requiring the template author to recreate every layout and timing detail by hand.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python scripts/template_factory.py verify ./custom_templates/<slug>.

Part of the autoclip plugin — 3 skills, 2 MCP servers shipped together

Good fit It is for extracting video frames, analysing composition, colour, progress bars, captions, and motion, then validating, installing, or packaging the resulting template.

Compare 6 skills from other repositories ↓
About the project

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.

zhouxiaoka/autoclip · 18,671 stars · on GitHub · zhouxiaoka.github.io

Install

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.

Clone the repo
git clone --depth 1 https://github.com/zhouxiaoka/autoclip
agentmods
npx agentmods add skills/zhouxiaoka/autoclip/template-cloner

Made for: Claude Code.

Or install autoclip, the plugin that ships this one along with the rest of its 3 skills, 2 MCP servers.

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 template-cloner

README.md
[![agentmods](https://agentmods.dev/badge/skills/zhouxiaoka/autoclip/template-cloner/github.svg)](https://agentmods.dev/skills/zhouxiaoka/autoclip/template-cloner)
Your own site
<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.

agentmods 80×15 button for template-cloner

Your own site · 80×15
<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>
Per session 130 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,429 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.
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.00130 $0.02429
Opus 5.5 $0.00052 $0.00972
Sonnet 5.5 $0.00026 $0.00486
Haiku 4.5 $0.00013 $0.00243

Measured today against content hash eee7fc0f9415, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

skills/template-cloner/SKILL.md · 100 lines

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 的声明式契约:

  1. 画布与构图(base.framing / head_zone / zoom):满屏人像(full_face)、画框窗口(window)还是方形(square)?镜头是缓慢推进(creep)还是节拍跳切(step + step_window: true)?
  2. 调色与底部暗角(base.grade / base.scrim):冷调、暖胶片还是高对比?底部字幕区是否需要渐变暗角衬托(用 base.scrim 声明,由 FFmpeg 单帧循环合成,不要在 CSS 里做大面积模糊)。
  3. 进度条(base.progress_bar):是否有底部/边距进度条?用 progress_bar 声明高度(偶数像素)、边距、颜色和透明度,由 FFmpeg 随视频时钟驱动,避免每帧重绘 PNG。
  4. 字幕排版与分页(caption_layout):字号(font_px)、左右留白(inset_px)、短屏分句(grouped_screen)还是逐句(phrase / sentence)、中英双语对齐方式(synced / per_cue / sentence_screens)。
  5. 关键词高亮与色彩系统(style.css + template.js):主字幕颜色、强调词高亮色(seg.hl / seg.key)、描边/阴影/胶囊底色、英文字幕层级。
  6. 辅助包装元素(overlay.slots & fields.optional):顶部 kicker 标签、讲者名片(speakers)、数字弹卡(numbers)、术语注释卡(gloss)。注意成片默认不烧入封面大标题(由 paint_fill 清空 title_lines)。
  7. 平台安全区与避脸铁律(overlay.safe_area):小红书(xiaohongshu)、抖音(douyin)、TikTok(tiktok)等,确保口播字幕严格落入避脸安全区(y: 1220..1520 或头顶 y: 160..320),严禁在清晰人脸上直接盖大字;只有配合 FFmpeg 时间轴虚化(base.grade: "gblur=sigma=14:enable='lt(t,1.35)'")或全屏纯色节奏插卡时,才允许短暂居中放巨幅标题。
  8. 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 渲染在人物前景安全区字幕与标签。
  9. 包装引擎 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,或在已安装模板下点击「导出」分享给他人。

Read the full file on GitHub · 100 lines

Files

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.

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. today Changed · +4 lines eee7fc0f9415
  2. yesterday Changed · +7 lines ced6dd793c38
  3. 4d ago First seen · 89 lines · 130 tokens per session scan A 51905c5648f6

Subscribe to this mod's changes

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.

Related

template-cloner compared with skills from other repositories

template-cloner next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
template-clonerzhouxiaoka/autoclipSkill19ktodayMITA130Claude Code
weftcutWeftCut/WeftCutSkill418yesterdayMITA108Claude Code
douyin-uploaddreammis/social-auto-uploadSkill17k3d agoMITA93Claude Code, Codex
package-authorPinvou/pinvou-agentSkill3.0ktodayMITA133Claude Code, Codex
ha-data-storesshiwenwen/hope-agentSkill1.9kyesterdayMITA115Claude Code, Codex
children-warm-orangearcsin1/oh-my-pptSkill2.7k4d agoApache-2.0A0Claude Code, Codex
teach-meandrooAGI/starnetSkill2.0ktodayMITA47Claude Code, Codex