Deck standards
These standards cover the story, layout and review of a deck in any format. When data is involved, build the deck as HTML: code then fills and checks every number, chart and table, which a hand-made .pptx or PDF cannot do.
Build every deck as one self-contained HTML file of fixed 1280x720 slides. By default the slides are hand-written HTML and every number, chart and table is filled from data (hybrid build, below). template/ holds the CSS, JS and builders. For storylining and a PowerPoint grid, see ../debrief/SKILL.md; for an HTML deck built from data, this skill wins on density, palette and theme.
When to use
- Use for any deck, readout, slide set or presentation, before writing the first slide.
- Build
.htmlfirst. Build.pptxor.pdfonly when the requester asks; feed both from the same computed numbers. - Build
.pptxwithpython template/export_pptx.py deck.html deck.pptx(runnpm install --prefix templateonce). It writes an editable deck: theme colors and fonts, named layouts, native charts and tables, speaker notes. It converts the cover, executive cards, chart with takeaways, table and reference slides; it warns and keeps only the title on any other layout. - Check the
.pptxbefore you share it: render it to PDF (PowerPoint or LibreOffice), look at every slide for overflow, overlap and lost content, and compare it with the HTML deck. - Print to PDF from the browser when a PDF is enough; the CSS already breaks one slide per page.
Step 0: outline before slides
Render nothing until the requester approves a title-only outline.
- Write the audience, the decision the deck supports, and the answer in one sentence.
- Build the argument tree: answer → 2–4 supporting arguments → the evidence for each (query id, run id or file) → the action it implies.
- Turn the tree into one line per slide: kicker, action title, visual form (table below), and "The audience should leave this page understanding that …".
- Read the titles alone, top to bottom; they must make the argument without the bodies.
- Show the outline and the mode (readout or workshop) to the requester; build only after they approve.
Give each slide one job. If its "leave understanding that" sentence has two unrelated clauses, split the slide. Keep that sentence as a comment in the slide's builder.
Visual form by relationship
Pick the visual from what the information means:
| Relationship | Visual |
|---|---|
| Change over time | line chart or timeline |
| Category comparison | sorted bar chart |
| Contribution to a total | waterfall or stacked bar |
| Two-variable classification | 2×2 matrix |
| Ordered actions | process flow |
| Recurring activity | cycle |
| Causes of one problem | fishbone |
| Workstreams and dates | swim lanes or Gantt |
| Levels | hierarchy |
| Current versus future | two columns |
| Exact values matter more than shape | table |
Give every chart slide a takeaway panel, unless the chart needs the full width; then give it a one-line .note instead.
Geometry carries meaning: arrows mean direction, circles mean recurrence, pyramids mean levels. Never use a shape whose meaning contradicts the content.
Two modes
Pick the mode before the first slide and pass it to the generator: page(..., mode="workshop") or build(..., mode="workshop"); readout is the default. The mode also sets the text sizes (section "Type").
- Readout (default): a result for decision-makers. Use the full anatomy below.
- Workshop: a working session to listen, brainstorm or agree a scope (planning, design review). The audience shapes the answer, so the slides open questions instead of closing them.
Both modes keep the context and style rules: kicker, action title, footer with the short deck title and as-of date, terms defined at first use, numbers computed from data, house colors with a second encoding, light theme, the naming rule.
Workshop mode relaxes the rest:
- Make each slide graphic-first: one diagram fills most of the slide, with at most 3 short bullets (under 15 words each) beside or under it.
- Use at most one headline number per slide; move tables and evidence to
Backup. - Use plain words: no code names, no acronyms on the slide face; put the mapping in the footer.
- Skip KPI tiles and What happened / Why except on the headline slide; the headline may be a single big number and one sentence.
- Use these visual blocks (inline SVG, drawn from data or structure, not decoration):
- Flow: boxes and arrows for how it works today (inputs → model → output), with the parts in question highlighted.
- Timeline: one row of dated markers for what was tried, labeled with the outcome icon (✅ kept, ✖ dropped, ⏸ open), color plus shape.
- Option map: a 2×2 (for example effort × control) or side-by-side cards, one per option, with its upside and its failure mode.
- Roadmap: swim lanes by team across months, with gates as diamonds.
- Question slide: one question as the title, 2–3 prompts, and an empty panel labeled "Notes from the room" for live capture.
- Keep the action title, but it may end in a question when the slide asks the room ("Which overrides do you make today, and why?").
Slides
- Read page-types.md when you turn the approved outline into slides: the slide anatomy, each page type and its builder.
- Read style.md before you color a chart or slide, set type, or add interactivity.
Layout basics
Each page type (cover, executive summary, contents, splits, table, cards, conclusion) has its own job, content, text sizes and fill rule: read page-types.md when you turn the outline into slides.
- Fill the slide. On every main-story slide the body content runs from the title block to the footer; no empty band is taller than about 30% of the body. Before you leave a void, spread the blocks, or merge short content into the slide it supports (see page-types.md, Short content). Check with
python3 template/check_fill.py deck.html(cover, Backup and Appendix slides are exempt). - Place white space; do not leave it over. White space gives focus when it sits as even margins and gaps around the content. It is never an unused area at the bottom. A calm, brand-led deck takes wider margins; a dense working deck takes narrower ones.
- Grid and alignment first. Fix the columns and the edges, then place the elements on them. Let a chart or a title span columns to give rhythm inside the grid.
- Contrast makes the hierarchy, in small steps. Use at most three text sizes in a slide body. Blocks at the same level take the same size: the framing lines and the bullets under them are one level. Neighboring levels differ by one step of about 1.2 to 1.5 times; a display number is at most 2.5 times the body text. A block that is twice the size of its neighbor reads as shouting, not as hierarchy.
- Fill by spacing and layout before size. When a slide is short of content, spread the blocks or change the layout first; raise the type only within the steps above.
- Repeat, and vary by rule. The same kind of thing takes the same card, color and spacing on every slide. Change size or color only to show an order or a trend.
- Keep text easy to read. Give body text enough line spacing and the contrast in Colors, on the off-white ground, not pure white.
Content rules
- Compute every number in titles, tiles, bullets, notes and assumptions from the data tables the charts use; never type one.
- Format numbers with one helper set:
m(1.57M / 394k / 1,234),ms(signed),pct; use the true minus−. - Show a range next to every modeled estimate; say what the range is at first use.
- Name the baseline on the slide ("own prior-period baseline, same weeks").
- Use one executive vocabulary on every slide; map code or data terms once (footer or glossary), and normalize them in the builder.
- Write American English, define every term and acronym at first use, follow a ticket key with 2–3 keywords, and use short active sentences.
- Label correlation as correlation; state what a model or test cannot show in the assumptions box.
- Mark a corrected figure with the "Corrected" panel (
.xp-btn.corr+.xp-panel.corr); print shows the panel on its own page.
Sources
- Give every number on a slide a source: query id, run id or file, with the pull date, in the footer or a small source line.
- Numbered citations match the source block: whenever a slide or page uses inline citation numbers (
[1],[2]or superscripts¹,²), list every matching numbered entry ([1] …; [2] …) in that page's source/footer and inBackup · Sources— no orphan citation numbers and no unnumbered source list when inline numbers are used. - When a deck has more than a few sources, add a
Backup · Sourcesslide: slide, claim, source. - Keep the slide light (
--paperwarm paper on the dark--surroundslate surround); no dark theme.
Build: hybrid (default)
Write the slides by hand for full layout freedom; take every number, chart and table from data. _demo() in template/deck.py is a minimal worked example.
- Copy
template/(deck.py,charts.py,palette.css,deck.css,deck.js,interact.js,gallery.py,gallery.html.tmpl) next to the generator, or import it by path. - Write the slides as
<section class="slide">blocks in a.html.tmplfile: kicker, action title, body, footer (see the slide anatomy above). - Put a placeholder wherever data goes:
{{num:key}}: a number;nums[key] = (text, source), text formatted throughFig(F.m,F.ms,F.pct,F.of,F.rng), source = query id, run id or file plus pull date. It renders as<span class="n" data-src="source">; hover shows the source.{{chart:key}}: an SVG fromcharts.py, built withbox=SLOTS[...]for its slot (full1168×520,take858×500,half572×500,two-thirds763×500).{{table:key}}: HTML fromtable().
- Load the data and compute
nums,chartsandtablesin one place. - Call
build(title, template, F, nums, charts, tables, sources_footer=..., allowed=(...)). It appendsBackup · Sourcesslides (slide, key, value, source for every number) and raises on:- any digit in hand-written text outside a placeholder; allowed: ISO dates and months, years and seasons (2024/25), ticket keys,
slide N.Mreferences, the number that opens a kicker, and the literal tokens inallowed; - an unknown key or a malformed
{{…}}; - a figure in the output that did not pass through
Fig(check()).
- any digit in hand-written text outside a placeholder; allowed: ISO dates and months, years and seasons (2024/25), ticket keys,
- Write the file and a
build.shthat reruns the generator from raw inputs (paths, run ids,--as-of). - When a companion report quotes the same numbers, cross-check them against the deck's rendered text.
Generator path (option for large data-driven readouts with many similar slides): build every slide in Python with slide(kicker, title, body, footer, note=, assume=), tiles(), two_cols(), split(left, right, ratio="half"|"two-thirds"), exec_brief(context, problem, recommendation, points), metric_cards(cards), recommendation(), references(), speaker_note(), table(), cover(), big_number(), cards(), notes_panel(), detail(), tabs(), and charts.py; assemble with page(title, slides); call check(F, html); extend UNIT_WORDS for your units. python3 template/deck.py <tmp>.html renders a skeleton, and python3 template/gallery.py builds the full 28-slide reference gallery (gallery.html).
A brand template forked from this one keeps the same builders and token names. A change to one template must be made in the other.
Naming and filing
- Name the file
YYYY-MM-DD Title in sentence case[, as of YYYY-MM-DD].html: the prefix date is the meeting or request date; add the as-of part only when the data date differs. - Never use
v2,finalorcopy; stamp a shared version with its share date and time, and move the older version unchanged to an archive folder next to the deck. - Write dates as
YYYY-MM-DD. - Keep the generator in a code repository, not in a document share.
Pre-publish review: three passes
Run the passes separately; do not mix story, numbers and pixels in one read.
Pass 1, story (titles only):
- The requester approved the title-only outline and the mode before rendering (Step 0).
- Read only the titles: they make the argument and end in a clear recommendation or ask.
- Every slide has a numbered kicker and one job; the visual matches the relationship table.
- The executive summary follows the title; context, problem and recommendation are three short paragraphs in one text size, with 3–5 bullets under the recommendation; bold marks the key details; no cards.
- Every chart slide has a takeaway panel of at most 3 points (or a one-line note when the chart needs full width); its final bullet leads into the next slide.
- Readout: every action title states a number and an implication; the headline has tiles, a definition strip, and What happened / Why with slide references.
- Workshop: one diagram per slide, at most 3 bullets of under 15 words, at most one headline number, no code names or acronyms on the face, a "Notes from the room" panel on every question slide.
- Cold read: a subagent that did not build the deck reads each slide and states its conclusion in one line; every mismatch with the intended sentence is fixed.
Pass 2, numbers:
-
build()(orcheck()) passes: no digit typed outside a placeholder, no unresolved placeholder, no figure outsideFig; the report cross-check passes when there is a report. - Every
{{num:…}}source names a query id, run id or file and the pull date; theBackup · Sourcesslides render. - Every number has a source; every modeled number shows its range; every chart and table states its unit.
- Every chart of illustrative data carries an
Illustrativesticker, and every chart of modeled or not-yet-final data aPreliminarysticker. - Every inline citation number (
[1],[2],¹,²) on a slide or report page maps 1-to-1 to a matching numbered entry in that page's source block (andBackup · Sources). - Every slide reference points to the slide that proves it (open it and check).
- An
Assumptions.box sits on every slide whose numbers come from a model or from adjusted data, and on no other slide. - Terms and acronyms are defined at first use; one name per concept; American English.
Pass 3, design and filing:
- Nothing overflows: render with headless Chrome and look at every slide.
- No main-story slide has an empty band over about 30% of the body:
python3 template/check_fill.py deck.htmlpasses; white space sits as even margins, not as a void. - No text is under its size floor and no slide has more than three body sizes:
python3 template/check_text.py deck.htmlpasses. - Every chart fills its slot (full body, or the left 3/4 next to takeaways); no fixed-size chart with empty space below.
- No chart touches or overlaps its neighbors: at least 16px clear to the title, takeaways panel, note, assumptions box and footer, and no label or legend clipped at the SVG edge. Check every chart slide in the headless-Chrome render and in print.
- One accent color per chart; every color has a second encoding; at most 3 series colors (ink, blue, orange), context in light grey, one encoding per line; text contrast ≥ 4.5:1.
- Footer has the source, the short deck title and the as-of date, and no ticket key;
n / Nrenders. - No
<img>, no external script, font or stylesheet (grep -E 'src="http|href="http|<img|@import|url\(http'returns nothing); fonts are the font tokens inpalette.css; light house theme only. - Print to PDF: one slide per page, detail panels on their own pages, scenario panes side by side, nothing cut off.
- File name follows the naming rule; the older version is archived unchanged.
-
build.sh(or the command) that rebuilds the deck is committed on a pushed branch.
Render check: "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --headless=new --window-size=1600,900 --screenshot=<tmp>.png file://<deck>.html shows the first slide; add --print-to-pdf=<tmp>.pdf to page through all of them.