复制安装命令
用 Codex 或 Claude 安装复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它先审查 Skill 页面再帮你安装。
复制前请先查看来源、License 和安全提示。
文档 支持 ClawHub ClawMama GitHub stars GitHub forks
用 Codex 或 Claude 安装复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它先审查 Skill 页面再帮你安装。
复制前请先查看来源、License 和安全提示。
来源文件:README.md
一个面向 Codex 的 PPT 生成 skill,也可在 Claude Code、OpenClaw、Hermes Agent 等支持 SKILL.md 的 agent 中使用;在这些非 Codex 环境中通常需要配置 gpt-image-2、第三方生图 API 或 OpenAI 兼容格式的生图接口。它把文章、报告、论文、课程笔记等内容转换成“整页图片式”的演示文稿:先规划大纲和视觉风格,再生成每页幻灯片图片,最后用本地脚本组装为 .pptx。
![]() | 感谢 Atlas Cloud 赞助本项目。AtlasCloud 是多模态 AI 推理平台,提供统一 API 接入图片生成、视频生成和大语言模型等能力;本 skill 已支持通过现有 API key、base URL 和模型名配置接入 AtlasCloud 的 GPT Image 2 生图和编辑图接口,按量计费,开箱即用。完整模型列表可查看 Atlas Cloud 模型页。 |
[!TIP] 本 skill 负责从文章、报告、大纲或想法生成图片式 PPT,适合强视觉表达,但页面元素本身不可直接编辑。如果你需要进一步转换成可编辑 PPT,可以在生成完成后尝试使用 image-to-editable-ppt-skill 进行转换。
关于
codex-ppt和image-to-editable-ppt这两个技能的详细介绍,参见 skill_duo_intro.pdf。该 PPT 由codex-pptskill 生成,提示词为:“请分别阅读 Codex PPT和 Image to Editable PPT 这两个技能的内容,然后用 Codex PPT 帮我做一个PPT吧,20页,每个技能的介绍10页。”另外,关于这个 PPT Skill 设计和调优的实践经验,可以看这篇文章:2000 个 GitHub Star 换来的经验:好的 AI Skill 是调出来的,不是写出来的。
[!NOTE] 想查看更多用户用这个 skill 做出的 PPT 效果,可以前往置顶 Issue 的案例展示区:欢迎分享 codex-ppt 使用案例和 PPT 效果。
这个 skill 主要给大家提供一个还不错的 PPT 生成流程。为了尽量通用,它的流程设计会稍微复杂一些;复杂也会带来不稳定性或者冗余性。比如它同时兼容 Codex 内置生图和 API/CLI fallback 生图,也会兼容有无子 agent 可用这两种情况,但大部分人日常使用时其实只会固定走其中一条路线。
建议大家在走通自己常用的路线之后,让 AI 帮你改一下这个 skill,把你的偏好固定下来,省得每次都重新选择。比如固定使用内置生图或固定使用某个 API,固定是否使用子 agent,固定常用输出目录、风格、页数节奏等。
另外,如果你在做 PPT 的过程中遇到了自己喜欢的版式或排版,无论是这个 skill 做出来的,还是从别的地方找到的 PPT 风格图片,都可以让 AI 保存到你的个人风格库(~/.codex-ppt-skill/references/)里,逐步沉淀自己的风格。个人风格库存放在 skill 安装目录之外,更新或重装 skill 都不会丢失。Skills 本质上是非常个性化的流程,鼓励大家在使用这个 skill 的基础上,按自己的偏好持续调优,让它更适配自己的工作流。
关于 skills 如何设计和使用,可以参考 good-skill-design.pptx。这个 PPT 也是用本 skill 做的,采用的是手绘技术解释风;内容基于 Claude 在设计 skills 方面的最佳实践文章 The Complete Guide to Building Skills for Claude。祝大家玩得愉快!
SKILL.md 的环境;最推荐在 Codex 中使用,优先走内置生图和编辑图能力。base URL 和自定义模型名配置,方便通过 API/CLI fallback 使用 gpt-image-2 或兼容模型。outline.md、每页要点、风格方向和样张效果,再按确认后的方案继续。~/.codex-ppt-skill/references/),下次直接复用;风格库存放在 skill 安装目录之外,更新 skill 不会丢失,同名时个人风格优先于内置风格。speech.md,并在组装 PPTX 时写入每页备注,方便直接演示或二次修改。下面是一套技术分享 PPT 的生成效果示例。每页都是由 gpt-image-2 生成的完整 16:9 幻灯片图片,再由本地脚本组装为 PPTX。

