short-video-maker

agent
Security Audit
Warn
Health Warn
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 9 GitHub stars
Code Pass
  • Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

Turn articles, topics, or opinion briefs into narrated short-video packages with scripts, TTS, captions, Remotion templates, covers, and publish copy.

README.md

Short Video Maker

Default narration and verified audio export

Generated narration automatically chooses local VoxCPM2 when the complete local environment is available; otherwise Edge TTS. Users can select VoxCPM2, Edge or Volcengine. All three align captions automatically and use the same lossless PCM mix and verified final export. Run node scripts/run-job.mjs <job> --render --confirmed-render; no TTS/alignment flags are needed. Imported narration is protected and remains --tts=none. See configuration, safeguards and overrides.

中文 | English

Main line (read this first)

The default workflow is the shot film: research official sources, grade the picture material, write the script beat by beat around real pictures, render with a camera grammar, and show the user a film only after measurements and a recorded frame review pass. See SKILL.md for the eight stages and their gates, references/shot-script.md for the script format and moves, and references/quality-bar.md for the quality layers. The template, director and component routes described further down are legacy: they still run and are tested, and are indexed in references/legacy-routes.md.

Known gaps: narration, alignment and packaging for shot films are not yet one command, and the shot film is not part of run-job.mjs.

Phase-1 material-route consolidation

The subsequent production upgrade adds explicit official-source snapshots/media requests, claim-to-scene provenance, conservative local Whisper word-boundary matching, selected native video clips, and a responsive report template for 16:9, 9:16 and 3:4. Researched renders generate midpoint/safe-area previews; technical delivery and plan/video-bound editorial review are separate. Product/article/daily briefs and cache/provenance rules are documented in researched production. The former Auto local archive was deleted at the user's request; historical jobs and the remote repository were retained.

Local media inventory, existing narration import, optional audio cleanup and BGM mixing feed the same canonical plan and Remotion renderer. Use scan-assets.mjs, author/select scene assets and caption timings, then import-media.mjs and run-job.mjs. Imported voiceover is protected from TTS replacement; a prepared mix is played exactly once. Delivery checks include black/volume/silence diagnostics, a full-duration contact sheet and asset-needs files. Legacy still-image jobs can be explicitly converted with migrate-auto-job.mjs. See the material input workflow and delivery checks and conversion, plus the upgraded route above.

Turn an article, topic, or rough idea into a narrated vertical short-video package for Xiaohongshu, Douyin, TikTok-style explainers, and other social platforms.

This skill is designed to be portable across Codex, Claude Code, and OpenClaw. The active agent handles research, analysis, script writing, and storyboarding; the bundled Node and Remotion workflow handles validation, TTS synchronization, captions, first-frame preview, rendering, cover export, and packaging.

Use it when you want to turn an article, topic, course fragment, or opinion brief into a short-video package with narration, captions, a cover image, and publish copy. The current workflow is strongest for Chinese knowledge explainers, opinion breakdowns, and tool-method videos.

Compatible with Codex, Claude Code, and OpenClaw as an agent skill. The local rendering workflow requires Node.js, FFmpeg, and Remotion.

Preview

Short Video Maker preview

Core Capabilities

Capability What it helps you do
Short-video planning Extract a focused angle, audience, and narrative structure from an article, topic, or rough idea
Script and storyboard Create narration, scene titles, screen text, visual direction, motion, and transition plans
TTS and caption sync Generate or connect narration audio, then align captions, scenes, and the video timeline
Remotion rendering Render video, first-frame previews, and covers from a structured video-plan.json
Publish package Export video, cover, script, captions, platform title, body copy, tags, and metadata
Quality checks Validate plan structure, timing, audio duration, caption readability, and publish readiness

How It Works

flowchart TD
    A["Article / topic / idea"] --> B["Extract angle and audience"]
    B --> C["Create script and storyboard"]
    C --> D["Build video-plan.json"]
    D --> E["Generate voiceover and captions"]
    E --> F["Create first-frame preview"]
    F --> G{"User approves?"}
    G -- "Revise" --> C
    G -- "Approve" --> H["Render with Remotion"]
    H --> I["Package video, cover, script, and publish copy"]

The agent handles creative judgment: research, angle selection, scripting, and storyboard planning. The local scripts handle repeatable execution: validation, TTS sync, captions, preview, rendering, quality checks, and packaging.

