pptx-author
GitHub在无图形界面的托管Agent环境中,通过Python脚本自动生成PPTX文件。支持模板应用、数据图表嵌入及规范排版,输出为本地文件供编排层收集,适用于需要交付演示文稿而非实时编辑的场景。
Trigger Scenarios
Install
npx skills add anthropics/financial-services --skill pptx-author -g -y
SKILL.md
Frontmatter
{
"name": "pptx-author",
"description": "Produce a .pptx file on disk (headless) instead of driving a live PowerPoint document — for managed-agent sessions with no open Office app."
}
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:
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.
Version History
- 3865222 Current 2026-08-20 07:52


