Plank help · updated 2026-10-29

Build a deck: the route

The build route for a slide deck in one short page: download the builders into scripts/deck/, put the build script beside them, run the QA before handing anything over, and never write a file under the builders' names yourself.

Agents: fetch the raw markdown of this page at /en/help/deck.md

Build a deck: the route

Editing a deck that already exists? Use the edit route instead.

A NEW deck goes on a canvas, not here (method: /opt/plank/canvas/DECK.md), checked with plank_check_canvas, exported at the end with export_canvas.py. This route: a supplied .pptx/.potx template, a deck to edit in PowerPoint or Google Slides, an editable rebuild of a canvas deck.

The whole route, in one block. Everything below explains it.

mkdir -p scripts/deck
curl -sSfL -o scripts/deck/plank_deck.py    https://plank.md/help/assets/plank_deck.py
curl -sSfL -o scripts/deck/plank_deck_qa.py https://plank.md/help/assets/plank_deck_qa.py
# write scripts/deck/build_<name>.py, importing `from plank_deck import *`
python3 scripts/deck/build_<name>.py
python3 scripts/deck/plank_deck_qa.py <name>.pptx   # must exit 0

Build it in this turn. Do not ask first. No format question, no style question, no storyline to approve: on this route the format is .pptx and the style comes from the material. Measured on a real brief: 6 of 6 turns parked on a question, 0 produced a file. Ask only about what the deck cannot be built without, and only once the builders are in scripts/deck/ and the build is under way.

The build route for a slide deck, start to finish. The house style, the slide primitives and the palettes are on the long page — How Plank builds a slide deck. This page is the route: get the builder, run it, check it, hand it over.

1. The builders live in scripts/deck/

Download plank.md/help/assets/plank_deck.py and plank.md/help/assets/plank_deck_qa.py with curl -sSfL -o into scripts/deck/ — always that directory, never beside the deck you are building. The path is relative on purpose: every bash call starts in the workspace root, so scripts/deck/ names the same folder from any call, in any chat, without knowing the workspace's name. Write it relative and do not cd first. A bare curl -o plank_deck.py does land in the workspace, but beside whatever that one job keeps its files in, so the next deck downloads its own copy.

mkdir -p scripts/deck
curl -sSfL -o scripts/deck/plank_deck.py     https://plank.md/help/assets/plank_deck.py
curl -sSfL -o scripts/deck/plank_deck_qa.py  https://plank.md/help/assets/plank_deck_qa.py

Add plank_slides.py for the HTML → PDF route, and plank_deck_edit.py when you are editing a deck somebody else designed:

curl -sSfL -o scripts/deck/plank_slides.py    https://plank.md/help/assets/plank_slides.py
curl -sSfL -o scripts/deck/plank_deck_edit.py https://plank.md/help/assets/plank_deck_edit.py

scripts/deck/ is a workspace folder, so it persists across restarts and both a private and a shared chat see it. Re-run the downloads at the start of every deck job. They are cheap, they overwrite in place, and a copy from three weeks ago may be stale — do not skip them because the file looks like it is already there.

2. Never write these files yourself

plank_deck.py, plank_slides.py, plank_deck_edit.py and plank_deck_qa.py come from plank.md/help/assets/ and from nowhere else. If an import fails, re-run the download into scripts/deck/ and read the error.

Do not write your own file under one of those names, not even a small one to get unblocked, and not even inside a project folder. A hand-written module wearing our name is worse than no module: it passes import, it measures nothing, and every later build in that workspace silently picks it up instead of the real builder. If you cannot download it, say so and build the deck with plain python-pptx under a different filename.

3. Put the build script in scripts/deck/ too

Keep your build_*.py beside the builder. Then the import resolves with no PYTHONPATH and no cd, from any call:

curl -sSfL -o scripts/deck/plank_deck.py https://plank.md/help/assets/plank_deck.py
python3 scripts/deck/build_acme_deck.py
# scripts/deck/build_acme_deck.py
from plank_deck import *

prs = new_deck(theme="studio")          # or theme="report" for a light, printable deck
set_brand(prs, meta=(("brand", "ACME"),), city="Almaty", year="2026")
cover(prs, "Warehouse counts without the clipboard", subtitle="Q4 proposal")
save(prs, "acme-proposal.pptx")

A DeckError means the slide is carrying too much text, not that the type should be smaller. The call drew nothing and left nothing to clean up: cut the copy, split the slide, or move the detail into the notes.

4. Run the QA before you hand anything over

curl -sSfL -o scripts/deck/plank_deck_qa.py https://plank.md/help/assets/plank_deck_qa.py
python3 scripts/deck/plank_deck_qa.py acme-proposal.pptx

It takes .pptx or .html, renders the deck, reads where the words landed, and writes the PDF into <deck>-qa/. It exits non-zero on any error.

An error is not a warning and is not a known quirk. Text outside its shape, text off the slide, words on top of words, a blank slide, a picture that did not decode, text illegible over its own photograph — each is a reader seeing something broken. Fix it and run the QA again.

If you hand over a deck that still has errors, say so in the message, with the count and which ones you left: "QA reports 45 errors — 16 text overflows and 24 low-contrast titles — which I have not fixed." Delivering a deck the QA condemned without repeating the number is the one thing this step exists to prevent.

Hand over BOTH files. The QA already wrote the PDF — move it next to the deck and name both: the .pptx to edit, the PDF to send on. The PDF is asked for as well as, not instead of.

cp "<deck>-qa/acme-proposal.pdf" acme-proposal.pdf

«пдф» in a request is not a reason to build HTML → PDF: that route is for a deck nobody will edit. "Slides as pictures I cannot edit" is the loudest complaint on record.

5. A workspace skill does not replace this route

A skill, a template or an AGENTS.md in this workspace may own the look — the brand colours, the typeface, the tone, which slides to include. That is what it is for, and you follow it.

It does not own the toolchain. Unless it names a different builder and explains why, the deck is still built with scripts/deck/plank_deck.py and still checked with scripts/deck/plank_deck_qa.py. A skill that is silent about how to build is not choosing a different route; it simply never mentioned this one.

6. A customer's colours reach the charts only if you say so

new_deck() in scripts/deck/plank_deck.py takes a customer's colours — and, separately, their chart palette. Every pair is checked against the same contrast floors the QA tool measures the render with, so a DeckError here names the pair and the ratio.

prs = new_deck(accent="#DAFF00", ground="#000000", ink="#FFFFFF",
               series=["#DAFF00", "#FFFFFF", "#7FB3FF"])

Pass series= whenever you passed accent=. Without it the charts keep Plank's own colours, so the chrome is the customer's and the data is ours — the most visible thing a branded deck gets wrong, and the one an agent never notices because nothing fails.

Every slide primitive, every argument it takes and the two shapes this builder will not draw are on the long page: How Plank builds a slide deck. Read it once you have scripts/deck/plank_deck.py — its docstrings are the same reference. The three newest calls, in full:

cover(prs, title, subtitle=None, presenter=None, date=None, image=None, notes="")
links(prs, title, items, lead=None, eyebrow=None, source=None, notes="")
directors(prs, title, people, lead=None, eyebrow=None, notes="")

Which format

A new deck: a canvas first, the file at the end. Never ask which format; export_canvas.py writes the PDF or .pptx (pictures of the slides). Build an editable .pptx here, with scripts/deck/plank_deck.py, for a template, a PowerPoint edit, or edits to the exported text.