Communitygithub.com

srt-overlay-pipeline

口播 SRT 转动效视频流水线——当用户给一份 SRT 字幕(或带时间戳的口播稿)要求做成动效视频时,按本 skill 生成 overlay 动效编排 JSON,并调用 scripts/export-mov.mjs 导出透明 MOV(叠回剪辑软件原片即成片)。触发词:SRT转动效、口播转动效视频、特效生成、生成动效编排、配动效卡、导出透明MOV。

srt-overlay-pipeline 是什么?

srt-overlay-pipeline is a Codex agent skill that 口播 SRT 转动效视频流水线——当用户给一份 SRT 字幕(或带时间戳的口播稿)要求做成动效视频时,按本 skill 生成 overlay 动效编排 JSON,并调用 scripts/export-mov.mjs 导出透明 MOV(叠回剪辑软件原片即成片)。触发词:SRT转动效、口播转动效视频、特效生成、生成动效编排、配动效卡、导出透明MOV。.

兼容平台~Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/GreatZhang1984/video-pipeline-overlay/tree/HEAD

在你喜欢的 AI 中提问

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

文档

Spoken-Dialog SRT → Overlay Orchestration → Transparent MOV

Automatically orchestrate SRT subtitles into an animated card timeline, save it as overlay.json in the episode directory, then run one command to export a MOV with an alpha channel (ProRes 4444). The user stacks the MOV above the original talking-head footage in editing software like CapCut, aligns it to frame 0, and the video is done. The entire process does not require opening the engine editor; however, manual adjustments can be made if desired (see Delivery Method).

Pipeline Overview (Remember This Main Chain)

Paste SRT into episodes/<episode_name>/source.srt
  → You (following this skill) orchestrate → episodes/<episode_name>/overlay.json
  → node scripts/lint.mjs <overlay.json>              (errors are mandatory to fix)
  → node scripts/export-mov.mjs episodes/<episode_name>  (auto-starts engine, renders, renames)
  → episodes/<episode_name>/output/<episode_name>_overlay.mov delivered

All commands are executed from the pipeline root directory (where this skill resides). Before first use, run node scripts/studio.mjs check to verify the environment.

