From 75ff751ba640575670eedb3308f3a208f79fa4a9 Mon Sep 17 00:00:00 2001 From: Haitao Pan Date: Mon, 18 May 2026 12:27:36 +0800 Subject: [PATCH] Add IT infrastructure video skills --- README.md | 8 + .../.template-lock.json | 7 + example/it-infra-evolution-video/AGENTS.md | 62 +++ example/it-infra-evolution-video/CLAUDE.md | 85 ++++ example/it-infra-evolution-video/DESIGN.md | 25 + example/it-infra-evolution-video/VERSION.md | 5 + .../it-infra-evolution-video/assets/README.md | 11 + .../assets/audio/README.md | 14 + .../assets/images/manifest.md | 7 + .../it-infra-evolution-video/hyperframes.json | 9 + example/it-infra-evolution-video/index.html | 434 +++++++++++++++++ example/it-infra-evolution-video/meta.json | 5 + example/it-infra-evolution-video/package.json | 11 + .../renders/README.md | 3 + .../scripts/render_audio_bed.py | 65 +++ .../snapshots/README.md | 3 + skills/it-infra-continuous-png/SKILL.md | 89 ++++ .../agents/openai.yaml | 6 + .../references/prompt-patterns.md | 74 +++ .../references/style-spec.md | 89 ++++ .../templates/manifest.template.md | 15 + .../templates/series.config.example.json | 38 ++ skills/it-infra-evolution-video/SKILL.md | 180 +++++++ skills/it-infra-evolution-video/VERSION.md | 5 + .../agents/openai.yaml | 3 + .../hyperframes-it-infra-template.md | 89 ++++ .../references/storyboard-pattern.md | 57 +++ .../scripts/render_audio_bed.py | 76 +++ .../templates/index.html | 438 ++++++++++++++++++ .../templates/video.config.example.json | 26 ++ 30 files changed, 1939 insertions(+) create mode 100644 example/it-infra-evolution-video/.template-lock.json create mode 100644 example/it-infra-evolution-video/AGENTS.md create mode 100644 example/it-infra-evolution-video/CLAUDE.md create mode 100644 example/it-infra-evolution-video/DESIGN.md create mode 100644 example/it-infra-evolution-video/VERSION.md create mode 100644 example/it-infra-evolution-video/assets/README.md create mode 100644 example/it-infra-evolution-video/assets/audio/README.md create mode 100644 example/it-infra-evolution-video/assets/images/manifest.md create mode 100644 example/it-infra-evolution-video/hyperframes.json create mode 100644 example/it-infra-evolution-video/index.html create mode 100644 example/it-infra-evolution-video/meta.json create mode 100644 example/it-infra-evolution-video/package.json create mode 100644 example/it-infra-evolution-video/renders/README.md create mode 100644 example/it-infra-evolution-video/scripts/render_audio_bed.py create mode 100644 example/it-infra-evolution-video/snapshots/README.md create mode 100644 skills/it-infra-continuous-png/SKILL.md create mode 100644 skills/it-infra-continuous-png/agents/openai.yaml create mode 100644 skills/it-infra-continuous-png/references/prompt-patterns.md create mode 100644 skills/it-infra-continuous-png/references/style-spec.md create mode 100644 skills/it-infra-continuous-png/templates/manifest.template.md create mode 100644 skills/it-infra-continuous-png/templates/series.config.example.json create mode 100644 skills/it-infra-evolution-video/SKILL.md create mode 100644 skills/it-infra-evolution-video/VERSION.md create mode 100644 skills/it-infra-evolution-video/agents/openai.yaml create mode 100644 skills/it-infra-evolution-video/references/hyperframes-it-infra-template.md create mode 100644 skills/it-infra-evolution-video/references/storyboard-pattern.md create mode 100755 skills/it-infra-evolution-video/scripts/render_audio_bed.py create mode 100644 skills/it-infra-evolution-video/templates/index.html create mode 100644 skills/it-infra-evolution-video/templates/video.config.example.json diff --git a/README.md b/README.md index 7d8d06c..1a14bee 100644 --- a/README.md +++ b/README.md @@ -14,10 +14,18 @@ | Skill | 说明 | 路径 | |---|---|---| | AI 信息差快报 | 新闻检索、素材匹配、口播字幕、视频渲染 | `skills/ai-tech-news-video/SKILL.md` | +| IT 基础设施连续 PNG | 根据描述或参考图生成 1-N 张连续风格竖版 PNG 素材 | `skills/it-infra-continuous-png/SKILL.md` | +| IT 基础设施长图讲解视频 | 基于长图素材生成 HyperFrames 讲解视频、口播、字幕和 timeline | `skills/it-infra-evolution-video/SKILL.md` | | 产品介绍视频 | 官网信息提炼、叙事结构、成片节奏 | `skills/product-intro-video/SKILL.md` | | 视频音效工作流 | 音效搜索、下载与合成、时间线接入 | `skills/sound-fx-for-video/SKILL.md` | | 简笔画动画视频 | 线稿风动画、动作叙事、抽检闭环 | `skills/sketch-animation-video/SKILL.md` | +## Examples + +| Example | 说明 | 路径 | +|---|---|---| +| IT 基础设施演进视频模板 v1 | 轻量 HyperFrames 工程模板,只包含 HTML、配置、脚本与占位说明,不包含图片、音频、快照或渲染产物 | `example/it-infra-evolution-video/` | + ## 预览 ### ai-tech-news-video diff --git a/example/it-infra-evolution-video/.template-lock.json b/example/it-infra-evolution-video/.template-lock.json new file mode 100644 index 0000000..f8d6cb2 --- /dev/null +++ b/example/it-infra-evolution-video/.template-lock.json @@ -0,0 +1,7 @@ +{ + "name": "it-infra-evolution-video", + "version": "v1", + "status": "read-only", + "role": "frozen-project-template", + "note": "Copy this directory for v2 or experiments. Do not edit v1 in place." +} diff --git a/example/it-infra-evolution-video/AGENTS.md b/example/it-infra-evolution-video/AGENTS.md new file mode 100644 index 0000000..6876b63 --- /dev/null +++ b/example/it-infra-evolution-video/AGENTS.md @@ -0,0 +1,62 @@ +# HyperFrames Composition Project + +## Skills + +This project uses AI agent skills for framework-specific patterns. Install them if not already present: + +```bash +npx skills add heygen-com/hyperframes +``` + +Skills encode patterns like `window.__timelines` registration, `data-*` attribute semantics, Tailwind v4 browser-runtime styling for `--tailwind` projects, and shader-compatible CSS rules that are not in generic web docs. Using them produces correct compositions from the start. + +## Commands + +```bash +npm run dev # start the preview server (long-running — keep it alive in background) +npm run check # lint + validate + inspect +npm run render # render to MP4 +npm run publish # publish and get a shareable link +npx hyperframes docs # reference docs in terminal +``` + +> **`npm run dev` is a long-running server, not a one-shot command.** It blocks until stopped. +> Always run it as a background process so it stays alive while you edit compositions. +> Running it in the foreground will time out and kill the server, breaking the browser preview. + +## Project Structure + +- `index.html` — main composition (root timeline) +- `compositions/` — sub-compositions referenced via `data-composition-src` +- `assets/` — media files (video, audio, images) +- `meta.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, run the full check before considering the task complete: + +```bash +npm run check +``` + +Fix all errors before presenting the result. + +## Key Rules + +1. Every timed element needs `data-start`, `data-duration`, and `data-track-index` +2. Visible timed elements **must** have `class="clip"` — the framework uses this for visibility control +3. GSAP timelines must be paused and registered on `window.__timelines`: + ```js + window.__timelines = window.__timelines || {}; + window.__timelines["composition-id"] = gsap.timeline({ paused: true }); + ``` +4. Videos use `muted` with a separate `