Communitygithub.com

Cennyk-learner/ppt-cinematic-animation

把路演、答辩、竞赛、课堂展示 PPT 的静态页做成电影感的动画页:实拍质感底图 + 循环动图 + PowerPoint 原生动画和平滑切换,文字保持可编辑,全部做在页面里。内含从多轮真实返工里总结出的审美与协作原则、做过的动画手法库(含被否掉的)、发散创意的方法,以及"生图出成套同构底图 → Python 合成 → COM 组装 → 导出视频抽帧核对"的整条流程和踩过的坑。用户提到 PPT 要"做动画""做动图""让这页动起来""电影感""转场""平滑切换""聚光灯""宏大""机理演示""大屏",说某页"太平淡""AI感强""排版乱",或者要"几个创意方向""发散一下"时都应使用;即使只说"美化这页 PPT",只要目的是让页面在放映时有画面和节奏,也应使用。只做静态排版、整套 PPT 从零生成、或纯视频剪辑不属于本 skill。

ppt-cinematic-animation 是什么?

ppt-cinematic-animation is a Codex agent skill that 把路演、答辩、竞赛、课堂展示 PPT 的静态页做成电影感的动画页:实拍质感底图 + 循环动图 + PowerPoint 原生动画和平滑切换,文字保持可编辑,全部做在页面里。内含从多轮真实返工里总结出的审美与协作原则、做过的动画手法库(含被否掉的)、发散创意的方法,以及"生图出成套同构底图 → Python 合成 → COM 组装 → 导出视频抽帧核对"的整条流程和踩过的坑。用户提到 PPT 要"做动画""做动图""让这页动起来""电影感""转场""平滑切换""聚光灯""宏大""机理演示""大屏",说某页"太平淡""AI感强""排版乱",或者要"几个创意方向""发散一下"时都应使用;即使只说"美化这页 PPT",只要目的是让页面在放映时有画面和节奏,也应使用。只做静态排版、整套 PPT 从零生成、或纯视频剪辑不属于本 skill。.

兼容平台~Claude Code✓Codex CLI~Cursor
npx skills add Cennyk-learner/ppt-cinematic-animation

在你喜欢的 AI 中提问

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

文档

Cinematic PPT Animation Page

Transform a static PPT slide into a page that "tells a story" during a presentation: each click advances to a new scene, within a scene multiple beats auto-play sequentially, the visuals are photorealistic scenes with light that tells the story, and text keeps only keywords. The output is an editable .pptx file, with continuous motion delivered by looping GIFs, and transitions, text reveals, line draws, and one-time large actions delivered by native animations.