Start and Finish (Fixed Actions for Every Session)

  • Start by reading STATUS.md: Find the current stage and to-do list in episodes/<episode_name>/STATUS.md, and continue from there. Do not ask the user to repeat themselves. If no episode directory exists, run node scripts/new-episode.mjs <episode_name> to create one (this renders STATUS.template.md as STATUS.md).
  • Start by reading the preference tables: The pipeline root contains my-preferences.default.md (factory neutral defaults) and my-preferences.md (user's own preferences; entries with the same name override the defaults). Anywhere in this document that says 【Preference·Section·Entry】 , look up the value in these two files. Do not invent numbers. If both files lack the entry, follow the default table (usually "not set/optional"—then truly do not set it).
  • Finish by updating STATUS.md: After each delivery/modification, write back the current stage, key file paths, decisions made for this episode (main color/theme/aspect ratio), completed items, and to-dos. The next session will pick it up from there.

Workflow

  1. Parse SRT: Read episodes/<episode_name>/source.srt, extract each subtitle's start/end (in seconds) and text. Merge adjacent subtitles that belong to the same semantic segment (same viewpoint/enumeration/data) into one time interval.
  2. Segment script (before selecting cards; core step of this skill): Break the entire script into a three-level hierarchy: Chapter → Segment → Element: Chapters: 3-6 (for chapter-bar); Segment = 10-30s, exactly one argument, each annotated with start/end seconds, Chinese title, semantic color, segment-end method; Elements = numbers/conclusion lines/terms within a segment, each with its entry second (aligned to the spoken line). For each argument, mark the evidence type (number? trade-off? position? magnitude comparison?)—this determines which evidence card to use. The goal is "presenting semantics with animation," not "adding special effects to subtitles": card content comes from the argument and evidence, not a verbatim copy of the SRT original.
  3. Identify content type: Hook question / pain point list / reverse golden quote / data / term explanation / step-by-step flow / comparison / enumeration / point-by-point / ending climax...
  4. Match cards: First read the preference tables and experience-rules.md (qualitative preferences; if they exist), merge them with the rules in this file; in case of conflict, use the more specific and newer one. Then select cards based on the trigger conditions in the Card Library below. Only use kinds from the Card Library. It is strictly forbidden to invent new types. If the user provides a "script design" document (with cards already assigned per segment), use that document and only fill in times and missing parts.
  5. Orchestrate placement and density (see Orchestration Rules), write to episodes/<episode_name>/overlay.json (see Output Format).
  6. Lint self-check (mandatory before delivery): node scripts/lint.mjs episodes/<episode_name>/overlay.json --duration <video_duration_seconds>. All errors must be fixed before exporting (placeholder text remnants and time boundary violations are hard errors); warnings are not mandatory to fix, but attach the warning list in the delivery note for the user to review. Thresholds are in lint-rules.default.json (shared) + lint-rules.local.json (personal) in the engine directory.
  7. Export: node scripts/export-mov.mjs episodes/<episode_name>. The script will: automatically start the engine dev server (port 5177) → headless Chrome renders frame by frame → FFmpeg encodes transparent MOV → sound effects are mixed in automatically → output is renamed to <episode_name>_overlay.mov. Temporary rendering files (several GB) go to the engine's exports/ directory, only the final product lands in the episode's output/ directory.
  8. Deliver (see Delivery Method), then finish by updating STATUS.md.

No Spoken-Dialog Video Mode (Hard Constraint; Biggest Difference Between This Pipeline and the Engine Skill)

This pipeline has only SRT, no spoken-dialog video/screen recording. The exported transparent layer is stacked over the user's original footage, so:

  • Do not arrange focus-card (person-focused camera movement): it requires real talking-head footage for rendering; without a camSrc, the exported camera window is empty.
  • Do not arrange ui-callout (interface annotation): it annotates screen recordings/interfaces; without a background image, it's annotating air. If the user's episode actually discusses a specific software interface → suggest in the delivery note that they record the screen and manually add a ui-callout in the editor. Do not force it.
  • terminal-3d can be used: it is a self-drawn full-screen background board and does not rely on footage.
  • caption-track is not configured by default: the transparent layer is stacked over the original footage, which likely already has subtitles or doesn't need them. Only add it if the user explicitly wants "bilingual subtitles in the overlay layer too," and remind them in the delivery note about the risk of clashing with the original subtitles.
  • If the user provides a talking-head video (which can be passed to the engine editor as a global cam feed), then focus-card camera movements are unlocked—but that falls under manual fine-tuning in the editor, not automatic orchestration.

Available card types = 23 types (all cards in the Card Library table except focus-card and ui-callout).

Segment First, Then Assign Cards (Segment Scene System, Highest Priority)

Overall composition comes from "organizing the layout by segment": entries are for elements, layout is by segment. It is strictly forbidden to pick cards line by line directly from the SRT—you must first create the segment script from Workflow step 2, then orchestrate by segment:

  1. Segment script format (one line per segment): start-end seconds | Chinese title | semantic color | segment-end method | element list (form + entry second). For title length, see 【Preference·Text Volume】; an optional English literal translation of the segment's meaning can be filled into the card's kicker/en fields.
  2. Each segment needs a "person standing there": There is no dedicated segment header card. This is handled by the permanent chapter-bar—a single bar from 0 to the end, with its chapters parameter listing all episode segments as chapter_name start_second, highlighting the current one. If a segment needs a stronger opening, you can make the stat-proof's kicker or a type-shift card serve as the topic setter, but this is not required for every segment.
  3. One structure per segment (the source of overall composition; most important): Cards in the same segment can share a seg field for inline layout (use it or not depends on 【Preference·Structure·seg】). The standard structure for a segment is one main card + one pin board: at most one "signature main card" per segment that carries the segment's main visual (like terminal-3d / giant text, one per segment); scattered points use a pin-board pinned to a corner that stays throughout the segment when mentioned and is not removed. Numbers and data use dedicated cards instead of piling up text: whenever a number/ratio/trend appears, directly use ring-metric / odometer / stat-proof—cards where "the animation shows the semantics"—don't use plain text to describe numbers. It is strictly forbidden to stack 4-5 independent cards in one segment. Elements within a segment only enter, never leave: elements enter on the spoken line and stay until the segment ends.
  4. Segment boundary: clear all at once: When a segment ends, all cards in that segment exit together (share an end); or hand the entire segment over to a full-screen card (terminal-3d, one per segment) for a scene change. Scene change frequency is defined in 【Preference·Structure】, giving the audience a breather.
  5. One color per segment: All cards within a segment share the same accent = the segment's main color (color-meaning convention defined in 【Preference·Color】).
  6. Source line is standard for evidence: Evidence cards must include a source (stat-proof's footZh, pin-board's subtitle, quote-lockup's author), formatted like a mono source line: SOURCE·OpenAI Official·2026.6 / NEWS·7/14·One Person Hand-made / CASE·Blogger’s Own Account. "Evidence" without a source is downgraded to an opinion card and should not be presented as evidence.
  7. Dual-column comparison layout (GLOBAL vs CHINA style): When the segment's meaning itself is a left-right comparison (foreign vs domestic / old vs new), split it into two seg groups with the same time window—the left group is normal (default left column), the right group is moved to the right side of the screen (【Preference·Placement·Dual Column Right Column offsetX】), each column follows its own inline layout, same color for both columns in the same segment. A conclusion pill (punch-pill center) can be placed in the gap between the two columns.
  8. Breath segments: Between dense segments, insert segments that have only a header and nothing else stacked (duration defined in 【Preference·Structure】). Not every segment needs to be dense; breathing comes from alternating sparse and dense.

Orchestration Rules

  • Better to have too many than too few (first principle): Deleting a card from the orchestration JSON is just selecting and pressing Delete, but missing a card requires re-timing—so when in doubt about whether to assign a card to a segment, always assign one. It's better for the user to delete 30% than to have to add one card.
  • Density: Cards per minute follow 【Preference·Density and Rhythm·Density Range】, following the semantics—when a new noun, number, action, emotion, or example appears, introduce something new. The goal is to have a new action every 【Preference·Density and Rhythm·New Action Interval】 (a new card entering, or the next item popping out in the card; both count). White space is only for genuine narrative transitions, with an upper limit defined in 【Preference·Density and Rhythm·White Space Upper Limit】.
  • Diversity (hard metric):
    • Two adjacent cards must not be the same kind (except for permanent chapter cards);
    • Different group counts per 60 seconds, minimum total kind types for the entire video, and maximum repetition of the same card kind,** all defined in 【Preference·Diversity】** (if the preference table says "not set," truly do not set it; do not invent one).
  • 2-4 cards can be on screen at the same time, but they must accumulate one by one, not explode simultaneously:
    • Each chapter can have one permanent chapter card (e.g., step-timeline/punch-pill placed in a corner, not disappearing for the entire chapter, while other cards come and go);
    • In addition to the permanent card, stack a few rotating content cards (upper limit defined in 【Preference·Diversity·Same Screen Stack Limit】), with positions offset (left/right/bottom/top), and the minimum interval between their entries defined in 【Preference·Diversity·Same Screen Entry Offset】;
    • Only one card can be visible in the same position at the same time; when a segment ends, all cards in that segment clear out together (share an end), then start accumulating again.
  • Duration: Each duration is defined in 【Preference·Density and Rhythm】. Content cards should always follow the narrator's speaking duration, not use fixed values.
  • Rhythm: The first 0-5 seconds must have a hook card; every "summary/reversal/golden quote/number" moment must have a card.
  • Keep existing cards alive (item-by-item within the card): Rhythmic feel comes from "the content within the card is moving," not from frantically adding new cards. Any card over 8 seconds should support item-by-item progression: pin-board pins points one by one, checklist checks items one by one, step-timeline highlights the current chapter. Don't make a card light up all at once and then idle.
  • One argument nurtures a single thread, don't scatter a handful of cards: One argument occupies the entire segment; information enters sequentially according to the speaking rhythm—chapter-bar advances to this segment's topic → data-specific card shows numbers → pin-board pins down conclusion points, once pinned they are not removed. When talking about a person/company, first pin an entity-chips name card, then expand; when presenting evidence, use stat-proof for numbers, quote-lockup for source attribution.

Graphics First (Important: Prevent PowerPointification)

Motion effects are visual accompaniment, not rewriting the subtitles. Choose cards in this priority order:

  1. Evidence first (highest priority): Opinions need to be backed by numbers, not repeated in text—mileage/achievements → stat-proof (rolling count); ratios/achievement rates → ring-metric; whole numbers scale → odometer; trade-offs/choices of two → versus-card.
  2. Visualize numbers: Single number → odometer/ring-metric/stat-proof—a large number + one line of small annotation, do not write a full sentence; rankings/trends → rank-bars/growth-curve; before-and-after increases → growth-bars, share breakdown → donut-split/waffle-fill, addition/subtraction accounting → waterfall-bridge, multi-dimensional comparison → radar-profile.
  3. Icons/graphic structures: Parallel enumeration → pin-board (points pinned one by one, not removed after being mentioned); flow/steps → step-timeline (chapter outline) or checklist (check off items one by one); choice of two → versus-card; command line / back-and-forth dialog with AI → terminal-3d.
  4. Quoting others → quote-lockup (reveal line by line + attribution).
  5. Plain text cards are the last resort: Only for hook/reversal/golden quote moments (punch-pill/blur-text/type-shift), with a share upper limit defined in 【Preference·Text Volume】.

Text volume red lines:

  • It is forbidden to copy full SRT sentences onto a card (hard constraint); they must be refined into word chunks. Character count upper limit is defined in 【Preference·Text Volume】—if the preference table doesn't give a number, stick to the baseline of "significantly shorter than the original spoken sentence."
  • Rhythm within the card must align with the voiceover (important): For any card that reveals items/steps one by one (checklist, step-timeline, pin-board, etc.), its rhythm parameters (stepMs/staggerMs/shiftAtMs/countMs) must be calculated from the actual SRT duration, never use defaults:
    • Calculation: rhythm parameter ≈ (total duration of the corresponding SRT segment (seconds) × 1000) ÷ number of items, then slightly reduce by 10% for the entry time required for the first item to appear.
    • Example: Three pain points begin at 15.1s / 19.1s / 24.6s, and the segment ends at 27.9s → each item is approximately (27.9−15.1)/3 ≈ 4.3s → stepMs: 4200.
    • When item intervals are clearly uneven, prioritize splitting the card into multiple smaller cards with different times, or choose a card type that does not subdivide items.
  • Color assignment: Within the same episode, the same semantic meaning always has the same color. This is a hard requirement. "Which color represents which semantic meaning" is a design convention, defined in 【Preference·Color·Color-Meaning Convention】—if the preference table does not specify, use a single accent across the entire episode. Never assign a different color to each card.

Universal Parameters (Supported by All Cards)

  • dimAt (seconds, absolute time on the timeline): After being mentioned, fade and shrink. At this point, the entire card darkens and shrinks (amplitude uses component defaults). Cards arranged in the same seg group will have the content below automatically moved up to fill the gap, but the card does not leave; the entire topic is considered ended only when end is used to exit. When orchestrating, fill this in for every evidence/opinion card: value = the second when the next topic begins. This is the key to "composition feel"—old information is present but gives way, allowing the audience to glance back at already-stated arguments at any time.
  • theme (overrides global), offsetX/offsetY (position fine-tuning in px), accent (blue for data blue / alert for negation red / orange for transition orange), scale (single card size multiplier), speed (single card animation speed multiplier, default 1).

Output Format (Save as episodes/<episode_name>/overlay.json)

{
  "version": 1,
  "theme": "dark",
  "ratio": "h",
  "srt": [{ "start": 0.5, "end": 3.8, "text": "Have you ever felt like, even though you're learning every day" }],
  "cards": [
    {
      "id": "card-1",
      "kind": "blur-text",
      "start": 0.5,
      "end": 4.2,
      "params": { "text": "Don't you|feel the same?", "accent": "blue", "position": "center" }
    }
  ]
}
  • theme: "dark" (dark tone) or "light" (light tone). Ask the user if not specified; if inconvenient to ask, default to "dark".
  • ratio: "h" (16:9 landscape, default for talking-head videos) / "v" (9:16 portrait) / "4:3". Ask first; if inconvenient to ask, default to "h". The export aspect ratio is determined by this.
  • srt: Include the parsed subtitle script here (an array of {start,end,text})—the user can check timing line by line when fine-tuning in the engine editor. The export script does not use it, but the editor does.
  • id: card-1, card-2, ... incrementing, must not repeat.
  • kind: Must be the id from the Card Library (within the 23-type whitelist).
  • start/end: seconds (can be decimal), must come from real SRT time, end > start.
  • seg (top-level card field, optional): Segment group—cards with the same seg enter a left-column auto-inline container (starting at x=120, y=96, vertical, spacing 28px). The first member (the card that appears first in the entire segment) is the segment's drag handle: its offsetX/offsetY moves the entire segment; other members' offsets are fine-tuning within the group. Cards that are displayed side-by-side in the same segment must share the same seg. Large standalone cards (type-shift/terminal-3d, one per segment) do not need seg.
  • params: Only write fields that need to be overridden; the rest will automatically use the card's tuned defaults (do not invent fields).
  • Prohibited: Types outside the Card Library, custom UI/style fields (e.g., x/y/w/fontSize/color in hexadecimal), cards without a time, stuffing the entire episode's content into one card.

lintOff is the User's Active Decision (Hard Rule)

"lintOff": true or "lintOff": ["ruleName"] on a card is a marker written by the user by hand-clicking "Ignore" in the editor. When re-orchestrating, rewriting a single card, or enriching, always keep this field exactly as is. It is strictly forbidden to "fix" this card into something that complies with the rules.

Card Library (23 Types, Only These Kinds Can Be Used)

Permanent Layer (No frame of the video is "unmanaged")

KindPurposeTriggerKey params
chapter-barChapter navigation bar, full width at the top, present throughoutOne per episode, start=0 to the endchapters ("chapter_name start_second" separated by `
pin-boardKey points pin board · key points mentioned are pinned one by one in a corner, never disappearA segment has 2-4 short key points that need to "stay after being mentioned," pinned in a corner for the entire segment; only short phrases, no data linestheme (background color (this card acts independently)), position (placement), title (chapter title (can be empty)), subtitle (emphasized subtitle (can be empty)), items (key points (separated by /, pinned one by one)), stepMs (interval between pinning each item (for timing with voiceover)), accent (emphasis color (for subtitle))

Evidence & Empirical (Core of Semantic Visualization, Prioritize)

KindPurposeTriggerKey params
stat-proofNumeric evidence, large digit rolling countMilestone/achievement/amount: "30,000 followers achieved"kicker (mono EN), kickerZh, value, prefix/suffix, footEn/footZh, countMs (timing), position

Data Metrics (Use When Specific Numbers Are Present; Don't Use It to Explain Concepts)

KindPurposeTriggerKey params
ring-metricMetric ringSingle ratio metric (ring is more eye-catching)kicker, value, max, unit, label, position (left/right/center)
odometerFlip counterSingle integer odometer wheelkicker, value (integer), unit, label, position
rank-barsData ranking barsMultiple data comparison ranking: "A 42%, B 21%"title, rows (name,value separated by `
growth-curveGrowth curve: smooth curve animation drawn + gradient area, peak value rolling count"Accumulating more and more / rising all the way" compound narrativekicker/kickerZh, points ("label value" separated by `
growth-barsBefore-and-after two bars + increase · gray bar "before" vs. emphasized color bar "after" + increase sticker + optional key points list"Increased from 10% to 22%"; two-bar before-and-after comparison + increase stickertitle (title (*word* for emphasis)), note, aLabel/aValue, bLabel/bValue, unit, sticker (increase sticker), pointsTitle/points (key points separated by `
donut-splitRing share · segments grow clockwise into a ring, highlighting the current segment when mentioned"Composed of these parts"; 2–6 item share compositionkickerEn/kickerZh, title, items (one line per item name:value, 2–6 items), unit, centerLabel, times (seconds to start drawing the ring), focusTimes (seconds when each item is mentioned, separated by `
waterfall-bridgeWaterfall chart · starting bar rises, addition items drop down, subtraction items are pulled away, ending bar lights up with total change"From 100 to 120, what happened in between"; break down the addition/subtraction process, max 6 stepskickerEn/kickerZh, title, start (name:value), steps (one step per line name:+value/-value, max 6 steps), endLabel, unit, times (starting bar
radar-profileRadar profile · main object polygon grows out, can overlay comparison object and mark the axis with the biggest gap"Where is it strong, where is it weak, see it all in one chart"; 3–10 dimension comparisonkickerEn/kickerZh, title, axes (dimension names separated by `
waffle-fillHundred-grid waffle · 10×10 grid filled by category, legend numbers roll"Out of every 100 people, 38 are like this"; 2–8 category shareskickerEn/kickerZh, title, items (one line per category name:value, 2–8 categories), unit, focus (focus on which category, 0 = do not focus), times (start filling

Comparison & Trade-Off (Two Things Colliding / Negating One to Establish Another)

KindPurposeTriggerKey params
versus-cardVS comparison cardChoice between two: "Active vs. Passive"aKicker/aTitle/aSub, bKicker/bTitle/bSub, winner (a/b/none)

Golden Quote & Opinion (Most Common in Spoken Dialog, One Sentence One Card)

KindPurposeTriggerKey params
quote-lockupGolden quote freeze cardMulti-line golden quote revealed line by line (frosted glass card)quote (separated by `
punch-pillGolden quote pillShort golden quote / rhetorical question freeze: "What would you choose?"text, position (bottom/top-left/top-right)

Steps & Flow (Process with a Sequence)

KindPurposeTriggerKey params
step-timelineVertical chapter cardEpisode chapters/tutorial outlinetitle (*keyword*), steps (separated by `
checklistStep check-offSequential completion of stepstitle, items (separated by `

Tutorial Annotation

KindPurposeTriggerKey params
term-cardTerm explanation cardTerm appears that needs explanation: Plan mode, MVP...en (English), term, def (one-sentence definition), position (left/right)

Text Entry (Entry Method for Plain Text, Use When Content Is Light)

KindPurposeTriggerKey params
blur-textBlur-in revealEmotional/heartfelt sentence, word chunks appear from blurtext (separated by `
type-shiftTypographic flowEnding climax / multi-line golden quotelines (separated by `

Entity Anchor

KindPurposeTriggerKey params
entity-chipsEntity name card: white card (institution) + black card (person·title) slide in sequentially and then stayWhen discussing a specific person/company/product, pin a row of name cards to anchor, stay for the whole segmentchips (one block per line: `light/dark

Scene · B-roll (Full Screen Background Board, One per Segment)

KindPurposeTriggerKey params
terminal-3d3D terminal typewriterWhen discussing command line / code execution process; simulate back-and-forth dialog with AI ("change→wrong→change again→✗ still wrong" typed out word by word)file (title bar), lines (separated by `

Specified Card (User Order, Highest Priority)

While providing the SRT, the user can specify a particular passage to use a specific card. Three formats are supported (can be mixed):

  • By original text: "Use versus-card for 'Collecting is not the same as learning'" → Full-text search for this sentence in the SRT (allow approximate matching), use the real start/end time of the subtitle line where it appears.
  • By time: "2:10-2:25 uses versus-card" → Use the given interval directly (convert to seconds).
  • By content description: "Use pin-board for the section describing three pain points" → First locate that semantic segment in the SRT, then apply the card.

Processing rules:

  1. Order must be obeyed: The specified segment uses the designated kind, even if Graphics First would choose another card; the remaining unspecified segments proceed with automatic orchestration as usual.
  2. The content must still be re-refined according to the card's form (word chunks/items/rhythm parameters are calculated from the SRT following [Rhythm within the card must align with the voiceover]), not copied verbatim.
  3. When a specified card conflicts with an automatically orchestrated card (same screen position, same time), move the automatic card, not the specified one.
  4. When the specified kind is outside the whitelist (including prohibited focus-card/ui-callout), do not force it: reply with an explanation and recommend 1-2 similar cards for the user to choose from.
  5. If the specified sentence/time cannot be found, ask first; do not guess.

Enriching (Add Only, Do Not Modify)

When the user gives an already-tuned overlay JSON and requests "enrich it / make it more abundant / add more cards":

  1. Do not touch any existing card (id/time/parameters remain exactly as they are)—those were manually tuned by the user.
  2. Only insert new cards in gaps and weak segments: First scan for time periods longer than 3s with no new action, then add cards there according to the density and diversity rules in Orchestration Rules.
  3. New card ids continue incrementing from the existing maximum id, do not share the same position and time as an existing card, and do not be adjacent to the same kind.
  4. Output the entire JSON and include a note: how many cards were added, concentrated in which time periods.

Single Card Rewrite (Swap Card)

When the user requests "Replace card-X with ":

  1. Only modify that one card: id, start, end remain exactly the same; theme/accent/offsetX/offsetY/scale/speed are reused as much as possible.
  2. The content must be rewritten, not copied: Go back to the original text in the SRT for this card's time period (start–end), and reorganize it according to the new kind's form (number of items, format, rhythm parameters all follow the new card's expected structure; rhythm still calculated from the SRT).
  3. Leave all other cards untouched. Output the entire JSON.
  4. If the SRT is not in the episode directory, first ask for it. If truly unavailable, rewrite based on the old card's text, but note that this is a degraded process.

Learn (Settle Personal Preferences from User Edits)

Do not run automatically. Only execute when the user says "learn" after exporting.

  1. Collect materials: Read the latest *-review-log.json from the engine directory exports/review-logs/ (automatically saved when the user exports from the editor, containing origin (AI initial selection) and final (user's final adjusted selection)); or the user directly provides two JSONs.
  2. Diff each card, classify: deleted cards / added cards / cards with kind changed / cards with time moved / cards with parameters changed.
  3. Abstract generalizable preferences, not a running log: A modification must occur ≥2 times to be considered a tendency; if it occurs only once, first ask if it's a coincidence.
  4. Confirm each item: Is it a legitimate exception (special for this episode, do not learn) or a rule change (do this from now on)? Only write conclusions marked as "confirmed."
  5. Write confirmed conclusions, split by nature:
    • What can go into a value table → Write into the pipeline root's my-preferences.md (do not modify my-preferences.default.md, as it will be overwritten by upgrades);
    • One-sentence qualitative rules → Write into experience-rules.md;
    • Machine-checkable thresholds → Sync to the engine directory's lint-rules.local.json so lint also checks against the user's standards.
  6. If the orchestration JSON was fine-tuned in the editor, re-run lint + export-mov before delivering.

Delivery Method

After export, deliver three items:

  1. Output file path: episodes/<episode_name>/output/<episode_name>_overlay.mov (alpha channel ProRes 4444, includes auto-mixed sound effects track).
  2. Overlay instructions: Back in CapCut/Premiere Pro, drag the MOV above the talking-head track, align to frame 0. Sound effects are already in the MOV audio track; if they are too loud, lower this audio track by -12~-18dB or mute it in the editor.
  3. Fine-tuning entry (optional): If the user wants manual adjustments—cd <engine_directory> && npm run dev, open browser at http://localhost:5177, click "📥 Import JSON" and select overlay.json, fine-tune each card, then directly export from the editor (editor export goes to its own directory). After saving the modified JSON, the user can bring it back here and finish updating STATUS.md.

Appendix: Quick Command Reference

ActionCommand
Create a new episodenode scripts/new-episode.mjs <episode_name>
Environment checknode scripts/studio.mjs check
Lint checknode scripts/lint.mjs episodes/<episode_name>/overlay.json --duration <duration_in_seconds>
Export transparent MOVnode scripts/export-mov.mjs episodes/<episode_name>

相关技能