/armory:html-videofrom armory
Authors videos as HTML and CSS, then renders them to MP4 using a project-local Hyperframes CLI. Use for title sequences, side-by-side comparisons, diagram explainers, and captioned videos.
Ships in armory. 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.
Author a video as plain HTML and CSS, then render it with a pinned, project-local Hyperframes CLI. The bundled CSS-only templates use local assets after explicit bootstrap provisioning; authoring and static audit need no network. Rendering arbitrary project code is not an offline sandbox: enforce external network isolation when that guarantee is required. Deliver editable HTML, its statically reachable asset closure, provenance and licence records, the verification reports, and the MP4 together.
| Request | Fit |
|---|---|
| Titles, comparison, diagram walk-through or captions rendered to MP4 from HTML/CSS | Use a bundled template |
| Edit or re-render an existing Hyperframes composition | Audit it first, then run the workflow |
| React or Remotion component, Manim scene, existing-video analysis, plain web page | Not this skill |
No cloud rendering, avatar or model generation, publishing, or skill installation is part of this workflow. Do not read or invoke any other package from here.
SKILL_DIR is the absolute directory containing this file. The scripts need Python 3.12+ and only the standard library. Rendering needs Node (major in config.toml), FFmpeg with ffprobe, a Chrome or chrome-headless-shell executable, and a font file the user may redistribute. The Hyperframes version is pinned once, in config.toml; never state or override it elsewhere.
Never install system binaries yourself, never run Hyperframes through npx, and never use @latest. If a prerequisite is missing, stop and tell the user what to install.
python3 "$SKILL_DIR/scripts/html_video.py" --help
python3 "$SKILL_DIR/scripts/html_video.py" init --list
init TEMPLATE DEST copies title-sequence, comparison, diagram-explainer or captioned-sequence. All are 1920x1080, text-editable and animated by finite CSS keyframes.fonts add PROJECT --font-file F --family NAME --license-id ID --license-file L --source S copies it, records provenance, writes fonts.css in the project's assets directory, and updates compiler-visible inline @font-face declarations in index.html. Templates use the alias HV Text; no manual HTML edit is needed. --family is only the provenance name; the CSS family is --alias (default HV Text). Provision a second family, such as a monospace, with its own --alias "HV Code" on each of its faces and reference that alias in CSS, or it becomes another face of HV Text.bootstrap PROJECT --browser-path PATH pins an existing browser, or --download-browser runs the pinned CLI's own browser ensure. The package manager comes from the project lockfile (npm for a fresh project). The lock .html-video/environment.json records tool paths and actual versions, including the browser's own --version. Afterwards doctor PROJECT re-verifies offline.data-start / data-duration values; see the contract below. Keep the root data-duration equal to the last clip end.audit PROJECT rejects remote render-critical resources, path and symlink escapes, missing files, case mismatches, cycles, undeclared fonts and invalid timing. Fix every error.run lint PROJECT, then run check PROJECT, then run snapshot PROJECT. Read the coverage table below, then open every .html-video/snapshots/contact-sheet*.jpg page and judge the frames yourself: layout, legibility, and motion at the sampled boundaries.run render PROJECT uses the FPS from config.toml, renders with strict, non-best-effort, software-browser capture and one worker, removes any previous output first, and checks the MP4 against the composition. Override FPS only by passing the same --fps N to all four run commands.deliver PROJECT --out DIR requires passing reports for the same source, verified toolchain, config and effective FPS, verifies every recorded artifact, re-audits copied source/ with provenance required, and writes RENDER.json plus reports/. Pass --fps N here too after an FPS override. Any failed rerun invalidates its prior report.plan PROJECT prints the frame-aligned boundary times used for check and snapshots.
data-composition-id, data-start="0", integer data-width/data-height, a finite positive data-duration, and data-no-timeline when no timeline is registered.id, data-start (a number, or otherId [+/- seconds]) and data-duration. Paint order is CSS z-index, not track index.animation-fill-mode: both. The runtime seeks them to the clip-local time t - data-start. SVG child elements are not seeked, CSS transitions are not seeked, and infinite iteration is rejected.caption-cue on one track. A zero-height absolutely positioned box can stretch; give shapes real dimensions or use clip-path.run check passes --at boundary times and then enforces these report fields. A pass without them proves nothing.
| Field | Required | Meaning |
|---|---|---|
browserSkipped | false | Browser-backed layout, motion and contrast ran |
layout.samples | every requested time | Boundaries were really sampled |
motion.enabled, motion.samples | true, > 0 when animated | Needs the index.motion.json sidecar |
contrast.checked | > 0 when text exists | Absent text means no contrast proof |
_meta.version | the pinned version | The pinned CLI produced the report |
--at-transitions reads GSAP timelines only, so CSS-animated compositions rely on the explicit plan times.
snapshot --describe (the vision key is scrubbed and --describe false is passed), and compile-time Google Fonts resolution (used named families require compiler-visible inline local @font-face). Known unmapped-font or Google Fonts compiler logs fail the run rather than silently falling back.HYPERFRAMES_BROWSER_PATH and PRODUCER_HEADLESS_SHELL_PATH, so a render cannot silently select or download another build. A failed --version or changed version aborts the run.| Symptom | Cause | Fix |
|---|---|---|
font_not_declared | A named family has no local @font-face | Run fonts add; never let the compiler fetch it |
font_face_not_inline, font_dynamic, font_face_local_source | Linked-only, scoped-variable or system-dependent font resolution | Run fonts add; use a literal provisioned family and inline local font faces, never local() |
remote_resource, path_escape, symlink_escape | Resource not inside the project | Copy the file into the project and reference it relatively |
motion_spec_missing or motion_unproven | Animated, no motion sidecar | Add assertions to index.motion.json |
contrast_unproven | Text present but no pair checked | Re-run check at times where text is visible |
report_stale, report_*_mismatch at deliver | Source, toolchain, config or FPS changed after verification | Re-run all four steps with one matching context; re-bootstrap only when intentionally changing the toolchain |
not installed, changed since bootstrap | Toolchain differs from the lock | Re-run bootstrap; do not fall back to npx |
render_mismatch | MP4 size, rate or length differs | Fix data-duration/dimensions and re-render |
Report: the delivery directory, the MP4 path, the RENDER.json environment summary (versions, fps, duration), the check coverage numbers you read, which frames you inspected and what you judged, every warning left open, and the font and asset licences declared by the user.
references/composition-contract.md for the verified runtime seek contract and authoring rulesreferences/fonts-and-assets.md for font provisioning, provenance schema and what the audit provesreferences/verification.md for command flags, coverage fields and the reproducibility recordNOTICE.md for attribution and termsCHANGELOG.md (opens in a new tab)NOTICE.md (opens in a new tab)config.toml (opens in a new tab)evals/cases.yaml (opens in a new tab)pyrightconfig.json (opens in a new tab)references/composition-contract.md (opens in a new tab)references/fonts-and-assets.md (opens in a new tab)references/verification.md (opens in a new tab)scripts/html_video.py (opens in a new tab)scripts/hv_audit.py (opens in a new tab)scripts/hv_config.py (opens in a new tab)scripts/hv_deliver.py (opens in a new tab)scripts/hv_env.py (opens in a new tab)scripts/hv_fonts.py (opens in a new tab)scripts/hv_provenance.py (opens in a new tab)scripts/hv_run.py (opens in a new tab)scripts/hv_scan.py (opens in a new tab)templates/captioned-sequence/PROVENANCE.json (opens in a new tab)templates/captioned-sequence/assets/fonts.css (opens in a new tab)templates/captioned-sequence/index.html (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
html-video, hyperframes, mp4-rendering, css-animation, video-production
npx claudepluginhub mathews-tom/armory --plugin armory94 skills in this plugin
/adr-writerGenerates Architecture Decision Records capturing context, rationale, alternatives, and consequences in numbered status-tracked format. Triggers on: "write an ADR", "document this decision", "architecture decision record", "decision record", "design decision", "ADR for"./agent-builderBuild AI agents and automate Claude Code programmatically via the Claude Agent SDK and headless CLI mode. Covers Python SDK, claude -p, SDK MCP servers, hooks, sessions. Triggers on: "build an agent", "agent SDK", "headless mode", "automate Claude", "programmatic agent"./animateCreate Manim (Python) animated explainers: algorithm step-throughs, math and equation walkthroughs, pipeline and data-flow diagrams, comparisons and timelines, rendered to MP4, WebM or GIF with optional audio overlay. Includes a template path that renders validated config data with no model call, plus output checks (ffprobe duration, fps, dimensions, full decode, sampled-frame review receipt). Use when asked to "create a video", "animate this", "make an explainer", "manim animation", "animate this algorithm", or "motion graphic". NOT for HTML/CSS/GSAP or Hyperframes video, NOT for React or Remotion video, and NOT for a launch or promo video of the user's own project, use launch-video.Other plugins' skills for the same job