aixenix/aixenix-video-skills/law-splitflap
Claude Code and agent skill by aixenix/aixenix-video-skills
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Split-flap law: everything on screen is shown only by a giant mechanical Solari departure board — 504 flap modules in three.js. Text is printed glyph flaps, pictures are mosaics of per-module picture flaps, and every module steps through its drum one flap at a time, so letters visibly clatter in order. The clatter itself is the percussion of the score. Use for ads, intros, announcements, launches, travel/airport/logistics themes or any 'status changes' story. Triggers: split-flap, Solari board, flip board, departure board, airport board, flap display, mechanical board animation, 'табло вылетов', 'перекидное табло', 'механическое табло', 'табло Solari', 'аэропортовое табло', 'ролик табло', 'буквы перещёлкиваются'.
Install
npx vskill@latest install aixenix/aixenix-video-skills/law-splitflapSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as aixenix/aixenix-video-skills/law-splitflap.
law-splitflap — the departure board
Runs on the procedural-film pipeline bundled in this plugin (skills/procedural-film/SKILL.md: gate, snap, render, music engine). Shared notes for the AiXenix series are in skills/aixenix-video/SKILL.md. example/ is the finished 21.3 s ad «Табло вылетов» for AiXenix («Бизнес на автопилоте»): copy it and change the words, pictures and music.
The law
Only the board. The frame is a wall-sized Solari split-flap board: 36 × 14 = 504 modules, each a drum of 75 flaps. The drum order is: blank, 62 printed glyphs (Cyrillic А–Я, the Latin letters Cyrillic lacks, digits, . : - / ·), 11 picture flaps P1–P11 and 1 card flap. The drum is cyclic.
What must happen:
- Text is glyph flaps, one character per module, printed in white on a black flap. Each glyph is split at the hinge: the top half is printed on the front of flap k, the bottom half on the back of flap k − 1, exactly like a real drum.
- Pictures are mosaics. A picture flap carries only this module's tile of a picture. The runway and plane, the moon and the AiXenix wordmark exist only as 504 tiles, cut by the hinge line and the grille.
- One flap at a time. A module advances one flap per step, at 30 flaps per second. To go from А to Я it clatters through everything in between. Each flap falls about its hinge with acceleration, then hits and bounces.
- Animation is flip-book. A moving picture is consecutive picture flaps on the drum; each single flip advances the image one frame. The takeoff is 10 ripples of one flip each, on the 16ths.
- The clatter is the rhythm. Every flap impact the picture schedules is a click in the score. Clicks are panned by column and tuned to the bar's chord, and landings sit on beats.
What must not happen: overlays, captions, glows or particles that are not printed on a flap. No module may jump a glyph. No "kinetic type".
Why viewers read it: the bands of the alphabet running across the board during a storm, and the hinge split in every letter, prove it is a machine. When a picture assembles out of the same flaps, the law is legible in the first seconds.
Good for
- 15–30 s ads with a "before → after" story told as statuses: ОТМЕНЁН → ВЫЛЕТ: СЕЙЧАС.
- Launches, timetables, travel, logistics, "your flight is now boarding" CTAs.
- Any brand that wants a tactile, analog, mechanical feel.
- A logo reveal as a mosaic picture plus a URL in glyph flaps.
Quick start
Run from a copy of example/ (the folder name becomes the output slug). You need Node 18+, ffmpeg and zsh.
Check the score with FILM_NO_NET=1 zsh tools/q.sh node tools/audio/render-audio.cjs, then node tools/audio/analyze.cjs .tmp/audio/score.wav --cues. Every cue should land within 10 ms.
Make it yours
All paths are relative to example/.
- Words on the board:
src/cast.js→LAYOUT: head: the header row and clockhook: rows of[time, destination, status]motto,flight,site,gate:[string, column, row]mark: the wordmark rows on the cardplane: the paper-plane block
The board is 36 columns × 14 rows; keep strings ≤ 36 characters and inside the camera framing.
- Characters: a string may only use characters printed on the drum:
CHARSinsrc/cast.js, plus Latin homoglyphs mapped byHOMO.gi()throws on anything else. Adding glyphs lengthens every roll. - When things happen:
SCRIPTS.filminsrc/cast.js. Times areb(bar, beat). land()makes a module arrive on a beat (its start is computed backwards from the number of steps).go()starts a roll at a time and lets it settle like a real board.run()refuses overlapping runs.- The storm is
tide(); the takeoff ripples are theNPloop. - Brand name, wordmark, colours:
- Wordmark:
drawCard()insrc/scenes/01-board.js(word, the Futura font, the gradient stops#ff2bd6 → #bf00ff → #00f0ff, the paper plane). - Flap and print colours:
FLAP_HEX,INK_HEX. - Airliner livery:
airliner()(fin gradient, cheat line). - The picture (takeoff mosaic):
- Scene:
drawSky(), with the moon inMOONand the runway line inRWY. - Flight path, one row per picture flap:
PLANE. - Contrail:
drawContrail(). - Up to 12 picture flaps fit the two atlases (
PROWS);NPinsrc/cast.jsmust matchPLANE.length. - Camera:
CAMKkeyframes[T, pos, look, ease]insrc/scenes/01-board.js.cameraAt()adds the one-bar "breathe" in the last two bars, which is the loop. - Duration / bpm:
src/timeline.js(bpm,duration,shots,cues). Keep a whole number of bars. At 112.5 bpm a bar is 64 frames, so every 16th lands on a frame. Then re-timeSCRIPTS.film,CAMKand the score. - Music:
src/music.js: CH: chords.BARS: per bar the chord, the sub root and the click resonance tones.MIX.ride: section levels.clatterRide(): the clatter's own fader.clickVariant(): the flap timbre.score(): the composition; everyFILM.TIMELINE.cuesentry is implemented at its time.- Texts in docs:
exports/<slug>-shots.mdis written by hand. Use the timeline briefs as the source.
How the engine works
src/cast.js(a prelude, loaded before the timeline) owns the mechanics: drum, flap physics (theta(): accelerating fall, then decaying hops), planner and scripts. It exposesFILM.board:stateAt(module, t),impacts(), the constants andLAYOUT.- Each module keeps a flat list of release times.
stateAtbinary-searches it and returns: - the top face (the next flap),
- the bottom face (the last settled flap),
- up to 7 flaps in flight or hopping, with their angles and faces,
- the analytic shadow reach those flaps cast on the resting halves.
- Each run gets a deterministic phase offset (
jit(), hashed per module), so the motors are out of step with each other and with the camera. Flaps are seen at every angle; without it, every flap shows the same pose on every frame. src/scenes/01-board.jsrebuilds oneInstancedMeshevery frame: a top flap, a bottom flap and the falling flaps, with each flap a plane rotated about its hinge. A custom shader handles:- sampling the glyph atlas, or this module's tile of the picture or card atlas,
- key-light pools from four downlights, GGX satin specular and a narrow glint as flaps pass horizontal,
- axle and lip occlusion, flap shadows, and per-flap wear.
- Post-processing: a 4-sub-pose accumulation pass gives motion blur (a 180° shutter), then BokehPass (DOF), UnrealBloom, OutputPass, and finally vignette and grain.
- All printed art (glyph atlas, 11 takeoff frames, card) is drawn once with Canvas 2D at init, in Helvetica Neue Condensed Bold and Futura. There are no font files.
src/music.jsturnsFILM.board.impacts()(about 40 000 impacts) into per-bar stereo buffers of synthesised plastic clicks. It also adds a motor rumble that follows the number of running modules, under a beat (kick, clap, hats, sub, pad, plucks, bells).src/timeline.jslists 7 chapters. They are one continuous take: every shot calls the samedrawat globalT.
Determinism and gotchas
- GPU vs SwiftShader. Headless Chromium defaults to SwiftShader (CPU GL). The board renders 3000 lit flaps four times per frame; on SwiftShader that is very slow (about 0.75 s per frame before motion blur was added).
tools/common.cjstherefore uses ANGLE Metal on macOS (process.platform === 'darwin'), at about 10 ms per frame in the gate. FILM_GL=swiftshaderforces the software path anywhere.FILM_GL=metalforces Metal.- On Linux and Windows the default (SwiftShader) is used. Expect a frame-cost WARN and long renders; use
--scale 0.5for drafts. - Determinism traps found on the GPU path, all fixed in the example:
- Accumulating sub-poses into a multisampled target: the composer target is single-sample, and MSAA happens in each sub-pose render.
- One very tall picture atlas (4096 × 6800): split into two textures.
- GPU-rasterised 2D canvases with long translucent strokes: the art canvases use
{ willReadFrequently: true }, i.e. CPU raster.
If the gate's determinism check flickers, run it several times and look at what differs in fresh shuffled vs cold.
- The gate does not scan `src/cast.js`. The gate excludes the prelude name
cast.jsfrom itsMath.random/Datescan. Keep it pure by hand:grep -n "Math.random\|Date\|performance.now" src/cast.js. - The score renders without the scene files (
tools/audio/render-audio.cjsloads only the preludes, timeline and music). This is why the schedule lives incast.js. - Long rolls. With 75 flaps, a blank → picture roll takes about 2.1 s.
land()starts it early, so text you want readable must not have a roll starting next to it. The flight row is gated to start no earlier than half a beat after the motto lands. - The homing turn passes the picture flaps. A full extra drum turn (
land(..., extra = 1)) flashes picture tiles mid-word. Use it only where those tiles are dark (here, the header row). - Loop seam. The last bar has no flips. The camera "breathe" uses
(1 − cos 2πu)/2, which has zero velocity at both bar ends. Grain changes per frame, as everywhere.deliver.shrenders the last bar on its own for-loop.mp4. - Text safety. Board text is drawn by WebGL, so the gate's safe-area check cannot see it. Check margins on snaps (≥ 96 px is title-safe at 1920 × 1080).
- Bitrate. Grain and flaps are expensive to encode: the crf-23 web file is about 11.5 MB for 21 s. Reduce the grain in the
finishpass if a platform needs smaller files.
Files map
Path (in example/) | What it is | |
|---|---|---|
src/cast.js | Drum, flap physics, planner, LAYOUT, SCRIPTS.film / SCRIPTS.fixture, FILM.board | |
src/scenes/01-board.js | three.js board, shaders, printed art (glyphAtlas, drawSky, airliner, drawCard), camera CAMK, motion blur, post | |
src/music.js | Engine (kept) + CH, BARS, MIX.ride, clatter synthesis, score() | |
src/timeline.js | 112.5 bpm, 10 bars, 7 chapters, cues | |
src/vendor.js | three.js r180 + addons as global THREE | |
src/core.js, src/lib.js, src/player.js | Pipeline runtime (unchanged) | |
tools/fixtures/splitflap/ | Hero fixture: hook text → storm → runway mosaic (boardScript: 'fixture') | |
tools/fixtures/three-test/ | three.js determinism smoke | |
tools/common.cjs | GL backend selection (FILM_GL) | |
tools/q.sh | Semaphore (Q_SLOTS, default 3; lock in ${TMPDIR:-/tmp}/procedural-film-q) | |
tools/deliver.sh | Web, loop and poster files plus the HTML build, from the master | |
docs/ | Pipeline contract and templates |
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/law-splitflap/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
pluginCustom plugin integration
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aixenix/aixenix-video-skills/law-splitflap)