Design Boundary

This skill borrows quality gates, pronunciation dictionaries, preference files, platform rules, and timing audits from heavier video-podcast workflows, but it stays short-video first:

  • The main path remains a 90-130 second vertical short video.
  • Long articles, long narration scripts, or podcast.txt inputs should first be reduced to one strong short-video angle.
  • Full long-form podcasts, Bilibili/YouTube 4K production, batch production, and automatic publishing are out of scope for this skill.

Who Should Use It

Use this skill when you want an agent to produce a complete short-video workflow from a source article, topic, or idea:

  • Chinese knowledge explainers and opinion videos
  • Xiaohongshu and Douyin vertical videos
  • Narrated videos with captions, cover image, and publish copy
  • Agent-assisted video planning where rendering should stay deterministic

Do not use it as a generic GitHub publishing workflow. Public release checks, security review, and repository sync should be handled by a separate publishing skill such as GitHub-skill-publisher.

What It Produces

  • analysis.json: audience, angle, claims, risks, and narrative structure
  • script.json: narration, scene text, and timing estimates
  • storyboard.json: scene layout, visual direction, motion, and transition notes
  • video-plan.json: the single Remotion input file
  • voiceover.mp3 and timed captions
  • video.mp4, cover.png, script.md, publish.md, and metadata.json

Repository Layout

SKILL.md                     Skill entrypoint
README.md                    English documentation
README.zh.md                 Chinese documentation
assets/                      Public preview assets
references/                  Workflow rules, schemas, and design guidance
scripts/                     Deterministic workflow scripts
data/                        Voice presets and reusable data
examples/                    Public example input
jobs/                        Local job workspace, ignored by git
remotion/                    Remotion project
templates/                   Template packages and route tokens

Generated audio, captions, videos, local job outputs, and dependency directories are intentionally ignored by git.

Requirements

  • Node.js and npm
  • FFmpeg and ffprobe
  • Skill-root dependencies installed with npm install
  • Remotion dependencies installed inside remotion/

Install dependencies:

npm install
cd remotion
npm install
cd ..
npm run doctor

After installation, start a fresh agent session if your agent runtime only discovers skills on startup.

Windows first-run path:

winget install OpenJS.NodeJS.LTS
winget install Gyan.FFmpeg
npm install
cd remotion
npm install
cd ..
npm run doctor

If FFmpeg is installed outside PATH, set FFMPEG_BIN and FFPROBE_BIN to the executable paths before running the workflow.

Installation

Install this repository as one skill folder:

git clone https://github.com/chemny/short-video-maker.git

Place the cloned folder in the skills directory used by your agent, or import it using your agent's own skill installation flow. Keep SKILL.md at the root of that skill folder.

After installing, start a fresh agent session if your agent runtime only discovers skills on startup.

Example layout:

<your-skills-dir>/short-video-maker/SKILL.md

TTS Providers

The workflow supports:

  • voxcpm2: automatic default on machines with a complete local runtime/model and ASR; uses mandatory ASR alignment.
  • edge: automatic default when local VoxCPM2/ASR is unavailable, or an explicit choice; Microsoft Edge online TTS, no API key required. The runtime default voice is zh-CN-XiaoxiaoNeural.
  • local: macOS system TTS, no API key required. Useful for offline smoke tests on macOS. It is not supported on Windows.
  • volcengine: Volcengine/ByteDance TTS. Requires user-provided credentials.
  • http: generic third-party TTS adapter. Requires user-provided endpoint and credentials when the provider needs them.
  • none: skip TTS when audio is handled separately.

Copy .env.example into your local environment only when you need provider overrides. Keep real keys in environment variables or a private .env; never commit real credentials.

Useful defaults:

SHORT_VIDEO_TTS_PROVIDER=auto
EDGE_TTS_VOICE=zh-CN-XiaoxiaoNeural
EDGE_TTS_RATE=default

On Windows, explicitly select edge, volcengine, or http. Do not use local, because it depends on the macOS say command.

Volcengine credentials:

VOLCENGINE_TTS_APPID=<your-app-id>
VOLCENGINE_TTS_ACCESS_TOKEN=<your-access-token>
VOLCENGINE_TTS_VOICE_TYPE=<your-voice-type>

Basic Workflow

Create a local job:

