# Write with an agent

<AgentHero
  title="A deck is only as good as the prompt that asks for it"
  lead="Ask an agent for a deck about a subject and it writes slides at once: label titles, guessed figures, no proof. The prompts of this section hold it back until it knows its facts and its plan, then make it prove the result with the real Récit commands."
>
  [Open the prompt library](/presentation/write-with-an-agent/prompts) [Read the best practices](/presentation/write-with-an-agent/practices)
</AgentHero>

## Why a prompt in phases

A deck is a chain of decisions: what the audience must leave with, which facts carry it, in what
order, at what density. An agent that starts with the slides makes all of them at once and silently.
A prompt in phases makes it take them one at a time, each with an output you can check before the
next one starts.

<PhaseTimeline />

Every prompt of the [library](/presentation/write-with-an-agent/prompts) follows this shape, even
when it covers only part of it: reviewing a deck is phase 4 alone, adding notes is phases 1 to 4 on
the notes only.

## The principles

1. **One message per deck.** The plan opens with one sentence the audience must leave with. A slide
   that does not serve it has no role and is cut.
2. **A fact sheet with sources.** Every figure, date, verdict or name is listed with the page it
   comes from and its status: observed, declared or to prove. A fact without a source never reaches
   the screen.
3. **The plan before the slides.** Title sentences, layouts, facts and notes, slide by slide, and a
   time budget, in the agent's answer, not in a file. You correct a plan in a minute; a deck takes
   an hour.
4. **Proof with the real commands.** `recit validate`, `recit build` with
   `rules: { enforceAntiOverload: true }`, then `recit dev` and a capture of every slide, light and
   dark. The [best practices](/presentation/write-with-an-agent/practices) list each command and
   what it checks.
5. **A loop until zero defects.** A defect found in phase 4 sends the deck back to phase 3, and the
   whole proof runs again. The agent stops on a clean pass, not on a first draft.
6. **Nothing committed.** The agent hands over the working tree and a report: plan, fact sheet,
   command output, estimated duration, corrections, open questions. You review, you commit.

## The method, as a deck

The deck below presents the method, and it was written by following it: a brief, a fact sheet whose
sources are the pages of this section, a plan of title sentences, then `recit validate` and
`recit build` until both were silent. Its first build failed on a slide of 57 words, then of 41;
every slide now holds 40 words or fewer. A later review found headings that skipped a level, a
defect the build does not print: the deck now opens each slide on its title and goes no deeper.

<StoryEmbed slug="presentation/agent-method" />

## Any language, any agent

The prompts are written in English and work in any language: write the brief in yours, ask for the
deck in `lang: fr` or `lang: de`, and the agent answers in it. The
[reference prompt](/presentation/write-with-an-agent/prompts#the-reference-in-french) is also given
in French, the language the method was first written in.

They do not depend on one agent. Any agent that can read files, run commands and drive a browser
with Playwright can follow them; one connected to the
[Récit MCP server](https://docs.recit.dev/documentation/ai/mcp) also reads the deck guide `recit://guide/deck`
and validates without a shell.

## Art direction of this section

The pages of this section follow the rest of the site: the tokens of `@recit/theme`, its neutral
surfaces and its ink, and one colour, the colour of the site.

- **A prompt is a sheet on the page**, set in the site's monospace: the text an agent will read.
- **The four phases are numbered**: context, plan, writing, proof. A number and a name tell them
  apart, in the colour of the site.
- **The motif: four marks on a rail**, the last one bracketed back to the third. It opens this page,
  and the phase headings inside the prompts take the colour of the site.
- **Blanks to fill.** A placeholder such as `<AUDIENCE>` is a tinted field with a dashed underline,
  listed above the prompt and highlighted in it. The copy button copies the file as it is, blanks
  included: you fill them in where you paste it.
- **The red pen.** A wrong example is struck through in the danger colour, its correction set beside
  it in the success colour.

The components are `AgentHero`, `PhaseTimeline`, `PromptCard`, `Checklist`, `DoDont` and
`FactSheet`, in `@recit/site-kit`; their stories show each state in light and dark.
