home / skills / ntaksh42 / agents / pptx-generator
This skill helps you generate PowerPoint presentations with slides, charts, and templates programmatically using Python and pptx.
npx playbooks add skill ntaksh42/agents --skill pptx-generatorReview the files below or copy the command above to add this skill to your agents.
---
name: pptx-generator
description: Generate PowerPoint presentations with slides, charts, and formatting. Use when creating presentations programmatically.
---
# PowerPoint Generator Skill
PowerPointプレゼンテーション(.pptx)を生成するスキルです。
## 主な機能
- **スライド作成**: タイトル、コンテンツ
- **グラフ**: 棒、折れ線、円グラフ
- **画像**: 画像挿入
- **テーブル**: 表作成
- **テンプレート**: デザインテンプレート
## Python (python-pptx)
```python
from pptx import Presentation
from pptx.util import Inches, Pt
prs = Presentation()
# タイトルスライド
title_slide = prs.slides.add_slide(prs.slide_layouts[0])
title = title_slide.shapes.title
subtitle = title_slide.placeholders[1]
title.text = "プレゼンテーションタイトル"
subtitle.text = "サブタイトル"
# コンテンツスライド
content_slide = prs.slides.add_slide(prs.slide_layouts[1])
title = content_slide.shapes.title
title.text = "主なポイント"
content = content_slide.placeholders[1]
tf = content.text_frame
tf.text = "ポイント1"
p = tf.add_paragraph()
p.text = "ポイント2"
p.level = 1
# 画像スライド
img_slide = prs.slides.add_slide(prs.slide_layouts[6])
left = Inches(1)
top = Inches(1)
img_slide.shapes.add_picture('chart.png', left, top, width=Inches(8))
prs.save('presentation.pptx')
```
## バージョン情報
- Version: 1.0.0
This skill generates PowerPoint (.pptx) presentations programmatically, including slides, charts, images, tables, and design templates. It streamlines building consistent slide decks from code, suitable for reports, dashboards, and automated exports. Versioned tooling provides a predictable, reusable workflow for presentation generation.
The skill constructs Presentation objects, adds slide layouts (title, content, blank), and populates placeholders with text, paragraphs, and hierarchical bullet levels. It creates common chart types (bar, line, pie), inserts images at specified positions and sizes, and builds tables with rows and columns. Templates and formatting options let you apply consistent styles and export a final .pptx file for distribution.
Which chart types are supported?
Common chart types are supported, including bar, line, and pie charts; you can also insert externally generated chart images.
Can I apply a corporate template or master slide?
Yes. Use a base template with master slides and apply it when creating the Presentation to keep branding and layout consistent.