Communitygithub.com

create-science-video

从选题到成片的竖屏短视频主力工作流:7 种叙事模式 + 40 个风格包 + 9 种动效语义,Remotion/Blender 代码渲染,AI 生成镜头清单,句级出处审查,批量变体与抖音交付清单;产出 MP4、SRT、封面、可编辑工程与 delivery.json。

create-science-video 是什么?

create-science-video is a Claude Code agent skill that 从选题到成片的竖屏短视频主力工作流:7 种叙事模式 + 40 个风格包 + 9 种动效语义,Remotion/Blender 代码渲染,AI 生成镜头清单,句级出处审查,批量变体与抖音交付清单;产出 MP4、SRT、封面、可编辑工程与 delivery.json。.

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Hubery0/science-video-studio/tree/HEAD/skills/create-science-video

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

From Topic to Final Video

Turn knowledge into watchable visuals, not just subtitled slides. This Skill is responsible for "how to make a vertical video": the host Agent handles research, direction, component expansion, and acceptance, while the accompanying CLI handles deterministic layout, dubbing, timeline, rendering, and compositing.

When a user says "I want to make a video," read this section first

The person only says what they want to do; retrieval, command execution, and file output are your job. Do not make the user type node.

The full script is in references/agent-playbook.md. The four steps are:

  1. Retrieve: node <plugin root>/engine/cli.mjs catalog --filter cyber Get the style (including layout and applicable scenarios), camera movements (ready-to-paste sentences), 3D assets, and example projects in one go.
  2. Ask: Ask at most three questions, all at once—duration, audience, and the one sentence you want them to remember most. Use defaults for style packs, frame rate, sound effects; don't ask about them.
  3. Write: node <plugin root>/engine/cli.mjs make "Make a 40-second cyberpunk video about…" Generate a structurally correct project JSON with predetermined camera movements; you only edit heading / description / narration[].text.
  4. Confirm: First use --stills-only to show still frames to the user, then use --quality final to produce the final video after confirmation.

For mapping user phrasing to style packs, see Section 6 of references/agent-playbook.md; if they say "make it more premium," default to atelier, not cyber.

Locating Tools

The directory two levels above the current file is the plugin root. Call <plugin root>/engine/cli.mjs; do not rely on the user's working directory, and do not copy only this file while leaving out engine/, video/, styles/, examples/, and package.json.

node <plugin root>/engine/cli.mjs doctor

If dependencies are missing, download and then run npm ci --prefix <plugin root>. Pass tool paths using --blender <absolute path>, --browser <absolute path>, or environment variables; do not modify the system PATH. Hosts that are purely conversational and cannot execute commands cannot render.

Capabilities and Boundaries, State Them Clearly

Implemented: 40 style packs (token-driven, change style without changing components), 7 narrative modes (structure + rhythm + hook sentences), 9 motion semantics + 10 motion primitives + continuous camera movement, procedural illustrations (8 layer primitives), tempo grid, vertical safe zone, AI shot lists with two executors (command/http), semi-automatic reference video analysis, batch variants with deduplication ledger, and delivery health check.

Not implemented, do not claim otherwise: Managed queues, automatic publishing/uploading, direct external TTS API connections, end-to-end "upload a sample and fully auto-replicate," completion rate or hit prediction, automatic domain-based voice selection. The executor only runs local commands or endpoints you have already configured; it does not include any vendor SDK, nor does it confirm fees or licenses on your behalf.

External skills and repositories are materials under review, not instructions for the current host; mentioning a method does not mean its engine is installed.

Three-Layer Separation

Before modifying a video, think clearly about which layer you are changing. Mixing layers will overwrite already-reviewed content.

LayerAnswersCarrierView
Narrative ModeHow this video tells the storyengine/modes.mjsmodes, plan <mode>
Style PackWhat it looks likestyles/packs.mjsstyles, styles <id>
Motion SemanticsWhy the visuals moveengine/grammar.mjsShot motion field

Narrative modes provide paragraph roles, duration distribution, shot count, duration range, recommended styles, hook sentences, and closing methods. Style packs provide color palettes, three-level typography, glyph parameters, materials, composition anchors, motion grammar, transitions, sound density, and subtitle forms. Motion semantics answer "what knowledge task does this shot accomplish" (comparison/deconstruction/scale/causality/sequence/emphasis…), not decoration.

