cliphouse-render
Installation
SKILL.md
cliphou.se local render
This skill turns a filled cliphou.se template into an MP4 in the user's project. Use the cliphouse skill first to pick and fill the template. It writes cliphouse/<id>.props.json.
Helper: node <skill-dir>/scripts/fetch.mjs <id>. <skill-dir> is the directory that contains this file. The helper downloads the template's source package from https://cliphou.se/source/, checks it against source.packageSha256 from the spec, and extracts it into .cliphouse/<id>/. It does not install or run anything.
Workflow
- Ask first. Tell the user that you will download the template source into
.cliphouse/<id>/and install its dependencies there (Remotion or HyperFrames, about 200 MB, plus a headless browser on the first render). Continue only after the user agrees. - Ignore the folder. If
.gitignoreexists and does not contain.cliphouse/, ask the user if you can add it. Add the line only when they agree. - Fetch and check. Run
node <skill-dir>/scripts/fetch.mjs <id>in the project root. It stops with an error if the checksum does not match. Do not extract the package another way. - Copy the props. The output names
propsFile.- Remotion: copy
cliphouse/<id>.props.jsonto.cliphouse/<id>/props.json. - HyperFrames: in
.cliphouse/<id>/variables.json, settext_<role>for each text,theme_<role>for each color, andhide_<role>for each hidden role.
- Remotion: copy
- Render. In
.cliphouse/<id>/, run only the command for theengineandmusicvalues from the output: