pn-html-to-video

pn-html-to-video is a skill for Cursor from perniemann/pnCore. It costs 118 tokens per session (2,176 once invoked), scanned A, original, MIT.

A way to render authored HTML, CSS, and JavaScript animations as repeatable video files. It connects webpage animation tools to browser capture and video encoding.

In plain words
What is it for?
Use it for product demos, changelog videos, social-media versions, chart explainers, and caption-synced compositions.
Why use it?
It removes manual screen recording and makes identical input produce the same output. This is useful when you need accurate timing or many video variations.

Skill for Cursor

Written for Cursor: shipped in a Cursor plugin.

Part of the pn-core plugin — 133 skills, 19 commands, 9 agents, 1 MCP server shipped together

Good fit Use it for product demos, changelog videos, social-media versions, chart explainers, and caption-synced compositions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/perniemann/pncore/pn-html-to-video
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add perniemann/pnCore --skill pn-html-to-video
Clone the repo
git clone --depth 1 https://github.com/perniemann/pnCore

Made for: Cursor.

Or install pn-core, the plugin that ships this one along with the rest of its 133 skills, 19 commands, 9 agents, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pn-html-to-video

README.md
[![agentmods](https://agentmods.dev/badge/skills/perniemann/pncore/pn-html-to-video/github.svg)](https://agentmods.dev/skills/perniemann/pncore/pn-html-to-video)
Your own site
<a href="https://agentmods.dev/skills/perniemann/pncore/pn-html-to-video"><img src="https://agentmods.dev/badge/skills/perniemann/pncore/pn-html-to-video/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pn-html-to-video

Your own site · 80×15
<a href="https://agentmods.dev/skills/perniemann/pncore/pn-html-to-video"><img src="https://agentmods.dev/badge/skills/perniemann/pncore/pn-html-to-video.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 118 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,176 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00118 $0.02176
Opus 5 $0.00059 $0.01088
Sonnet 5 $0.00024 $0.00435
Haiku 4.5 $0.00012 $0.00218

Measured 7d ago against content hash 6ff94b2cf13f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

pn-html-to-video scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/pn-core-mcp/content/skills/media/pn-html-to-video/SKILL.md · 158 lines

How it starts

The opening of the file, as written. The whole thing — 158 lines — stays where its author put it; the contents beside it link to each section on GitHub.

HTML-to-video (programmatic video)

When to use

  • Repeatable marketing cuts, plugin demos, changelog videos, social variants where same input = identical output is a requirement.
  • Data-driven explainers: chart races, annotated screen recordings, caption-synced narration.
  • You own the visual — it is an HTML/CSS/JS layout you authored, not a model-generated scene.
  • Animation runtime is already GSAP, Lottie, CSS, or Three.js and you want to record it frame-accurately.

Use pn-generative-video-pipelines instead when the scene must be invented by a model (characters, environments, stylized footage) and some frame-to-frame variation is acceptable.

Stack comparison

Tool Model Key fit Requires
Hyperframes (heygen-com/hyperframes) HTML + data-* attributes, Puppeteer+FFmpeg, Frame Adapters Agents, non-interactive CLI, catalog blocks, GSAP/Lottie/Three.js Node ≥22, FFmpeg
Remotion React components as frames, <Video>, <Audio>, <Sequence> React-native teams, programmatic lambda render Node, ffmpeg
Motion Canvas TypeScript scene graph, imperative animation primitives Precise mathematical animation, explainer-style graphics Node, ffmpeg

Choose Hyperframes when the agent is authoring compositions autonomously (non-interactive CLI, catalog hyperframes add), or when the composition is HTML-first. Choose Remotion when the codebase is already React and the team prefers component-based composition. Choose Motion Canvas when the animation is diagram- or explainer-heavy with precise timing control.

HTML composition contract

All three tools share a similar concept: a stage with timed clips. The canonical attributes (illustrated via Hyperframes) are:

<!-- Stage declares composition identity and dimensions -->
<div id="stage"
     data-composition-id="my-video"
     data-start="0"
     data-width="1920"
     data-height="1080">

  <!-- Video clip on track 0 -->
  <video
    id="clip-1"
    data-start="0"
    data-duration="5"
    data-track-index="0"
    src="intro.mp4"
    muted playsinline>
  </video>

  <!-- Image overlay on track 1, appears at 2s -->
  <img
    id="overlay"
    class="clip"
    data-start="2"
    data-duration="3"
    data-track-index="1"
    src="logo.png">

  <!-- Audio bed on track 2 at 50% volume -->
  <audio
    id="bg-music"
    data-start="0"
    data-duration="9"
    data-track-index="2"
    data-volume="0.5"
    src="music.wav">
  </audio>
</div>

Read the full file on GitHub · 158 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 158 lines · 118 tokens per session scan A 6ff94b2cf13f

Subscribe to this mod's changes

pn-html-to-video is a skill published in the GitHub repository perniemann/pnCore (0 stars, last pushed 4d ago), licensed MIT. It adds 118 tokens to every session and 2,176 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

typescript

TypeScript coding conventions, best practices, and patterns for writing clean, maintainable code.

genkit-ai/genkit · 20 tokens

ax-java-audio

Use when writing Java code with dev.axllm:ax for audio input/output, OpenAI Responses audio mapping, realtime event folding, and generated package audio examples.

ax-llm/ax · 40 tokens

generate-images-with-firebase-ai

Use when generating or editing images from Flutter/Dart with Firebase AI Logic and a Gemini image model (Nano Banana), making the first call work, choosing Gemini Developer API vs Vertex AI, hitting quota, billing or App Check failures, getting empty or image-only responses, sending a user photo as input, controlling…

evanca/flutter-ai-rules · 84 tokens

slides

Create and edit presentation decks as single self-contained HTML files with a live, editable preview and print-to-PDF export. Use when the user wants slides, a deck, or a presentation.

decocms/studio · 40 tokens

invokeai-image-gen

Generate images using InvokeAI's local API. Use when asked to generate, create, or make images with InvokeAI, FLUX.2 Klein, Z-Image Turbo, FLUX, or SDXL models. Supports text-to-image generation, automatic model detection, image download, and parameter selection based on model architecture.

sammcj/agentic-coding · 69 tokens

storytelling-with-data

Apply storytelling principles to create, review, and improve data visualisations and data-driven communications. Use when the message or story of a data communication (chart, dashboard, infographic, data-driven deck or report) needs structuring or review, or when structuring narrative arcs, hooks, or aha moments in…

sammcj/agentic-coding · 69 tokens