OpenParable
Skip to content
← Back to skills

Ppt Author

Documents
ppt-author

Ppt Author is an Agent Skill for documents published in the fuyuxiang/echo-agent repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Create and edit PowerPoint (.pptx) presentations programmatically. Requires python-pptx.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/fuyuxiang/echo-agent/blob/HEAD/skills/creative/ppt-author/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/ppt-author, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

PPT Author

Generate PowerPoint presentations from structured content.

生成专业演示文稿前必读

生成正式 PPT 前,必须先用 skill_view 读取本技能的 references/design-guide.md, 并严格按其中的配色、版式、排版、页数节奏规范执行。该文件含可直接仿写的完整代码样例。

Install

pip install python-pptx

Quick Start

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

prs = Presentation()

# Title slide
slide = prs.slides.add_slide(prs.slide_layouts[0])
slide.shapes.title.text = "项目汇报"
slide.placeholders[1].text = "2026年6月"

# Content slide
slide = prs.slides.add_slide(prs.slide_layouts[1])
slide.shapes.title.text = "核心指标"
body = slide.placeholders[1]
body.text = "月活用户: 100万\n收入增长: 25%\n客户满意度: 4.8/5"

prs.save("report.pptx")

Markdown → Slides

Input format:

# Presentation Title
subtitle: 2026-06-13

## Slide Title
- Bullet point 1
- Bullet point 2
- Bullet point 3

## Data Slide
| Metric | Value |
|--------|-------|
| Users  | 100K  |
| Revenue| $1M   |

Script

python3 scripts/create_pptx.py from-md outline.md --output presentation.pptx
python3 scripts/create_pptx.py quick "Project Update" --slides "Background" "Progress" "Next Steps" --output deck.pptx

Slide Types

  • Title (layout 0): Title + subtitle
  • Content (layout 1): Title + bullet points
  • Two Column (layout 3): Side-by-side comparison
  • Blank (layout 6): For custom images/charts

Chinese Font Support

from pptx.util import Pt
from pptx.dml.color import RGBColor

for paragraph in body.paragraphs:
    for run in paragraph.runs:
        run.font.name = '微软雅黑'
        run.font.size = Pt(18)