下面是一套论文答辩风案例,来源于论文 Attention Is All You Need。它展示了如何在指定页中插入论文原始图片作为输入素材,例如模型架构图、attention 模块图和 attention 可视化图,并围绕这些图片生成统一风格的 PPT(见 Issue #14)。

以下是已生成预览图的风格,示例图均由 gpt-image-2 生成,用于帮助用户在开始制作前选择视觉方向。
| 清爽专业风 | 创意杂志风 |
|---|---|
![]() | ![]() |
| 电子墨水杂志风 | 数据仪表盘风 |
![]() | ![]() |
| 复古扁平插画风 | 手绘技术解释风 |
![]() | ![]() |
| 手绘白板风 | 温暖手工风 |
![]() | ![]() |
| 科研答辩风 | 麦肯锡风格 |
![]() | ![]() |
| 党政红风格 | 教学课件风 |
![]() | ![]() |
每个 PPT 会生成一个独立项目目录:
{基础目录}/{PPT名称}/ # 当前 PPT 的独立项目目录
├── origin_image/ # 正式幻灯片图片目录,只放最终采用的页面
│ ├── slide_01.png # 第 1 页幻灯片图片
│ ├── slide_02.png # 第 2 页幻灯片图片
│ └── ... # 后续页面图片,按页码顺序命名
├── outline.md # 经确认的 PPT 大纲、页数、每页标题和要点
├── speech.md # 演讲稿,会写入 PPT 每页备注
└── {PPT名称}.pptx # 最终组装生成的 PowerPoint 文件
你可以在 origin_image/ 里查看每一页最终采用的幻灯片图片,文件会按 slide_01.png、slide_02.png 这样的顺序排列。想预览整套 PPT 的视觉效果,或只挑某一页继续修改时,直接看这里最方便。
speech.md 是配套演讲稿。生成 .pptx 时,这些内容会自动写入每页 PPT 的备注区,你可以在 PowerPoint 里直接查看、修改,或演示时作为讲稿使用。
【推荐】可以直接把下面这句话发给你的 Agent,让它帮你安装:
请帮我安装这个 codex-ppt skill,链接是:https://github.com/ningzimu/codex-ppt-skill
如需手动安装到 Codex,可以使用 skills CLI 安装到 Codex 的全局 skills 目录:
npx -y skills@latest add ningzimu/codex-ppt-skill \
--skill codex-ppt \
--agent codex \
--global
安装完成后,重启 Codex 让新 skill 生效。
也可以从 GitHub Releases 下载 codex-ppt-skill-v*.zip,解压后把其中的 codex-ppt 文件夹放到 ~/.codex/skills/codex-ppt,然后重启 Codex。
如果你是在本地开发这个仓库,也可以把 skill 目录链接到 Codex skills 目录,方便实时调试修改:
mkdir -p ~/.codex/skills
ln -s /path/to/codex-ppt-skill/skills/codex-ppt ~/.codex/skills/codex-ppt
可以通过 ClawHub 安装:
openclaw skills install codex-ppt
ClawHub 页面:clawhub.ai/ningzimu/codex-ppt
如果使用 OpenClaw 的 skill allowlist,需要把 codex-ppt 加入允许列表。
这些 agent 都可以读取 SKILL.md 形式的 skill。也可以使用 skills CLI 安装:
# Claude Code
npx -y skills@latest add ningzimu/codex-ppt-skill \
--skill codex-ppt \
--agent claude-code \
--global
# Hermes Agent
npx -y skills@latest add ningzimu/codex-ppt-skill \
--skill codex-ppt \
--agent hermes-agent \
--global
常见目标目录是:Claude Code 使用 ~/.claude/skills/codex-ppt,Hermes Agent 使用 ~/.hermes/skills/codex-ppt。
如果你是在本地开发这个仓库,也可以用软链接替代复制,方便实时调试修改。
重新执行一遍上面对应的安装命令即可覆盖为最新版本,也可以直接让 agent 帮你更新:
请帮我更新 codex-ppt skill 到最新版本,仓库是:https://github.com/ningzimu/codex-ppt-skill
更新后重启 agent 生效。API key 配置(~/.codex-ppt-skill/.env)和个人风格库(~/.codex-ppt-skill/references/)都在 skill 安装目录之外,更新或重装不会丢失。
[!TIP] 你可以先正常使用 Codex PPT 开始制作 PPT。一般不需要自己手动配置生图模型;当流程走到“选择生图后端”时,AI 会根据当前环境判断是否需要配置,并在需要时引导你提供相关信息。
- 如果你使用的是 Codex 内置图片生成能力,通常不需要额外配置 API key。
- 如果你确定要使用第三方供应商或 OpenAI 兼容中转站,请让 AI 先阅读 生图模型配置指南,再配置 API key、base URL 和模型名。
指定图片分辨率、提高质量或要求修改某一页,本身不会触发第三方 API 配置。如果你是通过 GPT 会员订阅使用 Codex,并且 Codex 内置图片生成工具可用,通常可以继续使用内置生图能力,不需要准备 API key。
在 Codex、Claude Code、OpenClaw 或 Hermes Agent 中明确指定使用 codex-ppt skill,例如:
请使用 codex-ppt skill 把 /path/to/article.md 做成 10 页左右的 PPT。
skill 会按以下流程执行:
outline.md,并请求你确认页数、标题和每页要点speech.mdassemble_ppt.py 组装 .pptxgpt-image-2 API 的方式生成(即 API/CLI fallback,提供 API key、base URL 和模型名)。API/CLI fallback 场景下,脚本默认分辨率是 2K 16:9 横屏;如果生成的幻灯片图片仍然比较模糊,尤其是文字较多的页面,可以让 AI 改用 4K 分辨率生成。
~/.codex-ppt-skill/references/)里,方便以后复用,且不会因更新 skill 而丢失。codex-ppt 生成整页图片后继续做可编辑化。gpt-image-2 的生图 skill。遇到问题?请查看使用文档,加入 CodexPPT,或提交 Issue。
MIT
感谢 LinuxDO 社区的支持。
name: codex-ppt
description: Generate visually unified image-based PPT/PPTX decks from articles, reports, papers, notes, or outlines.
metadata:
openclaw:
requires:
bins:
- python3
primaryEnv: OPENAI_API_KEY
envVars:
- name: OPENAI_API_KEY
required: false
description: API key for CLI fallback.
- name: OPENAI_BASE_URL
required: false
description: API base URL.
- name: CODEX_PPT_IMAGE_MODEL
required: false
description: Image model, defaults to gpt-image-2.
- name: CODEX_PPT_HOME
required: false
description: Runtime home override.
homepage: https://github.com/ningzimu/codex-ppt-skillThis 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.
Reference Map files before each phase. This file is the orchestration contract; detailed rules live in docs/ and worker prompts in prompts/.deck_spec.json, speech.md, prompt jobs, slide images, or .pptx before the approvals in docs/workflow-gates-and-progress.md.origin_image/slide_XX.png must be generated by the selected image backend: built-in image generation/editing tool or scripts/image_gen.py.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:
Do not mark a step complete from chat alone; use real files or script-recorded state.
Understand the source content.
Plan the deck outline.
outline.md, read docs/workflow-gates-and-progress.md and docs/outline-style-and-sample.md.Confirm a unified visual style.
references/, read docs/outline-style-and-sample.md.Confirm the image backend.
docs/backend-selection.md.docs/cli-api-fallback.md. Read docs/image-model-configuration.md only after config errors or explicit API-setting requests.Generate one sample slide for approval.
docs/outline-style-and-sample.md.sample_generation_method in deck_spec.json so jobs and subagents inherit the same path.Create the project directory.
docs/project-assembly-and-reporting.md.Prepare user-supplied assets.
docs/user-supplied-assets.md.Generate all slide images.
docs/slide-generation-and-subagents.md.scripts/prepare_slide_prompts.py or saved prompts/slide_XX.json files.Dispatch slide subagents.
docs/slide-generation-and-subagents.md and prompts/slide-worker.md.Quality check and repair.
docs/project-assembly-and-reporting.md.docs/cli-api-fallback.md. Replace the final slide only after validating the edited output.Write speaker notes and assemble the PPT.
speech.md or running assembly, read docs/project-assembly-and-reporting.md.outline.md reflects the final confirmed deck outline. Use speech.md headings that map to Slide N.slide_jobs.json shows generated slides as recorded and approved samples as accepted. If any slide is pending, dispatched, or blocked, stop.Report the result.
docs/project-assembly-and-reporting.md.Save reusable styles.
docs/style-library.md.docs/project-assembly-and-reporting.md. User custom styles are stored in ${CODEX_PPT_HOME:-~/.codex-ppt-skill}/references/, outside the skill install.Slide subagents are mandatory after sample approval whenever the runtime can spawn them. The main agent prepares jobs and records state; each worker handles exactly one prompts/slide_XX.json job and returns only selected image path, backend, and QA note.
Use docs/slide-generation-and-subagents.md for dispatch, commands, result recording, blockers, and backend provenance. Use prompts/slide-worker.md as the handoff template.
Subagents must not edit outline.md, deck_spec.json, other slide jobs, origin_image/, speech.md, or the final .pptx. The parent records outputs and assembles.
.pptx.origin_image/slide_XX.png.record_slide_result.py, except an approved sample marked accepted by run state.outline.md reflects the approved deck outline.speech.md exists when speaker notes are expected, and assembly writes those notes into the PPT.slide_jobs.json and slide_run_state.json reflect the final state.docs/workflow-gates-and-progress.md: approval gates, progress, completion evidence.docs/backend-selection.md: backend decision rules and confirmation text.docs/outline-style-and-sample.md: outline, style, sample rules, prompt examples.docs/user-supplied-assets.md: strict handling for required source assets.docs/slide-generation-and-subagents.md: jobs, dispatch, result recording, blockers, provenance.docs/cli-api-fallback.md: fallback runtime, generation/edit commands, image limits, troubleshooting.docs/image-model-configuration.md: API key, base URL, model, .env; read only when config is needed.docs/project-assembly-and-reporting.md: project directory, notes, assembly, final report, prompting principles.prompts/slide-worker.md: slide subagent handoff template.references/*.md: built-in visual style references. User custom styles live in ${CODEX_PPT_HOME:-~/.codex-ppt-skill}/references/ and take priority over built-in styles with the same name.For source, docs, install, config, and examples, see ningzimu/codex-ppt-skill.
评论 (0)
暂无评论,成为第一个评论者吧!