Skip to content
Research
Skill

/pptx-generation

Use when creating a PowerPoint .pptx slide deck or presentation, turning analysis results, figures, or a literature review into slides, or reading, editing, or filling a template for an existing .pptx/.potx. Covers python-pptx in the Notebook, slide design rules, native charts,

From plugin
open-science
5.5k28 skills

Claude Code

$ npx -y skills add aipoch/open-science --skill pptx-generation --agent claude-code

SKILL.md

pptx-generation.SKILL.md
name: pptx-generation
description: Use when creating a PowerPoint .pptx slide deck or presentation, turning analysis results, figures, or a literature review into slides, or reading, editing, or filling a template for an existing .pptx/.potx. Covers python-pptx in the Notebook, slide design rules, native charts, speaker notes, CJK fonts, layout QA without an Office engine, preview limits, and Artifact delivery.
license: Apache-2.0

PPTX creation, editing, and QA

Build decks with python-pptx in the Notebook. User requirements for content, template, brand, and design take precedence over the defaults below.

| Task | Approach | | ------------------------------ | --------------------------------------------------------------------------------------------------------- | | Create a new deck | `Presentation()` with a 16:9 size, Blank layout, shapes placed explicitly | | Fill a template or edit a deck | `Presentation("inputs/template.pptx")`, reuse its layouts, replace run text | | Read content | `pptx_outline(path)`; no code is needed to summarize an attached deck if `read_document` already shows it |

Setup

Run all deck code with `notebook_execute`, not the shell. Install `python-pptx` and `pillow` with `manage_packages` if `inspect_packages` does not show them; never run `pip` in a cell. Attached files are under `inputs/` relative to the Notebook working directory. Write the deck to the working directory, never over an input and never into this skill's directory.

The registered helpers are injected with `kernelSkillIds`. Call them directly without importing, and repeat `kernelSkillIds` in every cell that uses them:

{
  "kernelSkillIds": ["pptx-generation"],
  "code": "report = lint_pptx('deck.pptx')\nprint(report['ok'], report['issues'][:20])"
}

| Helper | Purpose | | ------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | | `pptx_outline(path)` | Per-slide layout, title, text blocks, notes, picture/chart/table counts | | `lint_pptx(path, *, margin_in=0.4, min_font_pt=10)` | Off-slide shapes, estimated text overflow, leftover placeholder text, edge margins, overlapping text boxes, empty placeholders, small or unreliable fonts | | `place_picture(slide, path, left, top, width, height, *, align="center")` | Insert a PNG/JPEG fitted inside a box (inches) without distortion | | `set_run_fonts(run, *, latin=None, east_asian=None)` | Set Latin and East Asian typefaces; `run.font.name` alone does not affect Chinese text | | `render_pptx_pages(path, out_dir="pptx-pages")` | Slide PNGs through LibreOffice when the user has it installed; otherwise returns `available: False` |

Creating a deck with python-pptx

from pptx import Presentation
from pptx.chart.data import CategoryChartData
from pptx.dml.color import RGBColor
from pptx.enum.chart import XL_CHART_TYPE, XL_LEGEND_POSITION
from pptx.enum.text import MSO_ANCHOR, PP_ALIGN
from pptx.util import Inches, Pt

INK, ACCENT, MUTED = RGBColor.from_string("1E2761"), RGBColor.from_string("F96167"), RGBColor.from_string("6B7280")
deck = Presentation()
deck.slide_width, deck.slide_height = Inches(13.333), Inches(7.5)   # 16:9
BLANK = deck.slide_layouts[6]

