Communitygithub.com

poetry-video-production

Plan, produce, review, or maintain 16:9 classical Chinese poetry appreciation videos (古诗词赏析视频) for Bilibili/YouTube in the channel's locked Light Chaser 3D Guofeng style. Use for episode planning, recitation and appreciation scripts, face-locked keyframes and I2V clips on Colab, dual-register voice synthesis, HyperFrames compositing, commercial-safe covers and multi-platform publishing copy, QA gates, and review/publish delivery.

poetry-video-production 是什么?

poetry-video-production is a Claude Code agent skill that plan, produce, review, or maintain 16:9 classical Chinese poetry appreciation videos (古诗词赏析视频) for Bilibili/YouTube in the channel's locked Light Chaser 3D Guofeng style. Use for episode planning, recitation and appreciation scripts, face-locked keyframes and I2V clips on Colab, dual-register voice synthesis, HyperFrames compositing, commercial-safe covers and multi-platform publishing copy, QA gates, and review/publish delivery.

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/shixukai/poetry-video-skill/tree/HEAD

在你喜欢的 AI 中提问

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

文档

Classical Chinese Poetry Video Production

Produce serialized 16:9 poetry appreciation episodes (1920×1080, 30 fps master) that look, sound, and read like one channel. Exact numbers live in config/brand-tokens.json; this file holds the workflow and the invariants.

Skill vs. episode boundary

  • In the skill: rules, scripts, JSON templates, SIL OFL fonts, the two frozen voice anchors, the polyphone glossary, brand tokens.
  • In the channel/episode workspace, never in the skill: the character-free style_anchor.jpg, char_sheet_<poet>.jpg, keyframes, clips, scripts, voice plans, manifests, renders, QA sheets, publish_kit/ covers and publishing copy.
  • When an episode teaches something reusable, generalize it before adding it here. Don't add poem-specific text, palettes, or episode IDs.

Workflow

Each step ends in a gate; don't advance until it passes. Every JSON input has a template in assets/.

  1. Plan. Pick a mood from mood_palette_presets in brand tokens. Size the shot list from poem length and appreciation depth; there is no fixed shot count.
  2. Script. Recite the whole poem first, then bridge with WHO/WHEN/WHY, then warm storytelling appreciation (script-and-voice.md). Gate: python scripts/check_consistency.py script <script.txt> passes; python scripts/check_consistency.py polyphone <script.txt> --output <annotated.txt> reviewed (annotated text is only for IndexTTS patches).
  3. Voice. python scripts/synthesize_cctv_dual_register.py --plan <voice_plan.json> (voice-plan-template.json). Fix misread polyphones by rendering the sentence with synthesize_poetry_emo_voice.py ("skip_polish": true) and setting patch_wav on that segment, so it gets the same DSP. Gate: per-segment chars/s inside the token windows; listening review reported separately from measurements.
  4. Look lock. Start Colab (colab new -s <session> --gpu G4; weights from $POETRY_COLAB_MODELS_DIR). Create and approve char_sheet_<poet>.jpg from the style anchor, then all keyframes: python scripts/gen_qwen21_keyframes.py --profile colab_highspec --url <url> --token <token> --spec <spec.json> (keyframes-spec-template.json, art-bible.md). Gate: build and inspect both sheets, regenerating any drifted shot: python scripts/check_consistency.py keyframe-sheet --reference <char_sheet> --inputs <character keyframes> --output <qa>/character_face_qa.png python scripts/check_consistency.py keyframe-sheet --inputs <keyframes_dir> --output <qa>/all_keyframes_qa.png
  5. Animate. python scripts/gen_ltx2_i2v.py --node colab --image <kf.jpg> --prompt "<positive physical motion>" --output <clip.mp4> (defaults: 193 f, img_compression 18, 960×544 → 2× on ≥36 GB GPUs). Long beats get camera-scale cuts or last-frame continuation (motion-and-layout.md). Gate: t0/t1/t2 frames of every clip inspected; then colab stop -s <session>.
  6. Build. python scripts/build_episode_master.py --manifest <manifest.json> (episode-template.json). It stabilizes and conforms clips, enforces zero-loop, renders HyperFrames, masters loudness, runs font/video checks, writes master_qa_grid.png and finale_full_poem_card.png, and stages to review when delivery_slug is set. Gate: quality-and-consistency-gate.md.
  7. Package (Mandatory before review sign-off). Generate the 3 commercial-safe covers (16:9 poetic A, 16:9 high-CTR B, 3:4 vertical) via python scripts/build_publish_covers.py --spec <publish_covers.json> (publish-covers-template.json) and write multi-platform publish_copy.md (Bilibili, YouTube bilingual + exact master-synced chapters, Xiaohongshu/WeChat Channels) into <episode_dir>/publish_kit/ (publish-kit.md). Stage with scripts/deliver_episode.py stage --publish-kit-dir <publish_kit> so video, QA, and publish kit sit together in review. Gate: python scripts/check_consistency.py publish-kit <publish_kit> passes AND all 3 rendered covers are visually inspected (zero □ tofu glyphs, zero face/figure overlap, zero third-party studio names); chapter timestamps match the rendered master and dates/age match the narration script.
  8. Deliver. Only after the user approves: python scripts/deliver_episode.py approve --slug <slug> (verifies publish_kit/ is present alongside the master before promoting). Add --force only if the user confirms replacing an existing published folder.

