Skip to content
◀ Blog

How to make a presentation with Claude Code

Claude Code can write a whole slide deck as MDX and React. How to keep it from producing bullet walls, generic AI prose and numbers nobody can trace.

Riley Hilliard8 min read

presentationsclaude-codeagents

To make a presentation with Claude Code, have it write the deck as code. A deck can be a folder of text files, and a coding agent writes those well: it can create the files, run the dev server, look at the result and fix what’s wrong, the same loop it uses on any other project. You get a deck that lives in git, diffs like code and exports to PDF.

Left to its defaults, an agent fills each slide with six bullets, writes in the same rhythm as every other AI-generated deck, and puts numbers on slides that came from nowhere in particular. A better theme fixes none of those. They need rules the agent reads before it writes, checks that run while it writes, and a pass afterward that traces every number to its source. We built Decks, a React library for slide decks, to supply those, and this post covers the general approach first and Decks where it goes further.

Can Claude Code make a presentation?

Yes. Claude Code can scaffold a deck, write each slide, start the dev server and iterate on what it sees. In Decks a slide is one MDX file, and its filename sets its place in the deck:

---
title: Rollout
---

# Ship the billing change behind a flag.

<Steps from={1} enter="rise">

1. Turn the flag on for internal accounts first.
2. Watch refund requests for one billing cycle.
3. Turn it on for everyone if they stay flat.

</Steps>

Ask for a deck with no other guidance and you’ll get one that builds but needs rewriting before you present it, because nothing in MDX or React tells the agent how much text a slide should hold or where its numbers came from.

Why write slides as code?

A deck made of text files gives an agent more to work with than PowerPoint or Google Slides, because it can read and edit every file directly. A slide is MDX, components are React, and the dev server updates live, so the agent can change a file and check the result in seconds. Slides can embed real components, so a chart is drawn from data instead of pasted in as a screenshot.

Slidev and Marp take the same approach with Markdown. Marp is the simpler one: plain Markdown with a theme, and a CLI that exports to HTML, PDF and PowerPoint. If your slides are text and images, it’s less to learn. Slidev adds Vue components. Decks is built on React, which suits charts that animate and slides assembled from components you already write.

With any of them, the deck can live in the same repo as the data it describes, and a reviewer reads the agent’s changes as diffs.

How do you stop the agent from writing bullet walls?

You give it a word budget and a slide structure before it starts, and you write them as rules it loads with the deck files. An agent that’s told “keep slides concise” will still write six bullets. An agent that’s told “three bullets, one sentence each, about 70 words per slide” mostly does that.

Decks writes these rules into your project. Install the package, then run its init command:

$ bun add @steamfield/decks react react-dom
$ bunx -p @steamfield/decks decks init

With npm, use npm i for the install and npx -p @steamfield/decks decks init. Keep the -p flag: the bare name decks on npm is an unrelated package. init enables the Decks plugin for Claude Code in .claude/settings.json, copies the plugin’s skills to .agents/skills/ for Codex and adds a section to AGENTS.md. The plugin has a deck-author agent, seven skills (building-a-deck, writing-slides, deck-design, deck-motion, visualization, deck-data and working-with-decks) and two hooks. Each collaborator runs claude plugin install decks@steamfield --scope project once.

The writing rule sets the budget. A slide headline is a full sentence stating the finding, ending in a period: “Refunds stayed flat after the change.” rather than “Rollout results”. A slide gets at most three bullets, one sentence each. No slide has a paragraph. A normal slide runs about 70 visible words, and at 150 it needs splitting. Anything that takes three connected sentences to explain goes in the speaker notes.

Story decks

Some talks are better told with one chart that changes than with a sequence of bullet slides. Decks has a story deck for that. Each slide pins one visualization to the stage and moves it forward a beat each time you press the arrow key, while a floating card carries the text for that beat. Beats follow the slide’s click count, so pressing back replays the step in reverse. A card’s budget is tighter than a slide’s: eight words of lead and twenty of body.

$ bunx -p @steamfield/decks decks new my-talk --story --author 'Your Name'