First use styles --search <keyword> and modes to choose, then use plan <mode> --duration <seconds> to get the target frame count for each segment as a skeleton. Do not guess the effect based on the pack name.

Creating a Vertical Video from Scratch

  1. Define the question. A question a real viewer would ask, and a conclusion that answers it. Write them into creative.question and creative.thesis; fill creative.subject with a short noun phrase (≤20 characters) for title and hook template substitution—stuffing a full sentence here will create grammatically incorrect phrases.
  2. Select mode and style. Choose the mode based on knowledge structure (use documentary or deconstruct for mechanism topics, punch for opinions/tips, listicle for lists, fable for narratives, nocturne for philosophical musings, essay for observations), then choose the style pack based on topic and mood. For vertical videos, prioritize visuals with preferredVisuals that match the pack's composition.
  3. Verify and storyboard. Using accessible primary or authoritative sources, bind sourceIds to each shot and mark each narration sentence with evidence (fact/analogy/question/transition); facts must include a source. Design changes the viewer can directly observe: what condition is fixed, which variable is changed, and how the result differs. Titles, particles, and transition cards are not substitutes for causal demonstration.
  4. Write the spec. 1080×1920, 9:16, 30fps, timing.bpm between 100–140; targetDurationSeconds must equal the sum of all shots after frame rounding. Refer to examples/douyin-sky.json.
  5. Review. Run validate for schema, and audit for structure (creative, direction, sentence-level evidence, whether the mode role is deviated, whether motion is declared).
  6. Dubbing → Rendering → Delivery. See below.

audit only checks whether declarations are complete; it does not verify sources online or judge the quality of the visuals; passing it does not mean the final video is qualified.

Making the Visuals Work

To judge whether a video looks good, first check if there are visuals, not just well-arranged text.

  • Each shot should have at least one real visual element: sky, light source, beam, particles, planets, ground, rings, or material generated by aivideo. Writing key points as steps lists for the main visual results in a moving PPT.
  • illustration is code-drawn illustration that does not rely on any image assets and can combine 12 layer types: sky, sun, beam, scatter, particles, sphere, ring, ground, figure (human silhouettes, can be raised hands), coins (coin piles), mountain (distant mountains, peaks controls number), and mist (fog bands, used to create depth). Coordinates are 0–1 normalized, generating a viewBox based on the container's aspect ratio; vertical screens are not cropped.
  • Image-first shots use anchor: "overlay": graphics fill the full screen, titles are placed on top, and subtitles stay within the safety zone. Text-heavy shots use the default stack/split.
  • Data must be expressed in data form (chart); do not turn numerical values into decoration for aesthetics.
  • The entrance arrangement should occupy at most 35% of the shot duration, leaving 65% for the viewer to observe the visuals. This is guaranteed by code (entrancePlan); do not extend the shot to accommodate the animation.
  • Continuous camera movement is determined by motion semantics + the style pack's motion.drift; precision image-reading styles (blueprint, manual, swiss-grid, etc.) have camera movement disabled by default.

During acceptance, cover the subtitles and watch only the visuals: if you cannot understand the relationships, it means the visuals have not fulfilled their explanatory role. Redo the demonstration rather than adding text.

Style Prompt Cards

node <plugin root>/engine/cli.mjs prompts <style-id>        # Print one
node <plugin root>/engine/cli.mjs prompts --output <dir>     # Export all in batch

Adopted from the code-animation-prompts approach: tokens control rendering; prompts control communication. Each style has a reproducible plain language description (one sentence / framing / materials / colors / typography / motion / prohibitions / skeleton), derived from the style pack; changing the pack changes the prompts, and they will not drift from the rendering layer.

For styles with strong material texture, such as ink-wash and papercut, two additional rules apply: use low opacity for light beams (high opacity on light backgrounds looks like lasers), and ground/mountain shadows must be bounded on both top and bottom (fading only on one side leaves a hard "wall"-like line).

Making Explanations Instantly Understandable

