deck-to-pptx
它能做什么
这项技能使用 Python 库在电脑上生成 PowerPoint 文件,而不是网页或图片。适合需要 .pptx 演示文稿用于演讲、报告或路演的人。
适用场景
- ✓当你想把 PowerPoint 文件保存到电脑上时。
- ✓当你需要一份包含论文中的真实图片、图标或公式的幻灯片时。
- ✓当你在分享前需要对幻灯片进行渲染检查时。
技能链接
https://github.com/EverMind-AI/Raven/blob/main/agents/raven-design/skills/deck-to-pptx/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为我的面包店业务制作一份 10 页的路演演示文稿,保存为 PowerPoint 文件。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体使用现有工具收集事实和图片,用 python-pptx 编写幻灯片,并在给出文件路径之前将其渲染出来检查结果。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Deck to .pptx
The deliverable is a .pptx file on disk. Not a web page, an image, a PDF, or a Markdown
outline. Name its absolute path in the reply.
What this deployment has
| Need | Call | Note |
|---|---|---|
| Facts the material does not carry | web_search, then web_fetch the page |
there is no other search |
| A real logo, product shot, published chart | image_search |
direct image URL, pixel size and source page per hit; see references/assets.md |
| A picture that does not exist yet | image_generate |
reference pictures go in images, up to six |
| An icon | raven_ppt.services.assets.icons |
1304 outline icons, see references/assets.md |
| A figure or table from a paper | PyMuPDF on raven-python |
from the PDF you were given, else one you downloaded; crop the region or pull the embedded image; see references/assets.md |
| A formula | add_formula from raven_ppt.services.assets.formulas, on raven-python |
one line of TeX in, a picture in the deck's ink at true size out; see references/assets.md |
| Symbols inside a sentence | math_runs from the same module |
_A, ^2, θ* become real sub- and superscript runs; see references/assets.md |
| Render a page to look at it | soffice --headless --convert-to pdf, then pdftoppm |
With no image key configured, image_generate says so. Say which pages would have had a
picture and carry them on type, grid, rule and colour.
The pages are yours to draw
Every page is drawn here, with python-pptx: the grid, the title row, the type, the marks, the
diagrams, the pictures and their treatment. Nothing about a page is settled by a default.
raven_ppt.services.assets holds the icon set, add_formula and math_runs; take those and
draw the rest.
On this route there is no ANTI-SLOP-CHECK.md, no contract and no Task State. Do not initialize or update one.
Read two skills first
local/deck-to-pptx (this file) and local/design-editorial-and-presentations, which owns
the content order and the editorial judgement. Read both before the first page.
Settle four things first
Language, audience, length, ground. Take each from the first of these that settles it: the request; what memory recalled about this user; the defaults. Defaults: the language the request is written in; a general audience; about 20 pages; a light ground.
Ask with ask_user only for a decision none of the three settles and the deck cannot start
without: at most one call, before any other work, recommending the default. Where there is
no user to ask (the request came from another agent), take the defaults. Say in the reply
which of the four were defaults.
Use what the user handed over as much as you can, before anything the rules below go and
get: their documents and data are the material, their pictures are the pictures. A .pptx
they attached is a template, and a deck on a template is the engine's work, not this
skill's: the host routes it there before this skill is read.
Rules
- Invent no number, no source, no person, no place. Search first. What the search does not find stays a gap that names what is missing and who supplies it.
- A logo, a product screen, a real person, a real place, a published chart, a paper's own figure: fetch it, never generate it. A generated stand-in for something that exists is a fabrication the page presents as evidence. Generate only what has no original: illustration, backdrop, atmosphere.
- Anything the deck names that has a face of its own -- a company, a product, a repository, a place -- has a picture somewhere. Search the whole deck's list in one pass before drawing anything: what the material names, and the ordinary furniture it never links -- the logos, the marks, the product shots. Keep each picture's page URL beside it for the source note. A page about five products with no mark of any of them is a page that did not look.
- Decide the deck's visual direction once, before the first picture, and say what it is: ground, two or three colours, and whether pictures are photographs or drawings. A brand's website is a starting point, not the verdict -- a dark web hero does not make a dark deck, and a printed handout and a projected keynote want opposite grounds. Chaining every background off the first one gives a deck one look and no decision.
- layouts.md holds reference shapes with their proportions, the type ramp, and nine composi
常见问题
它会制作网页版幻灯片吗?
不会。它制作的是真正的 .pptx 文件,而不是网页、图片或 PDF。
图标和图片从哪里来?
根据需要,它们来自图片搜索、图片生成或内置图标库。
它能添加数学公式吗?
能。公式会被转换为与幻灯片文字颜色一致的图片,并可以放在句子中。
详情
作者的原始描述
Build a PowerPoint .pptx file with python-pptx, on this deployment, without the deck engine. Use when the deliverable is a .pptx on disk: presentation, deck, slides, pitch deck, keynote, report deck, 幻灯片, 演示文稿, 做一份 PPT, 出一个 pptx, 汇报材料. Carries what is specific to this deployment -- which tools exist, which parameters they take, and what the gates refuse -- and nothing a competent author already knows. Pairs with design-editorial-and-presentations, which owns content order and editorial judgement. Not for a deck bound to one of the packaged templates: that route runs on Raven-PPT and uses ppt-s
repo: EverMind-AI/Raven
热度
- GitHub 星标
- 6.0k
- 排名
- #14471
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
image-gen
6.0k帮你的智能体根据文字描述绘制或生成图片,使用 OpenRouter 上 Google 的 Nano Banana 图像模型。
ppt-script-authoring
6.0k教你的智能体围绕清晰的故事设计幻灯片,并使用自定义版式,以 python-pptx 程序的形式制作。
multi-agent-coding
6.0k帮你的智能体把编程工作交给合适的编程智能体,每项任务启动一个新智能体,并通过文件在各步骤之间传递结果。
raven-self-config
6.0k帮你的智能体查看并修改 Raven 应用自身的设置,例如连接智能体和聊天应用,并解释某项能力为何缺失。