def text(slide, x, y, w, h, value, size, *, bold=False, color=INK, align=PP_ALIGN.LEFT):
    box = slide.shapes.add_textbox(Inches(x), Inches(y), Inches(w), Inches(h))
    frame = box.text_frame
    frame.word_wrap = True
    frame.vertical_anchor = MSO_ANCHOR.TOP
    for i, line in enumerate(value if isinstance(value, list) else [value]):
        paragraph = frame.paragraphs[0] if i == 0 else frame.add_paragraph()
        paragraph.alignment = align
        paragraph.space_after = Pt(6)
        run = paragraph.add_run()
        run.text = line
        run.font.size, run.font.bold, run.font.color.rgb = Pt(size), bold, color
        set_run_fonts(run, latin="Calibri", east_asian="Microsoft YaHei")
    return box

slide = deck.slides.add_slide(BLANK)
text(slide, 0.6, 0.5, 12.1, 1.0, "Treatment B halves relapse at 12 months", 36, bold=True)
data = CategoryChartData()
data.categories = ["Placebo", "A", "B"]
data.add_series("Relapse (%)", (41, 33, 19))
chart = slide.shapes.add_chart(XL_CHART_TYPE.COLUMN_CLUSTERED, Inches(0.6), Inches(1.8),
                               Inches(7.4), Inches(4.6), data).chart
chart.has_legend = False
chart.plots[0].has_data_labels = True
chart.plots[0].data_labels.font.size = Pt(14)
chart.series[0].format.fill.solid()
chart.series[0].format.fill.fore_color.rgb = ACCENT
chart.value_axis.has_major_gridlines = False
text(slide, 8.4, 1.8, 4.3, 3.0, ["n = 412, randomized", "Follow-up 12 months", "HR 0.46 (95% CI 0.31-0.68)"], 16)
text(slide, 0.6, 6.6, 12.1, 0.4, "Source: trial export inputs/relapse.csv (n = 412)", 10, color=MUTED)
slide.notes_slide.notes_text_frame.text = "Spoken explanation goes here, not on the slide."
deck.save("deck.pptx")

python-pptx rules that prevent common defects:

  • **Set the slide size before adding slides.** `P
Read more
@aipoch
Ships withopen-science

The open-source AI research workbench for scientific research and agent workflows. Local-first, model-agnostic desktop app with extensible skills, MCP tools and connectors, Python/R execution and traceable artifacts for reproducible research on macOS, Windows and Linux.

Stars on GitHub

Momentum

stars in total
5.5k
Star history of aipoch/open-science on GitHub, a chart by star-history.com

Other skills on open-science.

alphafold2

alphafold2

Predict protein structure for monomers and multimers with AlphaFold2 via the ColabFold runner (Mirdita et al. 2022,…

@aipoch@aipochInstall Skill
boltz

boltz

Structure prediction for protein, nucleic-acid, and small-molecule complexes with Boltz-2 (Passaro & Wohlwend et al. 2025,…

@aipoch@aipochInstall Skill
borzoi

borzoi

Predict genome-wide functional tracks (RNA-seq, CAGE, DNase, ChIP) from DNA sequence with Borzoi. Use this skill when: (1)…

@aipoch@aipochInstall Skill
chai1

chai1

Structure prediction for protein, nucleic-acid, and small-molecule complexes with the Chai-1 foundation model (Chai Discovery…

@aipoch@aipochInstall Skill
compute-env-setup

compute-env-setup

Prepare reproducible setup instructions and validate a user-managed named software environment on an Open-Science SSH Compute…

@aipoch@aipochInstall Skill
customize

customize

Use when the user wants to create or manage a Specialist agent or create, revise, publish, or delete a Skill through the…

@aipoch@aipochInstall Skill

More skills from other plugins.

academic-paper-review

academic-paper-review

Use this skill when the user requests to review, analyze, critique, or summarize academic papers, research articles, preprints,…

@bytedance@bytedanceInstall Skill
last30days

last30days

Research what people actually say about any topic in the last 30 days. Pulls posts and engagement from Reddit, X, YouTube,…

@mvanhorn@mvanhornInstall Skill

Questions about pptx-generation.

Which coding agents can use pptx-generation?
pptx-generation installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.