"Clear explanation" is not about slow speech, but about not requiring the viewer to remember things. Any reasoning that requires the viewer to temporarily store the previous round's result in their mind must leave the result on the screen.

  • For iterative deduction, reverse deduction, round-by-round allocation, and layer-by-layer deconstruction, use allocation (scoreboard style): one row per round, with the current round highlighted, past rounds dimmed, and all rows displayed within the first 45% of the shot. The viewer sees "a table growing," not "a host reciting numbers."
  • Do not add tween animations to numbers in the table: intermediate states of scrolling numbers (e.g., 99 scrolling to 96) will be mistaken for errors.
  • Advance only one variable per sentence. When the narration says "previous round" or "next round," both states must be simultaneously visible on the screen.
  • Once a layer's conclusion is presented, the next layer should appear on the same table; do not start a new page.

Visuals and Motion

Choose Remotion for planar relationships, and Blender for spatial structures, perspective changes, occlusion, or cross-sections; do not fully 3D-render a video just because the user mentions three dimensions. Represent mathematical and physical relationships with formulas, numerical values, and data-driven graphics; do not let random motion masquerade as simulation; if approximations are used, write them in caveat and display them in the readable area of the screen.

Use motion to declare intent for motion effects; do not hand-write "start moving at frame X": entrance timing is determined by the style pack. Each shot should fulfill only one knowledge task; delete shots that only change the title without adding information.

An automatic overlay layer is added to the entire video: slowly drifting dust particles, spark bursts and expansion rings at cut points, and light sweeps that vary by transition type. Transition types are determined by the style pack's transition (cut for short bursts, dissolve for lingering, flash for brighter, wipe with light sweep). Special effects only appear very briefly around cut points, not glowing throughout the entire video; do not manually add more particles to "gild the lily," as this will obscure information.

Typographic Archetypes (Key to Changing Styles)

Changing only the color scheme and font does not count as changing the style—the first thing viewers see is the layout structure. The style pack's composition.archetype determines which layout language the entire video uses; this is a three-way hard switch:

archetypeWhat it looks likeSuitable for
editorialTop-left title + description + key points + column/stacked visual area, with header and horizontal progress barGeneral knowledge explanation, data, mechanisms
verticalText right-aligned and vertically arranged, no header, right-side vertical progress line, vermilion seal colophon, full-frame visuals, subtitles still horizontally bottom-alignedClassical poetry, calligraphy, Eastern aesthetics, colophon feel
posterTitle is the visual: large centered title over a full-frame image, ignoring key point lists, with thin upper and lower border linesTopics that can stand on a single conclusion: naming, golden sentences, data conclusions

Current distribution: ink-wash = vertical, cinema-gold/gallery/art-deco/ukiyo-e/newspaper/mg-kinetic = poster, the rest = editorial.

When selecting a topic, first decide the archetype, then choose the color scheme. If you have made vertical text but are still using magazine-like columns, it means you have "changed the color but not the style."

Style Card Library (Must Read When Creating a New Style)

The complete drawing engineering manual is in references/style-cards.md. The core principles are three:

  1. Changing style = changing the drawing method, not just the color scheme. Criterion: If you convert the color scheme to grayscale, you should still be able to tell them apart at a glance.
  2. **One card = one self-contained SVG (1080×1920) + the same prompts + an actual render from the renderer. Cards do not contain people; characters are stored in a separate library.
  3. **Animation only uses repeatCount="indefinite" + calcMode="discrete"; text is visible by default; do not use begin+fill="freeze" for entries— in headless rendering, the entire segment will disappear.
node engine/cli.mjs gallery --styles <id> --output gallery   # Add/update a card (incremental merge, does not overwrite existing)
chrome --headless=new --window-size=1080,1920 --screenshot=out.png file:///.../renders/<id>.svg   # Self-check screenshot

Verified techniques, ready for reuse:

StyleTechniqueKey Parameters
Ink-washFlying white = feTurbulence + feDisplacementMapscale 15–30; four ink gradations
CyberpunkBloom = same-group blur + screen blend back; three-layer parallaxparallax 0.12 / 0.42 / 1.1
Pixel5×5 dot-matrix self-drawn characters + fully discrete frames12px whole-grid stepping
WoodcutCarving line density replaces grayscale62° lines, spacing 7–11
Screen printTwo-ink multiply + misregistration offset±4px reverse offset
AnimeFlat coloring + hard-edge shadows + outline backlightpaint-order="stroke"