That scaffolds a cover, one stage component, a data/ module and a data-sources.md. The stage draws with Decks’ components: <OpenChart spec={spec} /> renders an OpenChart spec sized for the 1920x1080 slide, and marks like InkLine, InkBars, InkNumber and InkTimeline draw onto the stage. Run bunx -p @steamfield/decks decks new my-talk without --story for a conventional deck with bullets, tables and charts.

Decks / story player
LOCALREADY

A story deck Claude Code built with Decks, replayed from its own data.

87% used webpack in 2025. 26% of them would again.

20162018202020222024020406080100%webpack, woulduse again26Vite, used it84
201620202024020406080100%webpack, woulduse again26Vite, used it84

State of JavaScript survey, 2016 to 2025. 2018 and 2019 are estimated from the trend.

Play the original deck and the other examples at decks.steamfield.io

Fig. 1 Five slides from a story deck about the move from webpack to Vite, drafted by a Claude Code subagent with Decks. Webpack's 2018 and 2019 values are estimated from the trend. Source: State of JavaScript survey (Devographics), 2016 to 2025, via OpenData

How do you keep AI prose out of the slides?

Rules alone don’t hold. An agent that has read “no em dashes” will still write one 40 slides later, so the check has to run on the text itself. Decks does this in two places.

decks lint scans the prose in slides/*.mdx, the text in your React components and the copy arrays in story stages against 27 patterns of AI prose. It exits 1 on an error-level hit, so it can run in CI, and --strict makes every hit fail.

Five of the 27 patterns are errors, and in Claude Code a hook enforces them while the agent writes. decks hook lint runs before every Edit, Write and MultiEdit and denies a write to deck prose that contains:

  • an em dash
  • a stock phrase such as “here’s the thing” or “let that sink in”
  • the “not just X, but Y” escalation
  • AI marketing vocabulary
  • inflated significance, such as “marks a pivotal moment”

The agent gets the denial and the reason, and rewrites the sentence before it lands in the file. If the scanner can’t run, the hook refuses the write. The other 22 patterns are warnings that decks lint reports for you to judge. A second hook, decks hook prompt, adds a reminder of the writing rules whenever a prompt asks for deck work.

How do you check the numbers on a slide?

You re-run the source behind each one and compare, so every figure on a slide needs a recorded query, file or document behind it. Without that record, an agent asked to “make sure the numbers are right” will reread its own slides and agree with itself.

In a Decks project, that record is data-sources.md, which maps each slide to the query behind each figure, and every data/*.ts module repeats its source in a header comment. A figure that can’t be traced to one of those doesn’t go on a slide.

The deck-data skill then works through the deck. It inventories every claim in the slides, components and data modules, reruns each query as recorded, pastes the result row next to the claim, and marks it VERIFIED, MISMATCH, UNVERIFIABLE or UNSOURCED. Percentages have to match within 0.1 percentage point, and counts exactly. A figure about something that changes, with a recorded date more than 90 days old, is STALE. The skill never marks a number verified from memory, and it writes its findings to fact-check-report.md in the deck.

The tides deck in the Decks repo shows what this catches. Claude Code drafted it in one run, and the fact-check found a card that read “0.36 m” for a NOAA value of 0.365 m, because JavaScript’s toFixed(2) rounded it down instead of up to 0.37. It also caught a line, “Long, narrow bays get the biggest tides”, that NOAA’s own page contradicts: funnel-shaped bays magnify tides and narrow inlets tend to dissipate them. Both were fixed.

How do you present and export the deck?

Run the dev server and present from the browser:

$ bunx -p @steamfield/decks decks dev my-talk

Press p for a presenter window with your speaker notes and the next slide, and drag it to your own screen; the audience window follows it. In either window, Cmd/Ctrl + and - resize the slide text and Cmd/Ctrl 0 resets it, which helps in a room with a small screen.

For files to hand out, decks build my-talk writes a static site to dist/, which you can host anywhere, and decks export my-talk writes a PDF. For a deck that animates, the static build keeps the animation and the PDF captures each click as its own page; --final prints one page per slide instead. Decks doesn’t export PowerPoint.

Before you present, decks check verifies that every deck in decks.json loads and its slide files are named correctly, and reports error-level lint hits. decks shot my-talk 3 screenshots slide 3 so you or the agent can see what the audience will see. export and shot need a Chromium for Playwright; without one they print npx playwright install chromium.

Decks has the full command reference and the example decks.