本文へ移動
cccskills
無料GitHub で公開

mk-html-video

Render an HTML/CSS/JS template to local MP4 via headless Chromium (Playwright) + ffmpeg. NOT live browser recording, screen recording, or AI video gen (mk:multimodal).

インストール方法を見る

含まれるファイル(6)

  • SKILL.md2.1 KB
  • references/html-template-contract.md791 B
  • references/render-workflow.md1.3 KB
  • references/troubleshooting.md1.0 KB
  • scripts/capture-frames.mjs1.7 KB
  • scripts/render-html-to-mp4.sh622 B

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

HTML → MP4 Render Pipeline

Render a local HTML/CSS/JS animation to MP4 with Playwright frame capture and ffmpeg encoding.

Route by Intent

  • Check dependencies or choose dimensions/fps: load render workflow.
  • Implement deterministic JavaScript, canvas, WebGL, or GSAP animation stepping: load template contract.
  • Capture frames directly: execute node .agents/skills/html-video/scripts/capture-frames.mjs <html-file> <frame-dir> <fps> <duration-seconds> <width> <height> [background-color].
  • Render a complete MP4: execute bash .agents/skills/html-video/scripts/render-html-to-mp4.sh <html-file> <output.mp4> [fps] [duration-seconds] [width] [height] [background-color].
  • Resolve module, file://, codec, cleanup, or dimension failures: load troubleshooting.

Quick Start

bash .agents/skills/html-video/scripts/render-html-to-mp4.sh template.html output.mp4 30 5 1920 1080

The final optional argument supplies a background colour. The script captures fps × duration PNG frames, encodes H.264 MP4 with yuv420p, cleans its temporary frame directory, and prints the output path.

Delivery

  1. Verify ffmpeg and Playwright before rendering; install Chromium only when missing and only with user approval.
  2. Use an even viewport width and height.
  3. Prefer a window.onFrame hook for fast deterministic animation; otherwise capture runs at real time.
  4. Verify the MP4 with the ffprobe command in render workflow.

Gotchas

  • This is a skill, not an npm package: execute its bundled scripts directly.
  • Do not use it for live browser recording, screen recording, or AI video generation.
  • See troubleshooting for cleanup and file-origin limitations.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Use this skill to generate well-branded interfaces and assets for MeowKit (AI Agent Toolkit for Claude Code), either for production or throwaway prototypes/mocks/etc. Contains essential design guidelines, colors, type, fonts, assets, and UI kit components for prototyping.

日本語の概要は準備中です。原文の説明を表示しています。

ngocsangyem/MeowKit152026年7月28日 更新

mk-advise

無料

Turn a raw idea into ONE honest recommendation: interview one question at a time until confirmed, then give a verdict with trade-offs and a checklist. Not for options or debate.

日本語の概要は準備中です。原文の説明を表示しています。

ngocsangyem/MeowKit152026年7月28日 更新

Browser automation CLI for agents: navigate, click/fill, screenshot, extract data, test apps, Electron/Slack, cloud browsers. NOT for the user's real Chrome profile/cookies (mk:chrome-profile).

日本語の概要は準備中です。原文の説明を表示しています。

ngocsangyem/MeowKit152026年7月28日 更新

Detects the right agent and complexity tier at Phase 0 orient; runs first in every workflow. NOT for runtime agent routing inside a single skill.

日本語の概要は準備中です。原文の説明を表示しています。

ngocsangyem/MeowKit152026年7月28日 更新

Angular v20+ patterns: components, signals, services, forms, routing, HTTP, testing, SSR. Auto-activates on .ts files in Angular projects (angular.json detected).

日本語の概要は準備中です。原文の説明を表示しています。

ngocsangyem/MeowKit152026年7月28日 更新

Design and review durable REST, GraphQL, RPC, or event API contracts: shape, compatibility, pagination, error semantics. Discovers existing consumers first. Not implementation, schema, or release.

日本語の概要は準備中です。原文の説明を表示しています。

ngocsangyem/MeowKit152026年7月28日 更新

ngocsangyem のスキルをすべて見る

このスキルの問題を報告する