Invariants

  • Look: Light Chaser theatrical 3D Guofeng (《长安三万里》/《白蛇:浮生》 craft). No live action, 2D linework or parchment washes, teal-orange RPG grading, plastic skin, neon rim light, or AI-baked text.
  • Face lock: character shots use image_1 = style_anchor.jpg + image_2 = char_sheet_<poet>.jpg; scenic shots use the anchor only. Never text-only character prompts. Both QA sheets are inspected before any I2V.
  • Composition: narrative shots full-bleed 16:9; calligraphy sits on living sky or mist with a soft halo, never an opaque block; the discussed lines stay pinned top-right during appreciation.
  • Zero loop: each clip plays forward once (stretch ≤ 1.42×, no reuse, no ping-pong, no freeze > 0.15 s), plus a dedicated finale shot. The build scripts fail on violations.
  • Structure: 3.5 s breathing lead-in → full poem recited without interruption → appreciation → 5.5–7.5 s full-poem closing card.
  • Voice: both registers cloned from the frozen anchors with Qwen3-TTS Base. Poem gets hall reverb, narration stays near-dry. No exam-style jargon (the script gate blocks it).
  • Compute: Colab Pro+ full precision first. Quantized local presets are an offline fallback. Always stop the Colab session after downloading.
  • Fonts: bundled SIL OFL fonts only; check_consistency.py fonts <project> reports no issues.
  • Master: 1920×1080, 30 fps, h264/yuv420p, 48 kHz stereo, −15.5 ± 1.5 LUFS, ≤ −1.5 dBTP, checked by check_consistency.py video.
  • Publish kit: mandatory 3 SIL OFL covers (16:9 A/B + 3:4 vertical, pure Hanzi on SourceHanSerifSC-Heavy, zero studio names) + publish_copy.md with master-synced chapters, audited by check_consistency.py publish-kit and visually inspected before delivery.
  • Paths: never hardcode machine or NAS paths; use the environment variables in README.md.
  • Honesty: report measured metrics separately from what was actually watched or listened to.

References

Read only what the current step needs:

  • art-bible.md: keyframes, character sheets, style anchor, mood palettes, image-model parameters.
  • motion-and-layout.md: I2V engines and parameters, zero-loop shot planning, stabilization, prompt discipline, overlays, typography, finale card.
  • script-and-voice.md: episode structure, narration craft, voice registers, music and ambience, polyphone patching.
  • publish-kit.md: mandatory 16:9 A/B + 3:4 covers, pure-Hanzi/brand-safety rules, multi-platform publishing copy and exact chapter sync.
  • quality-and-consistency-gate.md: the full pre-animation, pre-render, cross-episode, publish-kit, and delivery checklist.

相关技能