/ppt-deck:ppt-deckfrom ppt-deck
Builds short designed decks (1-10 slides) as both editable PPTX and matching PDF using python-pptx and headless Chrome. Useful for pitch decks, roadshows, and review presentations where recipients need to edit the PPTX.
Ships in ppt-deck. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
A deck that is projected and sent as a PDF and also handed over as a PPTX someone will edit. The usual routes each fail on one side. Slide exporters that print to PPTX put each page in as a picture (Marp CLI's own README: a converted PPTX "usually consists of pre-rendered background images", and its editable mode is experimental and needs LibreOffice). A PPTX built by hand drifts from the PDF. Here every slide is one list of elements in 1920x1080 px, drawn twice: as absolutely positioned HTML that headless Chrome prints to the PDF, and as native PowerPoint objects through python-pptx. Same coordinates, so the two files cannot disagree about the layout.
Use it when the deck is short, designed rather than template-filled, and the PPTX has to stay editable. Don't: a long or text-heavy deck that others will keep rewriting starts from an existing template in PowerPoint / Keynote / Google Slides; if PowerPoint is on hand and the deck is plain, make it there.
| Thing | Path |
|---|---|
| Layout table -> PDF + PPTX, fit check, illustration prep. Edit its CONTENT section | scripts/build_deck.py |
| Coordinates off a raw illustration: crop box, station centres, edges | scripts/measure_art.py |
| PPTX opened by LibreOffice with no network, rendered next to the Chrome PDF | scripts/lo_check.sh (+ scripts/libreoffice/Dockerfile) |
| Editability readback and forbidden-word scan with a positive control | scripts/inspect_pptx.py |
| Four Material Symbols icons the demo uses (Apache-2.0) | assets/icons/ |
| SCENE/STYLE prompt template, post-processing, placing labels on a drawing | references/illustrations.md: read before generating any illustration |
| Fonts for the PDF vs names in the PPTX, cutting static weights, icon sources | references/fonts-icons.md: read when choosing fonts or icons |
| Delivery checklist and the "not tested" wording | references/acceptance.md: read before calling it done |
Needs: Python with python-pptx playwright pillow fonttools lxml (tested 1.0.2 / 1.65.2 / 12.3 /
4.65 / 6.2), a Chrome or Chromium (CHROME_BIN, google-chrome/chromium on PATH, else
python -m playwright install chromium), poppler-utils, fontconfig, and Docker for the
LibreOffice check. python -I scripts/build_deck.py out/ builds the two-slide demo offline from a
drawn placeholder illustration; start from that and replace the CONTENT section.
'\n' in the string is the only line break), so Chrome, PowerPoint and LibreOffice break at the
same places. A renderer that wraps on its own wraps differently in each program.build_deck.py prints which files and names it resolved; measuring, the PDF
and the PPTX's Latin name must refer to the same family. Details: references/fonts-icons.md.check_fit stop the build. Before anything is written, every line is measured with the
real font files (falling back per character from the Latin font to the CJK font, as the browser
does), plus 0.2 em for each CJK/Latin boundary, where LibreOffice inserts extra space that Chrome
does not. A line wider or a box shorter than its content exits with the offending text. Shorten
the text or widen the box; never lower the slack. Looking at the PDF does not catch this: in the
deck this skill comes from, a status label that fit in the PDF lost its last character in
LibreOffice, and the demo's first draft stopped on a heading that needed 275 px in a 230 px box.
The same pass fails a character no deck font covers (an emoji: Chrome would quietly borrow some
system font, and the PPTX would show a box) and a hand-broken line that starts with closing or
ends with opening CJK punctuation.ANCHORS in the script, filled in with
measure_art.py). For real art without anchors the build refuses instead of guessing. Prompt
template and cleanup: references/illustrations.md.pdftoppm -scale-to 960 -png out/deck.pdf out/p, then read each PNG.scripts/lo_check.sh out/deck.pptx out/deck.pdf out/check <latin font dir> <cjk font dir> converts the delivered PPTX in LibreOffice inside a container
started with --network none, renders both PDFs to the same width, and checks by sha256 that
the file it opened is the file being delivered. Compare each chrome-p-N / lo-p-N pair.python -I scripts/inspect_pptx.py out/deck.pptx --deny '<words>' --control <file that contains one of them> --also out/deck.pdf: per-slide text boxes, pictures
(and how many carry SVG), connectors, the largest picture's share of the slide, file metadata;
FAIL on a baked page or a forbidden word, exit 2 when the control is not hit.references/acceptance.md).inspect_pptx.py fails a slide whose largest picture
covers 90% or more of it, or that has no text box.file:// URLs, so printing the same path after an edit can print
the previous draft: exit 0, a fresh file, old words. build_deck.py renders from a new temp
directory every run; keep that if you restructure it.last_modified_by='Steve Canny' and comments='generated using python-pptx'; that template is the default for every new
file. The script clears author, last-modified-by and comments. Shape names, file names and the
PDF title ship as well.docProps) and both the text
layer and the raw bytes of the PDF, and require a hit on a control file first; inspect_pptx.py
does all three.--user $(id -u) maps soffice
to a uid that cannot write the mount, and it sits at 0% CPU indefinitely (observed). Container
root is already you there; keep the profile inside the container
(-env:UserInstallation=file:///tmp/lo-profile) and put a timeout around the run. lo_check.sh
does this.prep_art drops light marks more than
4 px from any dark stroke and prints how many pixels it dropped..ttc collection) as Type 3 fonts (observed
with pdffonts). It displays and searches normally; poppler may warn "Bad bounding box". Not a
defect.placeholder_art in the script) or a line drawing made with PIL
or ImageMagick keeps the build moving.-v2, -final-<date>); take
checksums of earlier deliverables before a rebuild and compare after.assets/icons/call_split_wght300_24px.svg (opens in a new tab)assets/icons/fact_check_wght300_24px.svg (opens in a new tab)assets/icons/history_wght300_24px.svg (opens in a new tab)assets/icons/verified_wght300_24px.svg (opens in a new tab)references/acceptance.md (opens in a new tab)references/fonts-icons.md (opens in a new tab)references/illustrations.md (opens in a new tab)scripts/build_deck.py (opens in a new tab)scripts/inspect_pptx.py (opens in a new tab)scripts/libreoffice/Dockerfile (opens in a new tab)scripts/lo_check.sh (opens in a new tab)scripts/measure_art.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub sunflowerslwtech/sunkit --plugin ppt-deckOther plugins' skills for the same job