| name | generate-short | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| description | Build a full short from brief to reviewed MP4 while keeping script, audio, visuals, captions, and validation aligned as one edit. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| allowedTools |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
| model | inherit | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| argumentHint | {"topic":"Redis vs PostgreSQL for caching","archetype":"versus","outputDir":"output/content-machine/generate-short","render":{"fps":30,"downloadAssets":true},"publishPrep":{"enabled":true,"platform":"tiktok"}} | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| entrypoint | node --import tsx scripts/harness/generate-short.ts | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| inputs |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
| outputs |
|
- The user wants the default skills-first path from topic to video files in one call.
- Claude Code or Codex should hand back the full file set instead of manually coordinating each stage itself.
- A reference winner should be ingested first so script generation can inherit blueprint and archetype hints.
- The run should use the pack's built-in audio, captions, visuals, Remotion render, and publish review steps.
- Reference shorts are for
reverse-engineer-winnerstyle analysis. Do not feed already-captioned published shorts back in as raw visuals or gameplay.
- Brief-to-script fit for short-form pacing.
- Audio and timestamp generation that the caption system can actually use.
- Visual planning that respects caption space instead of fighting it.
- Overall editorial judgment from
short-form-production-playbook. - Caption-treatment choice through
short-form-captions. - Final render and review gating.
- Optional hook packaging, virality review, retention pass, platform packaging, and metrics feedback as agent-facing quality layers around the runtime path.
- Start with the brief, not the render flags.
- Use
hook-packagingbefore scripting when the title, cover, opening frame, or platform promise matters. - Pick
laneIdseparately fromarchetypewhen the brief implies a visual/editing lane.archetypeis the script shape;laneIdis the video format. - Generate a script with enough punch to support chunked reading.
- Generate audio and timestamps cleanly enough that captions will not be forced to compensate.
- Build visuals that leave caption room and avoid baked-in source text.
- Choose the caption family before render.
- Use
short-form-production-playbookwhen you need hook, pacing, visual-assembly, or rejection guidance instead of only stage execution. - Use
virality-reviewandretention-passbefore final approval when the hook, retention, or payoff is a risk. - Render.
- Use
platform-packagingfor platform-specific metadata and upload checklist work. - Review. Reject bad outputs instead of rebranding them as acceptable.
- Repo-side runner when you want the package to execute the path
directly:
node --import tsx scripts/harness/generate-short.ts - Supporting code:
src/harness/generate-short.ts,src/render/captions/*,src/visuals/*,src/validate/*
- Writes a bounded output tree under
outputDir. - If
referenceVideoPathis supplied, writes ingest files underoutputDir/ingestunlessreferenceOutputDiris overridden. referenceVideoPathis analyzed into blueprint/theme files. It is not treated as render-ready source footage.- Always writes script, audio, timestamps, visuals, render metadata, and final video files.
- Writes quality sidecars when the default stage settings are used:
visuals/visual-quality.json,render/captions.remotion.json,render/captions.srt,render/captions.ass, andquality-summary.json. - Writes
provenance/asset-ledger.jsonfor every completed run. The ledger records generated script/audio/render artifacts, visual scene assets, gameplay backgrounds, caption sidecars, file hashes when local files exist, and review status for assets that still need rights evidence. - The default review path should carry
render/captions.remotion.jsonintopublish-prepso the final MP4 is checked for actual rendered caption sync, not just for a valid caption plan on disk. - Unless
publishPrep.assetLedgerPathoverrides it, the generated asset ledger is passed intopublish-prep.publishPrep.mediaIndexPathadds reusable media-index evidence. Any rights/provenance error fails the final publish-ready result. - Runs
publish-prepby default and writes its bundle unlesspublishPrep.enabledisfalse. - Fails closed by default when the review bundle reports
passed: false. SetpublishPrep.requirePasstofalseonly when you explicitly want files written even though the review gate failed. - The point of the skill is the finished edit and review outcome, not just the fact that files were produced.
script/script.jsonexists and has at least one scene.audio/audio.wavandaudio/timestamps.jsonexist and agree on duration.visuals/visuals.jsonexists and matches the timestamps file.visuals/visual-quality.jsonexists and reports whether metadata preflight passed.render/video.mp4andrender/render.jsonexist.render/captions.remotion.json,render/captions.srt, andrender/captions.assexist when caption export is enabled.quality-summary.jsonexists and reports known visual and caption readiness signals.provenance/asset-ledger.jsonexists and has entries for generated assets plus any visual, gameplay, audio mix, and caption assets that entered the render.- The caption treatment matches the script and platform instead of using a random default.
- If
publishPrep.enabledis true,publish-prep/exists and reports a clear pass/fail outcome.