Creator Identity Film
A data-driven motion-design pipeline that turns one profile.json + an avatar into a finished identity film. It was built for, and validated on, the Douyin creator 清晨方白晓 (see examples/qingchen-fangbaixiao/), then generalized: every name, number, date and line of copy comes from the profile, and every text block auto-fits its slot.
What the viewer sees (38 s, five sections):
- Milestone: followers as seats. The next milestone (e.g. 7000) slams in, a seat map fills to the current count, and the remaining empty seats glow blue: 「还空着 971 个」.
- Profile: the empty seats collapse into the avatar disc. Then come the name, an identity chip and mini stats; a self-aware contrast gag (music cuts out, e.g. 「不是 AI 从业者」 → 「但特别喜欢折腾 AI」); and the interests page.
- Feature: a blueprint build-up and a beat of silence, then the featured work's title slams in monumentally, with the partner headline and a views counter.
- Archive: works drop onto a timeline, followed by a selected-works bar list, the total-views counter and four stat cards.
- Identity: avatar + progress ring, name, slogan typed out, tagline, platform ID, and a mini seat strip ending with 「你的座位」.
Workflow
1. Gather the facts (ask; never invent numbers)
Collect what's needed for profile.json. The full schema, with defaults and length guidance, is in references/profile-schema.md. The essentials:
- name (+ optional Latin/pinyin), platform label and ID, avatar image
- first publication date, stats date
- followers: current and the next milestone goal (must be larger than current)
- totals: views, likes, saves, shares, comments
- works: total, plus video/image split if known, plus publish dates if they have them
- identity chip (school / role), interests, one featured achievement (title, partner headline, views), up to 4 selected works with views
- slogan and tagline
Every number on screen must come from the user. If something is missing, ask, or drop that element, rather than estimate. A partnership or "official" claim (「官方共创」) must be the user's own statement. If they don't have per-work dates, the timeline uses an illustrative spacing and prints SPACING ILLUSTRATIVE; tell them so.
Avatar: a square image with the subject centered works best. A light, plain background makes the halftone version read cleanly. Never use screenshots or frames of the creator's actual works anywhere in the film. Achievements are represented through typography, numbers and abstract geometry only.
2. Write the copy with them
The film's personality lives in four short lines. Draft options and let the user choose:
- contrast (
no/yesLead/yesBig): a self-deprecating truth followed by an enthusiastic twist. The music drops out forno.yesBigshould be 2–6 characters so it can be huge; the firstwiggleCharscharacters jitter, so pick the "restless" verb. - featured.title: one short, monumental token (a code name, model number or 1–2 word title). ≤ 8 characters looks best.
- slogan: one sentence, ≤ ~18 Chinese characters, ending in 。
- tagline: 2–3 short parts joined by ×.
Default UI copy is Simplified Chinese (「个位置」「已经坐了」「欢迎入座 →」…). Override any string via profile.copy; see the schema reference.
3. Scaffold and install fonts
zsh <skill>/scripts/init_project.sh <project_dir> <profile.json> <avatar>
python3 <skill>/scripts/setup_fonts.py <project_dir>
init_project.sh copies template/, the profile and the avatar, and runs npm install (it pulls @napi-rs/canvas). setup_fonts.py extracts PingFang SC from the user's own Mac into assets/fonts/ (for local use only; never redistribute it), or uses an installed Noto Sans SC / Source Han Sans. The renderer warns and falls back if neither exists. The Latin faces (SF Compact, DIN Condensed, Menlo) are resolved from what's installed, with open fallbacks.
4. Preview stills before the full build
The full build takes about 15 s on a fast Mac, but looking at stills first catches copy and fit problems faster:
cd <project_dir> && node src/render.mjs stills /tmp/preview 1.2,4.6,7.4,10.2,12.6,17.6,22.6,26.2,30.2,37.5
Those times cover:
| Time | Moment |
|---|---|
| 1.2 | 7000 slam |
| 4.6 | 971 hold |
| 7.4 | profile |
| 10.2 | gag |
| 12.6 | interests |
| 17.6 | feature title |
| 22.6 | views lock |
| 26.2 | works list |
| 30.2 | stat cards |
| 37.5 | final frame |
Look at every still for overflow, collisions, wrong numbers and awkward line lengths, and fix the copy (or a copy override) before building.
5. Build
zsh <project_dir>/build.sh [cover_time=23.0]
This runs the steps in order:
- Synthesize the soundtrack.
- Render 1140 frames across parallel workers.
- Run two-pass loudnorm to −14 LUFS / −1 dBTP.
- Mux the AAC audio with the video.
- Write the cover JPG.
- Print an ffprobe and loudness report.
Outputs land in out/intro.mp4 and out/cover.jpg.
6. Verify, then refine
- Specs: confirm the build report shows 1920×1080, 30/1 fps, 1140 frames, ≈ −14 LUFS.
- Sync: run
python3 <skill>/scripts/verify_sync.py <project_dir>. Every impact and section downbeat should be within one frame; it printsSYNC OK. - Motion: run
zsh <skill>/scripts/contact_sheet.sh out/intro.mp4 /tmp/stripsand look at every strip. Check that each highlight stays fully on screen for about a second or more, that transitions read, and that nothing pops or overlaps. - Audio: synthesized audio can only be checked numerically here. Tell the user to listen once with headphones.
If the user wants a different pace or length, adjust the time-warp map. Don't edit scene timings for that. See references/pacing-and-sound.md, which also records what the original client asked for and why the default is 38 s.
7. Deliver
Give the user:
out/intro.mp4andout/cover.jpg- a short notes file (
out/说明.mdorout/NOTES.md) with the concept, the actual second-by-second timeline, how it was made, and the known limitations: illustrative timeline spacing, the unheard mix, local-only fonts, any data shown as approximate
Don't publish or upload anything unless the user asks.
Customizing beyond the profile
- Colors, type scale, grid, motion vocabulary:
references/design-system.md. - Pacing, time warp, beat grid, music arrangement, sound effects:
references/pacing-and-sound.md. - Scene code lives in
template/src/scenes.mjs. Each scene is a pure function of the 24 s design clockt, so any frame can be rendered alone. Brief flashes, speed-line bursts and screen shake run on the film clock instead, so they stay snappy when holds are stretched. featured.motif:"abstract"(default: nested-polygon geometry) or"aircraft"(the abstract fighter planform from the original example). New motifs are just another draw function with the same signature asabstractGlyph.
Files
template/ copied into each project (node_modules is installed per project)
build.sh one-command build + report
src/profile.mjs loads profile.json, derives every value, holds default Chinese copy
src/timeline.mjs 120 BPM grid, easing, counters, cue sheet, 24 s → 38 s time warp
src/scenes.mjs the five scenes, transitions, editorial chrome
src/lib.mjs font resolution, tracked text, per-glyph animation, odometer digits
src/audio.mjs sample-level synth: drums, bass, plucks, pads, risers, SFX
src/render.mjs stills / parallel segment render / concat
scripts/ init_project.sh, setup_fonts.py, verify_sync.py, contact_sheet.sh
examples/qingchen-fangbaixiao/ the original creator's profile.json + avatar (reference build)
references/ profile-schema.md, design-system.md, pacing-and-sound.md