---
id: gh-pptx-author
name: "pptx-author"
url: https://skills.yangsir.net/skill/gh-pptx-author
author: anthropics
domain: content-creation
tags: ["pptx", "presentation", "slide-deck", "headless", "automation"]
install_count: 1300
rating: 4.30 (120 reviews)
github: https://github.com/anthropics/financial-services/tree/main/plugins/agent-plugins/market-researcher/skills/pptx-author
---

# pptx-author

> 此技能可在无头环境中直接生成 .pptx 演示文稿文件，替代操作实时 Office 文档。它通过 Python 脚本构建幻灯片，支持模板、图表嵌入，适合托管代理会话中需要产出 PPT 文件交付的场景，确保输出规范、数据可追溯。

**Stats**: 1,300 installs · 4.3/5 (120 reviews)

## Before / After 对比

### 创建演示文稿的时间成本

**Before**:

在没有这个技能之前，用户需要手动打开办公软件，设计版式、调整内容、插入图表，并反复检查格式，制作一份10页的PPT往往需要花费大量时间，且容易出错。

**After**:

使用此技能后，用户只需提供内容要点，该 Skill即可自动生成结构清晰、格式规范的PPT文件，几分钟内就能完成，显著提升工作效率，并确保数据可追溯。

| Metric | Before | After | Change |
|---|---|---|---|
| 制作时长 | 60分钟 | 10分钟 | -83% |

## Readme

# pptx-author

Use this skill when running **headless** (managed-agent / CMA mode) and you need to deliver a PowerPoint deck as a **file artifact** rather than editing a live document via `mcp__office__powerpoint_*`.

## Output contract

- Write to `./out/<name>.pptx`. Create `./out/` if it does not exist.
- Return the relative path in your final message so the orchestration layer can collect it.

## How to build the deck

Write a short Python script and run it with Bash. Use `python-pptx`:

```python
from pptx import Presentation
from pptx.util import Inches, Pt

prs = Presentation("./templates/firm-template.pptx")  # if a template is provided
# or: prs = Presentation()

slide = prs.slides.add_slide(prs.slide_layouts[5])    # title-only
slide.shapes.title.text = "Valuation Summary"
# ... add tables / charts / text boxes ...

prs.save("./out/pitch-<target>.pptx")
```

## Conventions (mirror the live-Office `pitch-deck` skill)

- **One idea per slide.** Title states the takeaway; body supports it.
- **Every number traces to the model.** If a figure comes from `./out/model.xlsx`, footnote the sheet and cell.
- **Use the firm template** when one is mounted at `./templates/`; otherwise default layouts.
- **Charts**: prefer embedding a PNG rendered from the model over native pptx charts when fidelity matters.
- **No external sends.** This skill writes a file; it never emails or uploads.

## When NOT to use

If `mcp__office__powerpoint_*` tools are available (Cowork plugin mode), use those instead — they drive the user's live document with review checkpoints. This skill is the file-producing fallback for headless runs.


---
*Source: https://skills.yangsir.net/skill/gh-pptx-author*
*Markdown mirror: https://skills.yangsir.net/api/skill/gh-pptx-author/markdown*