refactor(skills): restructure product-launch-video into references + sub-agents#1597
Open
WaterrrForever wants to merge 2 commits into
Open
refactor(skills): restructure product-launch-video into references + sub-agents#1597WaterrrForever wants to merge 2 commits into
WaterrrForever wants to merge 2 commits into
Conversation
…-video Collapse the phase/style-preset-heavy product-launch-video skill into a leaner product-lunch-video layout (references + scripts + sub-agents), and extend the hyperframes core/creative/media skills with new format and preset references. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…unch-video Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
| rmSync(td, { recursive: true, force: true }); | ||
| } catch {} | ||
| return r; | ||
| writeFileSync(storyboardPath, lines.join("\n")); |
| : { bgm: null, voices: [], sfx: [] }; | ||
| meta.sfx = sfx; | ||
| mkdirSync(dirname(audioMetaPath), { recursive: true }); | ||
| writeFileSync(audioMetaPath, JSON.stringify(meta, null, 2)); |
| mkdirSync(dirname(outPath), { recursive: true }); | ||
| writeFileSync(outPath, html); | ||
| // ── write caption-overrides.json shim ── | ||
| if (!existsSync(overridesPath)) writeFileSync(overridesPath, "[]\n"); |
| function transcodeToWav(mp3Bytes, destWav, die) { | ||
| const td = mkdtempSync(join(tmpdir(), "pl-audio-")); | ||
| const tmp = join(td, "a.mp3"); | ||
| writeFileSync(tmp, mp3Bytes); |
| if (!res.ok) throw new Error(`download HTTP ${res.status}: ${String(url).slice(0, 80)}`); | ||
| const bytes = Buffer.from(await res.arrayBuffer()); | ||
| mkdirSync(dirname(destPath), { recursive: true }); | ||
| writeFileSync(destPath, bytes); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Restructure the
product-launch-videoskill from a phase/style-preset-heavylayout into a leaner one (
references/+scripts/+sub-agents/), and extendthe shared
hyperframes-core/-creative/-mediaskills with the formats andpresets the new layout depends on.
Net: 349 files, +3,721 / −41,964 — mostly deleting the old
phases/,agents/,bundled SFX assets, and oversized scripts.
Why
The old skill carried a large, drift-prone surface: per-phase guides, design/motion
rules duplicated between the skill and the shared references, ~20 bundled SFX files,
and multi-thousand-line scripts (validate/verify/prep/hoist). Consolidating the
rules into shared references + a single frame-worker sub-agent removes the
duplication and shrinks the skill to what the orchestrator actually needs.
How
product-launch-videoskillphases/+agents/withreferences/(composition, motion-language,story-design, visual-design) and
sub-agents/frame-worker.md.helpers); drop validate/verify/prep/hoist and the bundled
assets/sfx/.Shared skills
hyperframes-core: addreferences/script-format.md+storyboard-format.md.hyperframes-creative: addreferences/design-spec.mdandframe-presets/(blockframe, capsule) with showcase HTML.
hyperframes-media: extend the bgm/sfx references.hyperframes/general-video: update routing copy.CLI
contentExtractor.ts: surface downloaded video clips first, tagged[video],sourced from
video-manifest.json— hero motion clips are the strongest productmaterial and downstream planners key off the
[video]marker.Test plan
bun run buildnpx hyperframes lint/npx hyperframes validateon a sample composition/product-launch-videoend-to-end on a sample product URL