mr-funny/classical-poem-silk-video
Turn Chinese classical poems and ci into coherent vertical Chinese-art videos with poem-driven scene grouping, GPT ImageGen stills, Docker-only Gemini I2V, retained model-generated ambience, Gemini sparkle-watermark cleanup, brush-calligraphy captions revealed character by character, optional local BGM mixing, stitching, and final-frame QA. Supports verse-driven variation across ink landscape, gongbi bird-and-flower, colored figure-and-horse painting, blue-green landscape, xuan paper, silk, and related Chinese visual languages. Use when users ask for 古诗词动态视频、诗词逐句或两句一景、国风视频、毛笔字逐字出现、整首诗拼接成片,or want the established 月落乌啼霜满天 workflow applied to another poem.
npx skills add https://github.com/Mr-funny/hbg-classical-poem-silk-video --skill classical-poem-silk-video
Create a finished 9:16 poem video from the complete poem. Keep the visual series coherent without forcing every scene into one antique-silk template, let each scene express only its assigned lines, retain each generated clip's original ambience, and deliver the final MP4 visibly in chat.
Before the first run on a machine, read runtime-contract.md and run check_prerequisites.sh. Never print, copy, or commit authentication cookies, API keys, browser profiles, or generated account data.
image_gen tool. Leave clean negative space on the right for typography. Save every accepted image into the active project.gemini-flow-suite Docker container without opening or controlling the host browser. Use docker_gemini_i2v.sh and a scene-specific motion prompt. Require natural ambient audio and no spoken dialogue. If the runtime is missing, follow runtime-contract.md; never improvise by exposing credentials or driving the user's browser.Ma Shan Zheng; place the first line in the right column and the second in the left column. Reveal one character at a time and omit punctuation from the displayed columns.10. Burn captions and retain the AI clip's original audio with render_scene.sh. Do not replace or discard the source audio.
11. Join the rendered scenes. Use concat_poem_crossfade.sh when adjacent scenes should dissolve naturally, or concat_poem.sh for deliberate hard cuts. Crossfade both picture and retained ambience, while keeping BGM continuous and quiet beneath them; never restart the BGM at every scene.
12. Run final_media_qa.sh on the final encoded file. Verify 1080x1920, 30 fps, H.264/AAC, expected duration, both audio sources, safe typography, no white sparkle watermark, preserved red seal, natural transition midpoints, and no black or corrupt ending frame. Open suspicious frames at full resolution before delivery.
image_gen tool for still frames. Do not use Gemini/Flow image generation for them.Return the scene grouping, saved still paths, cleaned clip paths, final video path, and a short QA note. Render the final MP4 in chat using its absolute path. Do not claim completion from a tool call or file path alone.
Take mr-funny/classical-poem-silk-video from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.