跳到正文
Skillpedia
PDF、Word 与幻灯片6.0k · #14471

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/EverMind-AI/Raven/blob/main/agents/raven-design/skills/deck-to-pptx/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能