/minli-skill:handwriting-stand-upfrom minli-skill
Turns a screen recording or photo of handwriting into a single-file HTML animation where the ink lifts off the page as 3D letters, plays a short animated story with medieval-marginalia characters and synthesized sound, then lays everything back down.
Ships in minli-skill. 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.
Input: a phone screen recording of someone writing a word (the Notes-app kind), or a photo of
handwriting. Output: one self-contained .html (video, fonts, images inlined; ~0.5 MB) that
story.js,Everything runs on one paused GSAP timeline, so any moment can be screenshotted by seeking. That is what makes iterating cheap: change a number, re-shoot three frames, look.
input.mp4 / .jpg ──prepare.py──▶ project/ ──shot.js───▶ shots/*.png (check)
index.html ──build.py──▶ dist/<name>.html
──record.js─▶ dist/<name>.mp4 (optional)
assets/source.js ← traced glyphs, pivots, page size, video
assets/story.js ← you write this
assets/engine.js ← stage, camera, characters, audio
trace_check.png ← look at this before anything else
H=~/.claude/skills/minli-skill/skills/handwriting-stand-up # wherever this skill lives
python3 $H/scripts/prepare.py <recording.mp4|photo.jpg> --out <project-dir>
Then open <project-dir>/trace_check.png. It shows each piece in its own colour with its
index, and a dashed line where that piece is hinged to the paper. Get this right before writing
any story — every later step depends on it.
Opus5 → O / pus / 5). CJK: one per character (radicals like 亻 are merged
automatically). Wrong split → --cuts x1,x2,… (source px, split lines between pieces).
Too many tiny pieces → --max-pieces 5 or --merge-gap <px>. Keep it ≤ 8: each piece is 18 SVG layers.--pivots y1,y2,… (one per piece, source px).--roi x,y,w,h. The default already skips the
top/bottom 11 % of portrait recordings and drops anything already dark in the first frame.--thresh N (ink = gray < N). Assumes dark ink on light paper.Re-running prepare.py keeps an existing assets/story.js (--fresh-story to reset it).
--engine-only --out <dir> refreshes just the engine files in a project.
assets/story.js starts as the template: a complete ~90 s boxing tale ("两位骑士为这页纸打一架")
that already works on any traced word, because every position is relative to the handwriting
(S.WORD) and to the ring placed in front of it.
Ask what story they want if they didn't say. Then, cheapest first:
CAST (names, colours, hair, props) and LINES (every caption) and meta
(intro title, hero line). This alone makes it a different story. The worked example
examples/opus5/story.js is exactly this: Dario vs Altman, "$1T" glove, a book titled 宪法.build(S). Read
references/story-api.md first; it lists every tool (S.knight, S.writeIn, S.shot,
S.caption, S.card, S.lights, S.rock, S.tag, S.finale, …) and the poses that read well.Story craft that held up:
S.finale() with a last line that points back at the page.cd $H/scripts && npm i playwright-core # once
node $H/scripts/shot.js <project-dir> --times 6,17,24,34,37.4,48,59,62.5,66,77,90
node $H/scripts/shot.js <project-dir> --times 6,24,62.5,90 --size 390x844 --dpr 2 # phone
node $H/scripts/shot.js <project-dir> --live 15 # real-time: errors + frame pacing
It writes shots/t<time>_<size>.png plus a contact sheet shots/sheet_<size>.png — look at the
sheet. It exits non-zero and prints any page error. Check both a landscape and a portrait size:
portrait uses each shot's pspan and needs its own framing.
What to look for: captions sitting on the ring's front rope; faces too small to read (tighten
span); letters cut off at the top in wide shots (raise span or oy); a pose that reads wrong
from the camera angle (see the "flat reads as upright" note below).
python3 $H/scripts/build.py <project-dir> # → <project-dir>/dist/<project-name>.html
Fetches Noto Serif SC / Cormorant Garamond / UnifrakturMaguntia from Google Fonts subset to the
characters the story uses and inlines everything. Offline → --no-fonts (system fonts).
The file opens from disk, in WeChat, or on any static host.
node $H/scripts/record.js <project-dir> --out film_16x9.mp4 # 1920×1080
node $H/scripts/record.js <project-dir> --size 540x960 --dpr 2 --out film_9x16.mp4 # 1080×1920, for phones
Renders frame by frame by seeking (recording first, then the story; no dropped frames), renders the
synthesized soundtrack offline with the same timeline calls, and muxes both. --from/--to for a
slice. ~0.1 s per 1080p frame (~5 min for the 100 s film) on Apple silicon with Chrome for Testing
and GPU flags; run sizes one after another — two at once starve each other. Layout follows the
viewport, so pick the CSS size the audience will see (540x960 --dpr 2 looks like a phone).
Every animation must live on S.tl. A bare gsap.to() or setTimeout breaks seeking,
replay and the screenshot tool. Randomness too: derive it from t (the engine's idle bob, flag
flutter and blinks are all functions of timeline time).
fromTo values that only appear in the "from" object don't survive seeking. Position a
sprite with S.set(obj, {x, y, h, a: 0}, t) then S.to(obj, {a: 1}, t). Same for DOM you
tween more than once — tween a plain state object and apply it in render, like stage.rc.
Switch expressions with S.set, not in a long tween. S.set(k.s, {face: 'ouch'}, t).
Faces: calm smile grin firm ouch tired sad; eyes: open x shut.
A card lying flat still reads as a standing figure from a low camera. Folding a knight onto
the paper (rx: 0) seen from tilt 70° just looks shorter. For "knocked flat", also rotate it in
the paper plane (tip: 68) and crane the camera up (tilt ≈ 34); for anything in between, add
dizzy stars.
Walk the actors to the front of the ring before S.finale(). Folded doodles extend behind
their feet, toward the lettering; if they stand near the back they land on the letters.
Wide words dwarf the cast. The template scales shot spans with WORD.w; for very long lines
pick a camera x near the action and let the letters crop, or cut the line into fewer pieces.
The spotlight darkens everything in 2D. A glyph with glow > 0 automatically gets a 2D light
on top so it still shines; anything else you want visible in the dark must sit inside the pool
(S.spotAt).
Don't trim or re-time the recording. The hand-over is seamless only because the plate and the
traced glyphs come from the recording's last frame. Change the input → re-run prepare.py.
Performance is fine on phones for ≤ 8 pieces, 3 actors and ~20 sprites at once. Blur/filter
on big DOM and backdrop-filter are the expensive parts; the engine only uses them briefly.
opencv-python and numpy; ffmpeg + ffprobe.playwright-core and any Chrome/Chromium — only for shot.js.Developed on macOS (Apple Silicon); nothing is macOS-specific.
engine/ — index.html, style.css, engine.js, gsap.min.js, story.template.js.
prepare.py copies these into each project.scripts/prepare.py · scripts/shot.js · scripts/build.py · scripts/record.jsreferences/story-api.md — the S toolkit, coordinates, figure options, sound list.examples/opus5/ — the original: input.mp4, story.js, built opus5.html, preview.jpg.
Rebuild: prepare.py examples/opus5/input.mp4 --out /tmp/opus5 && cp examples/opus5/story.js /tmp/opus5/assets/ && build.py /tmp/opus5.README.en.md (opens in a new tab)README.ja.md (opens in a new tab)README.ko.md (opens in a new tab)README.md (opens in a new tab)README.pt-BR.md (opens in a new tab)engine/engine.js (opens in a new tab)engine/gsap.min.js (opens in a new tab)engine/index.html (opens in a new tab)engine/story.template.js (opens in a new tab)engine/style.css (opens in a new tab)examples/opus5/input.mp4 (opens in a new tab)examples/opus5/opus5.html (opens in a new tab)examples/opus5/preview.jpg (opens in a new tab)examples/opus5/story.js (opens in a new tab)references/story-api.md (opens in a new tab)scripts/build.py (opens in a new tab)scripts/prepare.py (opens in a new tab)scripts/record.js (opens in a new tab)scripts/shot.js (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (limin112/min-skill) — no native marketplace selected
npx claudepluginhub p/limin112-minli-skill8 skills in this plugin
/copy-kakasi「copyKakasi / 逐镜复刻」:把一段有权使用的视频(MV、短片、广告)按原片分镜 1:1 重拍——构图、机位、动作、节奏、配乐都照原片,只把演员换成用户本人、本人明确同意的成年人或 AI 虚构角色。流程:切镜头 → 选镜头、剪歌 → 取首尾帧 → 换脸或打码重画 → 用户自己部署的 MiniMax H3 首尾帧模式逐镜头生成 → 重采样回原帧数、去油腻调色 → 拼接配歌 → 上下对照版。触发:copyKakasi、copy-kakasi、「逐镜复刻」「1:1 复刻」「照着原片一镜一镜重拍」「把这段 MV 换成我来演」,以及成片后按镜头返工(「这镜不要说话」「动作太快」「脸崩了」「跟原片剧情不符」)。不用于:把未同意的真人、未成年人、公众人物的脸放进去;只仿风格、内容重写的新片。/digital-human-koubo把任意一篇文章(技术教程、产品发布、新闻解读、读书笔记、论文、公众号长文……)做成数字人讲解视频,全程本地开源模型、不接云端生成服务:读文章 → 写多角色口播稿(每段带一个声明式画面 visual:大字、配图、圈重点、数据卡、终端、流程、标签、柱状图、金句、片尾阵容)→ 本地文生图出角色首帧(默认 MOSS-Image,可挂自己训的人物 LoRA)→ 本地 MiniMax H3(ComfyUI + Turbo 加速,双卡)按段生成「画面 + 原生配音」→ whisper 逐段回听 → 逐字对齐 → 通用 Remotion 模板出片(配色 / 配乐有魔幻、科技、温暖、史诗四种情绪预设,配乐代码合成无版权)。支持多角色同台(真人感主讲、搭档吐槽、Pixar 风动物、二次元 Q 版)、多语言混说(如英式英语开场切普通话)、双语字幕;另有花字口播 / 发布解读 / 多主播等风格和 48 个包装组件。触发:讲解这篇文章、把文章做成视频、数字人口播、数字人讲解、AI 主播讲一下、用我的数字人讲、本地 H3 生成口播、做个教程讲解视频、加花字 / 加包装。不用于:冒充真人、用别人的脸或声音。/explain-videoBuild a narrated explainer video from a concept — discussion → structure → HTML slide deck → narration script → TTS voice → subtitles → background music → Playwright screen recording → ffmpeg composite. Use when asked to make a 讲解视频 / explainer / talking-deck video, to turn a topic or article into a narrated video or animated slide deck, or to redo one stage of an existing deck (re-record, re-mix BGM, regenerate captions, swap the voice)./freetoken-botsFree-model radar, quota tracker and zero-cost router for OpenRouter + OpenCode Zen. Discovers free models daily (new / no-longer-free / limited-time / anonymous), tracks free quota and rate limits, runs a local OpenAI-compatible router (Chat Completions + Responses API) that fails over only between OpenRouter free models, and uses OpenCode as the harness for OpenCode Zen free models (which official docs restrict to the OpenCode client) — any shell-capable agent can hand tasks to OpenCode with `ftb delegate`. Works with Pi, Codex CLI, OpenCode, Grokbot, Hermes and any OpenAI-compatible agent. Activates when the user mentions OpenRouter, OpenCode Zen, free tokens, free models, zero-cost models, 免费 token, 免费模型, 白嫖模型, or wants an agent to run on free models./hdr-videoConvert an SDR video (or a clip of it) into a 10-bit HEVC HLG / BT.2020 HDR file whose highlights glow on HDR screens, and build a left/right SDR-vs-HDR comparison in a single file. Pure ffmpeg plus a generated 3D LUT (no zscale / libplacebo needed); parameters are chosen from measured luma stats, and the output tags are verified. Use when asked to make a video HDR / 做成 HDR / SDR 转 HDR / HLG / 亮瞎 / 高光发光, to make a clip look like an HDR reference, to compare SDR and HDR side by side (左右对比), or to judge or describe a scene that suits HDR./video-remake「videoRemake / 视频翻拍」:给一段有权使用的视频,聊几句,出另一个版本——镜头运动、节奏、每个节拍的时间点都照原片,内容整个换掉:换世界观(现代街头 → 古代皇宫、欧洲中世纪)、换画风(真人 → 动漫、水墨、黏土)、换完整角色(脸、身体、服装一起换)、或者一路穿越不同画风。流程:拆原片 → 和用户定节拍表 → 定妆图 → 逐张重绘关键帧(原片里的人先换成灰模)→ 按节拍分段、每段首尾都钉在关键帧上逐段生成 → 变速对齐、拼片配声 → 节点图管理页。生成视频这一步不绑定任何平台:用户说用什么就用什么——自己的显卡和本地模型、任何视频平台的接口、或者在网页上手工生成后把片子放回来。触发:videoRemake、video-remake、「翻拍这个视频」「把这个视频改成古代 / 中世纪 / 动漫风」「照这个视频的运镜做一个…版本」「换成另一个世界观」「整个角色换掉」「穿越不同画风」,以及成片后按段返工。只换演员的脸、别的都不动,用 copy-kakasi。不用于:把未同意的真人、未成年人、公众人物放进去;去水印;绕过平台下载限制。Other plugins' skills for the same job