/skills:ship-web-videofrom skills
Encodes finished films and UI loops for web delivery: generates MP4/WebM with posters, reserved-aspect-ratio markup, autoplay/play-on-click, reduced-motion support, and file-size budget checks. Not for editing the film itself.
Ships in skills. 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.
A film on a page is a picture first and a video second: the page reserves its box, paints a poster, and fetches no video byte until the film is in view and allowed to move. A loop in the first screen is the one film that plays from its tag alone. Start from the delivery master (npx hyperframes render --quality delivery); keep the master out of the shipped folder.
Video: and what it shows, 120 characters at most).bash scripts/encode-web.sh renders/film.mp4 public/films film 18.6 3MB
It writes film.mp4 (H.264 High, yuv420p, CRF 21 capped at 2.2 Mb/s, -movflags +faststart, -an), film.webm (two-pass VP9 around 1 Mb/s, -an), and film-poster.png, .jpg and .webp from the second you give, then checks the budget. Budgets: 3,000,000 bytes per film file, 1,500,000 per UI loop (decimal). A 22 s film at 1600×900 came to about 1.75 MB MP4 and 2.2 MB WebM. Over budget: lower the resolution to the largest size the page shows it at, then raise the CRF a step; never cut the frame rate of a UI loop.
<figure class="film" data-loop="false" style="aspect-ratio: 1600 / 900" role="img" aria-label="Video: the brief turning into four pieces">
<img src="/films/film-poster.webp" width="1600" height="900" alt="" loading="lazy" decoding="async">
<video muted playsinline preload="none" tabindex="-1" width="1600" height="900">
<source src="/films/film.mp4" type='video/mp4; codecs="avc1.640028"'>
<source src="/films/film.webm" type='video/webm; codecs="vp9"'>
</video>
<button type="button" class="film-play">Play</button>
<figcaption>From brief to four pieces in 22 seconds</figcaption>
</figure>
<script src="/film.js" defer></script>
A loop in the first screen (a hero) carries muted loop playsinline, its poster, its size and controls on the tag, and no autoplay: film.js starts it once it has read the motion setting, and where the script is late or blocked the reader gets the poster and the browser's own controls, never motion they did not ask for:
<figure class="film" data-loop="true" style="aspect-ratio: 1600 / 900" role="img" aria-label="Video: the dashboard filling in">
<video muted loop playsinline controls poster="/films/loop-poster.webp" width="1600" height="900">
<source src="/films/loop.mp4" type='video/mp4; codecs="avc1.640028"'>
<source src="/films/loop.webm" type='video/webm; codecs="vp9"'>
</video>
<button type="button" class="film-play" hidden>Pause</button>
</figure>
<script src="/film.js" defer></script>
.film { position: relative; margin: 0; }
.film img, .film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.film-play { position: absolute; left: 12px; bottom: 12px; min-width: 40px; min-height: 40px; }
.film figcaption { position: absolute; top: 100%; padding-top: 8px; }
@media (prefers-reduced-motion: reduce) { .film img, .film video { transition: none; } }
scripts/film.js is the player: it plays a data-loop="true" film muted when 35% is in view (a hero at once), pauses it out of view or in a hidden tab, keeps a Pause the reader pressed, swaps the poster for the video only on the first presented frame, and leaves the poster and Play under reduced motion or Save-Data. A film that does not loop waits for Play and rests on its last frame.
aspect-ratio and the file's own width and height, so mounting the film shifts nothing.controls only on a hero's tag, as the pause that works without the script; film.js takes them off when it shows its own Pause, which the hero's markup keeps hidden until then. No autoplay on any tag: the browser starts an autoplay video before any script can read reduced motion, and fetches it on load wherever it sits, so film.js decides when each film plays.requestVideoFrameCallback, else the first timeupdate), then the video fades in; fading on playing shows an empty box on slow lines.filter: brightness(0.65) contrast(1.2) on both the poster and the video.bash scripts/probe.sh public/films/film.mp4 1600x900 30 22.0 no 1.2
ffprobe -v trace public/films/film.mp4 2>&1 | grep -o "type:'\(moov\|mdat\)'" | head -2
ffprobe -v error -select_streams a -show_entries stream=index -of csv=p=0 public/films/film.webm
bash scripts/size-check.sh 3MB public/films/film.mp4 public/films/film.webm
probe.sh checks size, fps, length within a frame, no audio stream and that the final hold is still (the last 1.2 s within 45 dB). The trace must print moov before mdat (a fragmented MP4 has no readable index either). The audio probe must print nothing.
Then on the built page, in a headless browser at 390 and 1440 wide:
prefers-reduced-motion: reduce emulated, the poster and Play show and nothing plays; below the first screen no video byte is fetched.film.js served and blocked (route it to a 404), each with motion on and reduced: served with motion on, the hero plays and its Pause stops it; served and reduced, it rests on its poster with Play; blocked, it rests on its poster with the browser's own controls in both, and their play starts it.-movflags +faststart, then probe for moov before mdat.-an and probe the shipped file, not the encoder flags.preload="auto" fetched megabytes before anyone looked → preload="none" and play from script.autoplay on its tag looped for a reader who asked for reduced motion whenever the script failed → no autoplay; poster and controls on its tag, and the script starts it.aspect-ratio from the file's width and height.moov, mdat, hdlr, avcC) and the WebM header for its codec ids.See example.md for one film shipped and checked.
Based on heygen-com/hyperframes (Apache-2.0), rewritten by Copybook.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub heyvhuang/copybook-skills --plugin skills24 skills in this plugin
/add-pre-commit-checksUse when asked to add pre-commit hooks, set up Husky or lint-staged, stop bad commits, or run Prettier and type checks on commit. Sets up a pre-commit hook that formats staged files, type-checks with the project config, and runs related tests, proven by blocked and fast commits. Not for picking a test set for a change (run-affected-tests)./build-throwaway-prototypeUse when asked to prototype, spike, try an idea out quickly, sanity-check a state model or logic, or mock up what a UI should look like. Builds a throwaway prototype that answers one named design question from one command or one HTML file while leaving production code untouched. Not for building a finished production page (design-web-page)./Other plugins' skills for the same job