Camera Movement and Shot Language (Check Here When Writing direction.action)

A searchable, replicable camera movement lexicon is in motion/index.html (double-click to open, works offline): 18 entries covering camera movement / angles / transitions / rhythm, each with "when to use / parameter range / ready-to-paste professional description," accompanied by a looping animation demonstration.

At the top of the page is a shot generator: select shot scale × camera movement × speed × duration × transition, and it directly produces three lines of description + a shot JSON.

[Wide shot] Slow push-in, duration 4 seconds, fixed camera slowly pushing in, the scene goes from full to close-up, the subject is always on the left third of the center.
[End] Pause 0.4 seconds after the action settles, then cut directly to the next shot.
[Constraint] The subject does not leave the safe zone (top 13% / bottom 22%), subtitles are within the bottom 26%, and movement maintains the same direction throughout the video.

If you don't want to open the web page, calculate directly from the command line (which includes the style's easing and amplitude):

node engine/cli.mjs motion --move push-in --style ink-wash --size medium --duration 4

Four rules when writing direction.action:

  1. One shot does one thing: either move or stay still. Two movements combined make it hard for viewers to see the subject.
  2. Directional consistency: several consecutive shots in the same direction; a sudden reversal will be read as "the subject has changed."
  3. Speed is emotion: slow = thought, steady = statement, fast = impact. Using only one speed throughout the video is flat; using three is chaotic.
  4. Transitions are punctuation: hard cut = comma, dissolve = period, wipe = semicolon. Do not change transitions every shot.

Strong techniques (Dutch angle, whip pan, impact entry, freeze frame) should be used at most once per entire video.

Minimum Viable Pipeline (Style + Transition + 3D Assets)

Three things are already integrated and can be combined directly into a final video:

  1. Camera movements are actually executed: Chinese verbs in direction.action (push in/pull out/pan/tilt/dolly/crane/around/handheld/impact/zoom/whip/freeze) will be parsed into cameraStyle shot types, no longer just documentation. After parsing, the amplitude is automatically increased to drift × 1.8 + 0.25, making it visually discernible.
  2. 3D assets can be used as backgrounds: visual.type = "media" + archetype: cinematic, full-frame video as a base layer, with text pressed into the lower third; a stronger dimming band (0.97 → transparent) is automatically overlaid on the asset background to ensure bright areas do not eat the text.
  3. Transitions have sound: node engine/cli.mjs sfx generates four WAV files (whoosh / hit / riser / tick) in assets/sfx/, which can be layered directly as assets.
node engine/cli.mjs sfx                                   # Generate four sound effects
node engine/cli.mjs motion --move crash --style cyberpunk  # Check camera movement parameters
node engine/cli.mjs render examples/plate-demo.json --stills-only   # Verify asset-with-text overlay

Capability Overview (What This Skill Can Do Now)

CapabilityEntryDescription
One-click environment setupcli setup --installCheck Node/Blender/voice model, automatically download Blender
Natural language skeleton generationcli make "…"Parse duration/style/mode/subject, output project JSON with camera movement
48 style packs + 4 layoutsnode engine/cli.mjs styleseditorial / vertical / poster / cinematic
Style card library (9 dynamic SVGs)gallery/index.htmlCard visuals are actually rendered by the renderer; prompts are homologous
Camera movement lexicon (18 entries)motion/index.htmlTerminology + parameters + professional descriptions + Remotion snippets
Camera movement parameter calculationcli motion --move --styleConvert to frames, easing, amplitude per style; disabled items automatically reduced to 40%
Camera movements actually executeWrite direction.action in projectChinese verbs parsed into 11 types of camera motion
3D assets (Blender)blender/plates.pyThree procedural presets, output looping MP4
Assets as backgroundsvisual.type = "media" + cinematicFull-frame base layer + automatic dimming band
Transition sound effectscli sfxwhoosh / hit / riser / tick, procedurally synthesized
Automatic sound effect mixingAutomaticMatched per shot semantics, normalized on the same LUFS

Color Scheme and Texture

