Skip to content

The slide-deck skill

A Skill file

A Skill is a Markdown file an agent loads when a task matches its description — knowledge about how you want a job done, written once. It is reproduced here as it stands in the course repository, so paths such as Attachments/ refer to that repo.


name: slide-deck description: > The fixed slide standard for the Agentic AI for Research project. Use this skill whenever asked to build a presentation, make slides or a deck, add or restyle a slide, or clip a figure or table out of a paper for presenting — even if the request is just "put this on a slide" or "make me a few slides about X". Also use it when reformatting an existing deck to match the project style.


Slide deck standard

Do not invent a layout. This standard is what David arrived at by reformatting a generated deck by hand, and it is implemented in Attachments/slides/deck.py. Import that module rather than rebuilding the geometry, and read Attachments/slides/build_deck.py as the worked example.

If the standard genuinely needs to change, change deck.py and this file together, in the same commit.

Build a script, not a file

Write a build script that generates the .pptx, rather than assembling slides one API call at a time or editing a deck in place. A deck that only exists as a binary cannot be corrected, rerun after a figure changes, or reviewed. Save the script to Attachments/slides/ and the deck to Attachments/.

import os, sys
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
import deck

d = deck.Deck()
d.title_slide("Headline", "Standfirst", "Footnote")
d.figure_slide("Headline",
               deck.clip("fig1", "paper.pdf", 3, (66, 88, 533, 580)),
               "What the figure shows.",
               "Author et al. (2026), Journal 12:34–56. CC BY 4.0. doi:10.xxxx/yyyy")
d.save("my-deck.pptx")

The canvas

13.333 × 7.5in — 16:9 widescreen. Plain white, set explicitly on every slide; never rely on the theme.

Content lives in a column at x = 0.5in, width 9.4in. The right quarter, from 10.0in across, stays completely empty — a video overlay of the speaker goes there. Nothing may extend past 10.0in, and that is the constraint most easily broken by a wide figure or a long unwrapped line. Check it.

The elements

Element Top Size Family Colour Leading
Headline 0.75in 32pt Work Sans Medium #1A1A1A 108%
Figure see below — — — —
Note 5.25in 22pt Work Sans Regular #1A1A1A 112%
Source 6.60in 14pt Work Sans Regular #BD281A 100%
Hero number 2.30in 76pt Work Sans SemiBold ink or accent 100%
Hero label 3.60in 14pt Work Sans Regular #6B6B6B 125%
Body line 5.00in 22pt Work Sans Regular #1A1A1A 120%

Palette: ink #1A1A1A, muted #6B6B6B, accent #BD281A, white #FFFFFF. Nothing else.

Figures occupy the band between the headline and the note, and the bottom edge always lands at 5.02in. With a one-line headline the band starts at 1.64in, giving a 3.38in maximum height. A headline that wraps to two lines pushes the top down — pass img_top=1.95 — and the figure shrinks rather than sliding down over the note. Centre it in the content column.

Two rules that are easy to get wrong

No kicker line above the headline. A generated deck had them and David deleted every one. The headline is the top of the slide.

Never set bold=True. Weight comes from the family name — Work Sans Regular, Work Sans Medium, Work Sans SemiBold — and the typeface must be written to all four of a:latin, a:ea, a:cs and a:sym. deck._face() does this. If you set bold instead, PowerPoint synthesises a faux weight that smears visibly at 76pt.

The slide shapes

