codex-ppt
它能做什么
这项技能通过将每张幻灯片生成为完整图片并合并,从源材料构建 PowerPoint 演示文稿。适合希望获得精致外观、并接受基于图片的幻灯片(而非可编辑形状)的人。
适用场景
- ✓当你希望根据文章、报告或一组笔记制作演示文稿的时候。
- ✓当你希望每张幻灯片都具有统一的视觉风格的时候。
- ✓当你不需要每张幻灯片上的文字和形状保持可编辑的时候。
技能链接
https://github.com/ningzimu/codex-ppt-skill/blob/main/skills/codex-ppt/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“把这份报告做成一个 10 页的演示文稿,风格简洁统一。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体依次完成审批步骤,先制作一张示例幻灯片,然后将其余幻灯片生成为图片。脚本把最终图片组装成一个 PowerPoint 文件。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Codex PPT
Overview
This skill creates image-based PowerPoint decks from source material. Each slide is a complete 16:9 generated image. Final images are assembled into .pptx with scripts/assemble_ppt.py.
Use this when the user wants a visually unified presentation and accepts full-slide image pages. Do not use it when every textbox, chart, or shape must remain separately editable.
Prefer the built-in image generation/editing tool. Use scripts/image_gen.py only when the built-in backend is unavailable, lacks a required capability, or the user explicitly asks for API/CLI mode.
Hard Constraints
- Read the relevant
Reference Mapfiles before each phase. This file is the orchestration contract; detailed rules live indocs/and worker prompts inprompts/. - Respect approval gates. Do not create final
deck_spec.json,speech.md, prompt jobs, slide images, or.pptxbefore the approvals indocs/workflow-gates-and-progress.md. - After the user approves the sample slide and authorizes full-deck generation, every remaining slide image job must be dispatched to a slide subagent whenever subagents are available.
- The main agent owns orchestration, prompt jobs, state recording, QA, speaker notes, and assembly. Do not silently replace available slide subagents with sequential production.
- Every final
origin_image/slide_XX.pngmust be generated by the selected image backend: built-in image generation/editing tool orscripts/image_gen.py. - Local drawing, Pillow, SVG, HTML/CSS/canvas screenshots, python-pptx/PptxGenJS layouts, and manual overlays are failure modes, not fallbacks.
- The selected image backend must stay fixed after backend confirmation. Do not let subagents switch backend for convenience.
- After sample approval, record how the approved sample was generated and pass that exact method to every slide subagent.
- Slide dispatch and result state must be recorded with the bundled scripts. Chat messages alone do not make a slide dispatched or complete.
- If a required subagent, image backend, or required-image path is unavailable, stop and report a blocker with the slide id and evidence. Do not create a lower-quality replacement.
Visible Progress
For non-trivial decks, keep a user-visible checklist with one active step. Canonical completion evidence is in docs/workflow-gates-and-progress.md.
Default visible steps:
- Prepare source, outline, style, and backend decisions.
- Generate and approve one sample slide.
- Prepare slide jobs and slide state.
- Dispatch slide subagents.
- Record generated slide results.
- QA, repair, notes, and PPT assembly.
Do not mark a step complete from chat alone; use real files or script-recorded state.
Default Workflow
Understand the source content.
- Identify topic, audience, goal, page count, style/brand constraints, and sections to include or exclude.
- If no page count is specified, choose a practical count. Typical decks are 8-12 slides.
Plan the deck outline.
- Before writing or updating
outline.md, readdocs/workflow-gates-and-progress.mdanddocs/outline-style-and-sample.md. - Draft slide roles and required source images. Ask for confirmation, then stop before style, backend, sample, or downstream artifacts until approved.
- Before writing or updating
Confirm a unified visual style.
- Before offering style options or using files from
references/, readdocs/outline-style-and-sample.md. - Offer 2-3 concrete style directions, recommend one, wait for confirmation, then keep one visual identity while varying layouts by page role.
- Before offering style options or using files from
Confirm the image backend.
- Before generating any slide image, read
docs/backend-selection.md. - Check whether a built-in image tool is callable, state what you checked, name the backend, explain fallback status, and wait for confirmation.
- If CLI/API fallback is selected, read
docs/cli-api-fallback.md. Readdocs/image-model-configuration.mdonly after config errors or explicit API-setting requests.
- Before generating any slide image, read
Generate one sample slide for approval.
- Before generating or approving the sample slide, read
docs/outline-style-and-sample.md. - Generate exactly one representative sample after outline, style, and backend are confirmed. Do not generate the full deck until approved.
- After approval, record
sample_generation_methodindeck_spec.jsonso jobs and subagents inherit the same path.
- Before generating or approving the sample slide, read
Create the project directory.
- Before initializing folders or assembling files,
常见问题
之后我能编辑幻灯片上的文字吗?
不容易,因为每张幻灯片都是一张完整的图片,而不是独立的文本框。
智能体会在制作整套演示文稿之前询问吗?
会。它会等待你批准一张示例幻灯片,然后才制作其余的部分。
它会生成什么输出文件?
一个 .pptx PowerPoint 文件,由幻灯片图片组装而成。
详情
作者的原始描述
Generate visually unified image-based PPT/PPTX decks from articles, reports, papers, notes, or outlines.
repo: ningzimu/codex-ppt-skill
热度
- GitHub 星标
- 7.6k
- 排名
- #13211
- 许可证
- MIT
- 更新时间
- 2026/10/13
评论
- …