node scripts/init-job.mjs examples/input.md demo-video

Fill these files in jobs/demo-video/:

analysis.json
script.json
storyboard.json
video-plan.json

Generate TTS, captions, and package metadata without rendering:

node scripts/run-job.mjs jobs/demo-video

Validate structure and timing:

node scripts/validate-plan.mjs jobs/demo-video/video-plan.json
node scripts/audit-timing.mjs jobs/demo-video/video-plan.json

Generate a first-frame preview for user approval:

node scripts/run-job.mjs jobs/demo-video --preview-frame=0

Render only after the user explicitly approves:

node scripts/run-job.mjs jobs/demo-video --render --confirmed-render

The --confirmed-render flag is intentional. It prevents agents from accidentally triggering long renders before the user has approved the visual direction.

Output

After a successful run, files are written under:

remotion/public/output/
  video.mp4
  cover.png
  first-frame.png
  script.md
  publish.md
  metadata.json

Verification

Run syntax and Remotion type checks:

npm run check
cd remotion
npm exec -- tsc --noEmit

Common quality check:

node scripts/quality-check.mjs remotion/public/video-plan.json remotion/public/output

Added Rule Files

  • references/platform-rules.md: Xiaohongshu/Douyin title, body, tag, and CTA rules.
  • references/pronunciation-rules.md: TTS preflight rules for Chinese polyphones, English terms, names, and brands.
  • references/preference-rules.md: local preference-file priority and persistence boundaries.
  • references/long-to-short-rules.md: adapter rules for turning long articles, podcast scripts, or podcast.txt into short videos.
  • data/phonemes.template.json: pronunciation override template.
  • data/user_prefs.template.json: reusable preference template.

Attribution And Third-Party Names

The template package borrows design-system ideas from the MIT-licensed beautiful-html-templates project and adapts them for timed Remotion video. Product, platform, and provider names such as Remotion, Microsoft Edge TTS, Volcengine, Douyin, Xiaohongshu, TikTok, Codex, Claude Code, OpenClaw, and GitHub are used only for compatibility, attribution, or usage guidance. This repository is not endorsed by those projects or platforms.

Fresh-session verification prompt:

Use the short-video-maker skill to create a 60-second Chinese vertical explainer from examples/input.md. Generate the script, storyboard, video plan, captions, and first-frame preview. Do not render the full video until I confirm.

License

MIT

Automatic mode falls back from unavailable VoxCPM2 synthesis to Edge, then to macOS system speech when available. Chinese narration selects an installed Chinese voice; other narration uses the OS default. --tts=local selects it directly. No model, Python or voice download is needed. Caption timing comes from actual separately synthesized phrase audio, with no word-level recognition claim. Explicit provider choices and text/alignment failures do not switch voices. See pipeline details.

P0 production now adds bounded official-page discovery and acquisition-gap reports, explicit public-player/HLS VOD clip requests, caption-to-visual bindings, and browser-measured responsive layout gates. New researched projects use meta.productionVersion="p0-v1". See production and acceptance for supported acquisition paths, three-aspect checks and editorial limits.

Full-duration low-resolution previews and per-scene local narration/ASR caches: see iteration workflow. --preview-video preserves existing HD delivery; confirmed renders first generate or reuse the preview.

Default caption/pause repair and demonstration protection: workflow.

Render engine / 渲染引擎

Remotion remains the default. Select Hyperframes with node scripts/run-job.mjs /absolute/job --engine=hyperframes --preview-video, or save meta.renderEngine="hyperframes" in the plan. Both share narration, accepted caption times and verified PCM export. The optional pinned runtime is installed with npm ci --prefix hyperframes only when authorized. See render engine rules for scope, preview and delivery paths.

Authored director workflow (0.3.2)

directed-news is an explicit portrait candidate with parameterized B recipes and actual caption anchors, not a universal automatic director. Templates and declared authored Remotion sources share the normal runner, measured layout, complete preview identity and PCM export. New reviewed-v1 jobs wait for a current, truthful visual/listening review before HD. Missing listening stays pending; no extra user checkpoints are added to already authorized work. See references/director-production.md. Five implemented Editorial styles and27 compatibility fallbacks are now catalogued separately. Legacy jobs remain compatible; no workbench or unverified landscape parity is claimed.

Reviews (0)

No results found