Premium feel comes from restrained color + one accent + generous whitespace, not from more colors and more effects.

Two types of styles should be used separately; if you choose the wrong direction, no amount of adjustment will make it right:

  • Static Premium (Elegant): atelier warm white studio, gallery gallery white, ink-coral warm charcoal black. Suitable for critical thinking, methods, business analysis. Accent color area <5%, applied only to a number or one keyword; displacement only does 16–20px short upward float, no bounce, no parallax.
  • Dynamic Luxurious (Fancy): cinema-gold dark gold theater, neon-prism neon prism, aurora-deep aurora deep field. Suitable for topics with dramatic tension, "people and treasures," or tech-feel. These packs will raise surface.glow, which automatically enables: bloom for lights and coins, stage light pool, warm side light color grading layer, gold dust particles, stronger vignette.

atelier is token-configured based on Claude/Anthropic online tests: base #F0EEE6, ink #141413, secondary #5E5D59, accent #D97757, secondary accent #788C5D; serif title + sans-serif body text, border radius 16, 1px thin border, entry cubic-bezier(.16,1,.3,1).

  • Keep accent color area within 5%: apply only to numbers, one keyword, or one underline. Overuse immediately downgrades the feel.
  • No gradient glow, glassmorphism, or colored icon walls—unless using the "Dynamic Luxurious" packs listed above, where glow is part of the design.
  • Don't use pure white for backgrounds; vertical screens have large areas, and pure white looks cheap; use warm white with 3–5% fine grain.

Dubbing

Use natural dubbing for the entire segment of speech in the final sample, rather than synthesizing each sentence individually and inserting fixed pauses. produce <production list.json> handles continuous audio track, batch subtitles, action timing, and rendering.

First, use voices to see speakers, default timbres, model file status, licenses, and download sizes—it does not download, load native libraries, or prove synthesizable. Default is melo-zh; optional Kokoro requires prior explanation of Apache-2.0, approximately 369.5 MiB, and temporary chunked disk requirements, and is only executed after authorization setup_speech.mjs --model kokoro --download.

narrationProfile only explicitly fills the speaker after a test listen. There is no automatic voice selection based on domain keywords; presets only control speech rate and shot start/end whitespace, not intra-sentence pauses or emotion. Do not clone unauthorized voices.

When importing dubbing, prioritize using the entire narrationTrack and each subtitle's startSeconds/endSeconds, using actual measured audio tracks to schedule actions, not guessing time based on word count. Each subtitle ≤44 characters, but splitting subtitles does not mean cutting the sound.

Music

node <plugin root>/engine/cli.mjs music --duration 80 --bpm 96 --output examples/bgm/atelier-bed.wav

Procedurally synthesized ambient bed (pad chords + light plucked strings + very light beat), no third-party materials, no copyright issues; each generation with the same parameters produces exactly the same result. After writing it into the project's mix.bgm, the mixing stage will compress it below the narration and automatically duck during narration segments, normalizing the entire segment to −16 LUFS.

A knowledge video without music sounds like "reading a script." Whenever there is narration, there should be music, unless the user explicitly requests silence.

Rendering

node <plugin root>/engine/cli.mjs validate <project.json>
node <plugin root>/engine/cli.mjs audit <project.json>
node <plugin root>/engine/cli.mjs render <project.json> --quality preview
node <plugin root>/engine/cli.mjs produce <production list.json> --quality preview
node <plugin root>/engine/cli.mjs render <project.json> --stills-only

First output a preview and per-shot keyframes, and only then produce the final version after viewing. --scene <id> only re-renders the specified shot; --stills-only only exports keyframes. When receiving a non-zero exit code or ok:false, read the error and fix the root cause—do not change 3D failures to 2D, dubbing failures to silence, or validation failures to confident conclusions.

Changing the narration only regenerates the corresponding audio; changing fonts, subtitles, or 2D titles does not require redoing 3D; changing 3D content or render size will invalidate the 3D cache.

AI Shots

When realistic footage or generated visuals are needed, set the shot's visual.type to "aivideo", then:

node <plugin root>/engine/cli.mjs shots <project.json> --output <directory>
node <plugin root>/engine/cli.mjs generate <project.json> --executor <executor.json> --output <directory>

