dsh-ios / demo-video
AGENTS.md467 starsChanged 2 months agoMITView on GitHub
Always invoke the relevant skill before writing or modifying compositions. Skills encode framework-specific patterns (e.g., window.__timelines registration, data-* attribute semantics, shader-compatible CSS rules) that are NOT in generic web docs. Skipping them produces broken compositions. Doing anything with HyperFrames? Start at /hyperframes — it tells you what HyperFrames can do and which skill or workflow handles your intent (make a video, TTS / BGM, prep footage, author / animate, render, install blocks), confirms your brief up front (the intent layer),…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,337 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repositoryOne other file it gives its agents.
- demo-video/CLAUDE.mdCLAUDE.md
The file
We split this AGENTS.md into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 81
After creating or editing any .html composition, always run the full check before considering the task complete:
- Very specific: line 91
Every timed element needs data-start, data-duration, and data-track-index
- Very specific: line 100
Only deterministic logic — no Date.now(), no Math.random(), no network fetches
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
HyperFrames Composition Project
Skills — USE THESE FIRST
Always invoke the relevant skill before writing or modifying compositions. Skills encode framework-specific patterns (e.g., window.__timelines registration, data-* attribute semantics, shader-compatible CSS rules) that are NOT in generic web docs. Skipping them produces broken compositions.
Doing anything with HyperFrames? Start at /hyperframes — it tells you what HyperFrames can do and which skill or workflow handles your intent (make a video, TTS / BGM, prep footage, author / animate, render, install blocks), confirms your brief up front (the intent layer), and routes every "make me a…" request (a video, a deck, a composition port) to the right workflow. Read it first, especially when there's no project context to orient you. The workflows it routes to:
/product-launch-video— any website URL or brief / script → a product launch / SaaS / promo video, or a site tour / showcase featuring the site's own captured visuals./faceless-explainer— arbitrary text (topic / article / notes), no URL, no website capture → 60-90s faceless explainer./embedded-captions— an existing talking-head video (MP4) → the same footage with captions / subtitles added (rail + embed, or pure-cinematic embed); the footage itself is untouched./talking-head-recut— an existing talking-head / interview / podcast video (MP4) → the same footage packaged with designed graphic overlays (kinetic titles, lower-thirds, data callouts, pull-quotes, side panels, pip) synced to the transcript; the clip plays unchanged underneath. (Plain captions/subtitles →/embedded-captions.)/pr-to-video— a GitHub PR (URL /owner/repo#N/ "this PR") → 30-90s code-change explainer (changelog / feature reveal / fix / refactor)./motion-graphics— a short (typically under 10s) design-led motion graphic, motion-is-the-message, no narration: kinetic type, a stat / number count-up, a chart, a logo sting, a lower-third / overlay, or an animated tweet / headline / captured-page highlight; rendered to MP4 or a transparent overlay. Longer / narrated / custom →/general-video./music-to-video— a music track (audio file, video to pull audio from, or one generated from a mood brief) → beat-synced video (lyric / slideshow / kinetic promo). Music drives pacing; user-supplied images / videos are cut onto the same beat grid./slideshow— a presentation / pitch deck / interactive deck — discrete slides, fragment reveals, branching, hotspot navigation, presenter mode. Output is a navigable deck, not a rendered video./general-video— fallback for any other video (title card, longer brand / sizzle reel, multi-scene montage, static loop, custom composition) and the home of companion mode — co-create with the full HyperFrames toolbox; the original hyperframes authoring flow, any length.
Porting an existing composition? /remotion-to-hyperframes translates a Remotion (React) composition into HyperFrames HTML — a source migration, separate from the creation workflows above.
The domain skills (/hyperframes-core, /hyperframes-animation, /hyperframes-keyframes, /hyperframes-creative, /hyperframes-cli, /media-use, /hyperframes-audio, /hyperframes-registry, /figma) and the full capability map live inside /hyperframes — it is the single source of truth for which skill handles which intent.
Changing how real footage or images look or reveal? Load /media-use and read its references/media-treatments.md before editing, even when the request only says dark, flat, boring, retro, private, or “make the reveal cooler.” It governs how footage is treated, never whether media may be used. Use canonical media treatments and seek-safe motion; do not improvise equivalent CSS/SVG filters or overlays.
Tailwind v4 projects (
hyperframes init --tailwind): see/hyperframes-core→references/tailwind.md.
Skill missing or stale? Run
npx hyperframes skills update <name>to install/refresh the specific skill you need (the/hyperframesrouter does this automatically before entering a workflow), or barenpx hyperframes skills updateto refresh the core set plus everything already installed — neither pulls the full set. Restart the agent session so newly installed skills load.
Commands
npm run dev # human-operated foreground preview (blocks until stopped)
npx hyperframes preview --background # agent-safe persistent Studio preview
npx hyperframes preview --status # verify the persistent preview is listening
npx hyperframes preview --stop # stop it when review is finished
npm run check # lint + runtime + layout + motion + contrast (one command)
npm run render # render to MP4
npm run publish # publish and get a shareable link
npx hyperframes lint --verbose # include info-level findings
npx hyperframes lint --json # machine-readable output for CI
npx hyperframes docs <topic> # reference docs in terminalAgents must use
npx hyperframes preview --backgroundfor Studio handoff. Do not rely on a shell/toolrun_in_backgroundwrapper aroundnpm run dev: that foreground process remains owned by the invoking session and can disappear while the browser stays open, leaving refreshes atERR_CONNECTION_TIMED_OUT. Verify withpreview --status, keep it alive through review, and stop it explicitly withpreview --stopafterward.
Pinned CLI version. These scripts pin an exact
hyperframes@X.Y.Zso this project re-renders identically over time. Weeks later that pin lags fixes shipped since. To move up:npx hyperframes@latest upgrade --project . --check(shows the delta), thennpx hyperframes@latest upgrade --project .to rewrite the pins. Always unpinned — the pinned script re-runs the old version against itself.
Documentation
For quick reference, use the local CLI docs command (no network required):
npx hyperframes docs <topic>Topics: data-attributes, gsap, compositions, rendering, examples, troubleshooting
For full documentation, discover pages via the machine-readable index — do NOT guess URLs:
https://hyperframes.heygen.com/llms.txtProject Structure
index.html— main composition (root timeline)compositions/— sub-compositions referenced viadata-composition-srcmeta.json— project metadata (id, name)transcript.json— whisper word-level transcript (if generated)
Linting — ALWAYS RUN AFTER CHANGES
After creating or editing any .html composition, always run the full check before considering the task complete:
npm run checkFix all errors before presenting the result. Warnings should be reviewed before rendering.
Key Rules
- Every timed element needs
data-start,data-duration, anddata-track-index - Elements with timing MUST have
class="clip"— the framework uses this for visibility control - Timelines must be paused and registered on
window.__timelines:window.__timelines = window.__timelines || {}; window.__timelines["composition-id"] = gsap.timeline({ paused: true }); - Videos use
mutedwith a separate<audio>element for the audio track - Sub-compositions use
data-composition-src="compositions/file.html"to reference other HTML files - Only deterministic logic — no
Date.now(), noMath.random(), no network fetches
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