Use these rather than composing from scratch. deck.py has them all.

  • title_slide(headline, standfirst, footnote) — opening slide, headline low on the page at 40pt SemiBold, no figure.
  • figure_slide(headline, img, note, source, img_top=1.64) — the workhorse for this course. One figure, a note under it saying what it shows, and the source line.
  • picture_slide(headline, img, source, img_top=1.64) — headline, picture, source, no note. Present in the shared deck.py because it is the default in the sister course How Large Language Models Work, which tells its story in pictures; with no note the picture band runs to IMG_BOTTOM_TALL (6.35in) rather than 5.02in. Available here, but figure_slide remains this course's default — the note under a figure is doing work in these decks.
  • hero_slide(headline, numbers, body, source) — one or two large numbers with labels beneath. Two side by side is the designed case. Use it when the finding is a number; a bar chart of two values is worse than the two values.
  • bullets_slide(headline, bullets) — em-dashed points as one autofitting box. Literal dashes, not PowerPoint bullets, so the indent stays flat.

A slide that genuinely needs none of these — see slide 5 of the reference deck — should be built from the text() and picture() primitives in the build script, not added to deck.py. Only recurring shapes belong in the module.

Figures from papers

Clip them out of the PDF with deck.clip(name, pdf, page, rect) rather than keeping screenshots as separate assets, so the deck cannot drift from its sources. rect is (x0, y0, x1, y1) in PDF points at 72 dpi — read the coordinates off the page in a viewer; do not guess and hope.

A source line is for what the reader cannot see. For someone else's figure: author, year, venue, figure or table number, the licence where it has one, and the DOI — build_deck.py shows the form. For a figure derived from one: After Alammar, The Illustrated Transformer. For a figure carrying measurements: name what produced them, e.g. GPT-2 (openai-community/gpt2). Author's own analysis. — not obvious, and it matters, because it says the numbers are measured rather than illustrative. This is not optional politeness; the deck is teaching material and reproduces figures on that basis.

Never invent an attribution. If a figure's source is not stated in the chapter and you cannot establish it, write SOURCE TK — <what it looks like> in the source line and say so in your summary. A visible placeholder gets fixed in one edit; a plausible wrong citation ships.

A figure carries no words the slide already carries

No title inside the figure. No subtitle. No explanatory caption. The slide headline is the title, and the presenter says the explanation aloud — it is also on the course webpage. Words inside the figure that repeat either are dead weight, and on a slide they compete with the headline directly above them.

This is not a guess: it is the pattern behind every crop made when hand-editing a generated deck into presentable shape in this project's sister course — every crop taken off the top and/or bottom (10–26% off the top, 9–31% off the bottom), never off the sides. That is prose being deleted, not the picture being reframed.

So emit the figure already trimmed, rather than leaving the crop for later. Keep the words that name what a thing is and cannot be said faster aloud: axis labels, column headers, legend keys, units and dimensions, the values themselves, short in-figure tags. A reader must be able to tell what they are looking at without the voiceover. Cut anything that is a sentence — titles, subtitles, narration explaining what the figure means. If a point is worth making and cannot be said in a label, it belongs in the note, the source line, or the talk — not in the picture.

The test: read the figure aloud. If you find yourself reading a sentence off it, that sentence should not be there.

Headlines are short

Aim for a noun phrase that names the slide, not a sentence that explains it: A chord, three dice, and a look-up in a catalog should become Stochastic chords; The task: the probability of the next word, given the words before should become Context and prediction. Two to four words, not a full clause.

Trim the whitespace

A figure should be tight to its content on all four sides — no title band, no caption band, no generous margin anywhere. The slide provides the space around the picture; the picture should not provide its own. After drawing, the ink should reach close to every edge of the canvas — check this by eye, since a broad empty margin is easy to miss.

This does not license running wide to fill the column. A figure earns width by having real content at that width, not by having had its whitespace trimmed.

Before you finish

  • Rerun the script and report the slide count.
  • No shape extends past 10.0in.
  • Every figure's bottom edge at 5.02in.
  • No bold=True anywhere.
  • Every reproduced figure has its source line, and no source line is invented — SOURCE TK where genuinely unknown.
  • No figure carries a title, subtitle or caption the slide already provides.
  • Headlines are noun phrases, not sentences.
  • The deck is in Attachments/, the script in Attachments/slides/.