shots only outputs a list: each shot with a unified style prefix, subject-action-result, negative prompts, deterministic seed, and output path.

generate actually executes. Neither executor requires storing keys in the repository:

  • command: delegates each shot to a local command; args supports {prompt} {negativePrompt} {seed} {duration} {aspect} {out} {id} placeholders. Any CLI capable of writing files can be connected.
  • http: POSTs a JSON task to an endpoint, supporting synchronous return of output or taskId + pollUrl polling; keys are only read from environment variables (apiKeyEnv) and not written into the configuration file.

Execute and write files one by one; if any one fails, stop at that one and retain the completed results, only re-running the failed one. If assets are missing or duration exceeds ±15% after generation, it will directly report an error; render will not render black frames. Configuration errors are pointed out in advance by describeExecutor—a command without {out} will fail because the target file is not found; this is intentional.

Reference Example Videos

node <plugin root>/engine/cli.mjs reference analyze <video.mp4>
node <plugin root>/engine/cli.mjs reference derive <fingerprint.json>

analyze only reads container metadata; it does not extract frames, detect cut points, perform OCR, or analyze audio—without decoding capability, it does not pretend to watch videos. Frame extraction and auditory analysis are performed by executors that can decode; after filling observed results into fingerprint.observed, derive uses them to select styles, override dominant colors, and determine rhythm.

When a user provides a sample video, only evaluate actually watched segments: record the time range, information hierarchy, object continuity, subtitle whitespace, action beat, and sound structure; if the original audio is not heard, do not evaluate timbre or mixing. Extract general design principles, not copying the original script, character images, dubbing, music, or unique assets.

Batch Variants

node <plugin root>/engine/cli.mjs variants <base.json> --axes <axes.json> --output <directory>
node <plugin root>/engine/cli.mjs batch <directory>/manifest.json --quality preview

axes.json can declare hooks, styles, tempos, captions, and durationScales. After expansion, deduplicate by content fingerprint (script + style + tempo + aspect + sound, ignoring id), with a maximum of 100; re-running with the same fingerprint reuses the result and does not re-create the video. Variants only change the declared axes; all other fields inherit from the base video.

First, have one representative video pass factual, visual, and auditory acceptance, then proceed in batch. Each new topic must still be re-verified, re-scripted, and have new audio tracks and storyboards generated; do not simply replace the title or use an old timeline to cover different-length recordings. If the user only wants one, do not arbitrarily expand it to a batch.

Acceptance and Delivery

node <plugin root>/engine/cli.mjs deliver <project.json> --output <directory>

Check item by item:

  • Visuals: Subtitles do not overflow, do not overlap graphics, and do not enter the bottom interactive zone; title and graphics do not overlap; the title can be read within 3 seconds of the first shot.
  • Auditory: Play the entire video, check pronunciation, transitions, volume, and start/end cuts. If you cannot listen, explicitly write "auditory acceptance not completed."
  • Knowledge: Distinguish between causation and correlation, direction and magnitude, schematic and real proportions; check units and orders of magnitude.
  • Explanatory Power: Cover the subtitles and watch only the visuals; if you can still only read the text and cannot understand the relationships, redo the demonstration.
  • Deliverables: MP4, SRT, project.json, sources.json, per-shot keyframes, report.json, delivery.json; 3D shots include scene.blend.

deliver provides title candidates, topic, cover frame selection, and vertical screen health check; it does not provide completion rate prediction, hit probability, or automatic publishing. Titles and covers must be consistent with the content; do not use misleading hooks.

Results are reported in four layers: technical checks, factual review, visual and auditory acceptance, and real post-publication engagement data. For checks not performed, write "not completed"; do not fabricate aesthetic scores or engagement predictions.

Usage Boundaries

Respect the copyright of reference works; do not copy the original video's audio, video, dubbing, logos, or large portions of the script. Procedural earth and moon materials are for illustration purposes only. Before commercial delivery, confirm Remotion licensing conditions and licenses for fonts, sounds, music, and external assets; Blender's licensing conditions do not apply to Remotion.

Do not modify a user's global configuration just because they mention a specific Agent; do not exceed the boundaries of payment, upload, and publishing.

相关技能