Dependencies: Windows + Microsoft PowerPoint (COM), Python (numpy, opencv-python-headless, python-pptx, Pillow, plus playwright for web page capture), ffmpeg, an image-to-image generation tool (tested with Codex CLI's built-in generation).

How to Use This Skill

It consists of three parts:

  1. Aesthetic and Collaboration Principles (references/taste.md). Read before starting. Each principle corresponds to a past major rework; they are the default aesthetic baseline. The user's current spoken preferences always take precedence.
  2. Techniques and Processes Used (style-library.md, pipeline.md, pitfalls.md, scripts/). These are assets: they save effort, avoid pitfalls, and show what works well and what has been rejected.
  3. Your Own Ideas. The technique library is a starting point and reference, not a template. For new requests, always start from the content and generate your own ideas (references/ideation.md). Consider all possible cinematic, design, photography, and display references; the most worthy visuals are those not in the library.
WhenWhat to Read
Before starting, or unsure about a visualreferences/taste.md
When generating creative directions or writing proposalsreferences/ideation.md
To see what techniques have been done and which were rejectedreferences/style-library.md
When starting image generation, compositing, or assemblyreferences/pipeline.md
Before writing scripts or encountering strange problemsreferences/pitfalls.md
To see a complete working example firstexamples/lighthouse/

Aesthetic Baseline (Shortest Version)

  • Content First. Animation must not detach from what this slide is about; if the slide only covers two points, build around those two points. Even the best shot should be cut if irrelevant. Keep only keywords as text.
  • Be Real. The "AI look" of generated images is the most common reason for rework. Aim for a news-style photorealistic feel, with a touch of cinematic light and atmosphere. At least half of the visuals should be real scenes; abstract data spaces and tech aesthetics are not desired.
  • Tell a Story. A scene should have several different types of motion and clear light. A single image with one looping action feels flat. But avoid vibrations, flashes, and impact blurs – those are cheap thrills.
  • Highlight the Main Point. The screen, device, curve, or detail that carries the key point should be large and in a dominant position.
  • Don't Add Unnecessary Elements. Do not add text, progress bars, or decorative elements that were not requested. Text must be clear, beautiful, and not cluttered.
  • Don't Repeat. Do not use the same visual twice in the same document. Do not reuse assets between slides.
  • PPT is for understanding and believing, not for providing evidence. Comparisons can be illustrative, but clearly state which parts are illustrative when delivering.

How to Collaborate

Reworks almost always come from understanding gaps, not technical issues. Therefore, the sequence is fixed unless the user explicitly says "just edit directly":

  1. Clarify. First, correct misunderstandings and restate the requirements. Number the questions, each with your suggestion, so the user can answer with a single sentence.
  2. Use Available Materials. Go through the existing PPT, interface screenshots, photos, and data. The most useful visuals are often hidden in the materials.
  3. Generate Ideas, Propose Directions. Provide three to four distinct creative directions, each with visual descriptions, references, and effort required, plus your recommendation. See ideation.md for the format.
  4. Describe Each Beat. After a direction is chosen, describe each scene in sequence: what happens, how many clicks, and duration. Wait for confirmation.
  5. Produce Samples First. For new visual styles or subject matter, first generate a few sample images to see the effect. Proceed to full production only after approval.
  6. Produce, Export, and Extract Frames for Review. Do not infer "it should be correct" from the script.
  7. Report Honestly. See the last section.

Save each version's assets and outputs separately to allow reverting to older versions or side-by-side comparison of multiple directions. See pipeline.md Section 7 for details.

Hard Constraint: GIFs Start Playing from the Moment the Slide Enters

GIFs in PowerPoint do not wait for clicks or "appear" events. The entire division of labor follows from this:

ContentHow to Implement
Continuous atmosphere (rain, snow, fog, lamp pulsation, car lights flowing, light beam sweeping)Seamlessly looping short GIF; it doesn't matter which frame it starts from
The first scene's process upon slide entryCan use a GIF; can also play once and stop at the last frame
Processes that happen only after a click, with a sequenceEach state as a separate transparent layer; use native fade-in or wipe in order to switch. Do not make a single long GIF
State transitions (dry to wet, on to off, night to morning)Use native crossfade or fog transitions between several looping GIFs
One-time large actions (collapse, dust cloud, file sliding in, camera push)Transparent layers + native motion paths, scaling, fade-out
Line drawing, text reveal line by line, gradual interface changesStack several images that differ only slightly at the same position; use wipe to reveal them sequentially
Cross-slide camera pushes (from wide shot to detail)Morph transition; place identically named shapes on two slides (see pitfalls.md)
All textNative text boxes for easy later rewriting

Process Overview

  1. Extract the Target Slide. Use python-pptx to extract a single-slide small file as the draft. Do not use COM to open a multi-hundred-MB full file.
  2. Generate Images. Generate a full set of homogeneous visuals for one task: base image, its edited variants, segmentation masks, and blank screens/desktops. The prompt for realistic photos is in prompts/real_photo_head.txt; examples are in prompts/real_photo_examples.md.
  3. Composite. scripts/render_tools.py provides utility functions for looping GIFs, transparent layers, line drawing, light beam and lighting reveals, screen compositing, and frame extraction. Custom compositing scripts should be written per scene based on content. For real interface HTML, use scripts/capture_page.py to run it and capture frames.
  4. Assemble. scripts/ppt_tools.ps1 contains COM utility functions. scripts/build_page_example.ps1 is a minimal two-scene example (paired with scripts/demo_assets.py that works without a generation tool). examples/lighthouse/ is a complete example from generation to final output.
  5. Review. Export the presentation video, extract frames to a contact sheet, and review the order, timing, occlusion, and text for each scene. scripts/cap_show.py can screenshot in the background during a real slide show.

What to Include in Delivery

  • Where the final file is, number of slides, file size, and location of preview video.
  • Number of clicks per slide and what happens with each click.
  • A mapping of each comment from the previous round to the specific change made.
  • How the review was done: which parts were seen from extracted frames of the exported video, and which were not clicked through in a real show.
  • Which content is illustrative, drafted by you, and which is taken from the user's materials.
  • Decisions needed from the user, numbered, with your suggestions.
  • Fonts that need to be installed for playback on a different computer.

相关技能