# Best practices

The prompts of the [library](/presentation/write-with-an-agent/prompts) put these rules into words.
Tick them while you read an agent's answer: a box you cannot tick is a question to send back.

## The brief

The brief is the only part of a prompt you write each time. An agent fills a missing field by
guessing; the prompts ask it to infer the field from the catalogue and to say so.

<Checklist
  title="The brief"
  phase={1}
  items={[
    "The audience, named as a group, and its register",
    "The duration in minutes, and the date of the talk",
    "The decision or action expected at the end",
    "What must not be on screen (internal names, unconfirmed figures)",
    "The pages that hold the facts, and a neighbouring deck as a model",
  ]}
/>

## The fact sheet

Phase 1 ends with a table, never with slides. Each fact gets its source page and one of three
statuses: **observed** (measured or seen in the source), **declared** (stated by someone, not
measured) or **to prove**. A fact to prove stays in the deliverable as an open question.

<FactSheet
  caption="A fact sheet, as phase 1 hands it over"
  facts={[
    { fact: "Lorem ipsum takes 12 s to build", source: "pages/benchmarks.md", status: "observed" },
    { fact: "Dolor ships before the spring release", source: "pages/roadmap.md", status: "declared" },
    { fact: "Sit amet halves the review time", source: "none yet", status: "to prove" },
  ]}
/>

## The plan

The plan is in the agent's answer, so you can correct it before anything is written. Read its titles
alone, in order: they should tell the whole story.

<DoDont
  bad="Architecture"
  good="One source feeds every format"
  badLabel="Label"
  goodLabel="Title sentence"
  why="A label says what kind of slide follows; a title sentence says what the slide proves."
/>

<Checklist
  title="The plan"
  phase={2}
  items={[
    "The single message, in one sentence",
    "Three or four parts: cover, message, sections, decisions requested, closing",
    "Per slide: a title sentence, a layout, its facts, what goes in the notes",
    "The time budget: slides × average time, against the duration",
    "One idea per slide, no slide without a role, nothing repeated from another deck",
    "The decision before the closing",
  ]}
/>

For the budget, count about 30 seconds to a minute per slide, then check it against the estimate
Récit computes from the words of each slide and its notes, at 140 words a minute.

## On screen and in the notes

The screen holds what the audience reads; the notes hold what the speaker says. These are the limits
the build checks (see the [density rules](https://docs.recit.dev/formats/deck/density-rules)): **40 words, 6
bullets, 4 cards and 3 columns** per slide. Set `rules: { enforceAntiOverload: true }` in the front
matter and a slide over a limit fails the build instead of printing a warning.

```md
---
title: Lorem ipsum
author: Lorem Ipsum
date: 2026-11-03
lang: en
register: R2
duration: 10
audience: Practitioners of lorem ipsum
colorMode: system
rules:
  enforceAntiOverload: true
---

--- { "layout": "cover", "id": "cover" }

# Lorem ipsum keeps one source for every format

:::notes
The spoken development, in full sentences.
Source: pages/lorem.md
R1: the short version for decision makers.
:::
```

<Checklist
  title="Writing"
  phase={3}
  items={[
    "One id per slide: --- { \"layout\": \"…\", \"id\": \"…\" }",
    "At most 40 words and 6 bullets on screen",
    "In the notes, the spoken development and a Source: line for every figure",
    "R1: / R2: / R3: lines in the notes where the register changes the words",
    "A title=\"…\" on every Mermaid diagram, alt text on every image",
    "No skipped heading level, no decorative glyph, the typography of the deck's language",
  ]}
/>

## Registers

A register is the level of the audience: how much it already knows and what it needs to decide. You
define the scale once for the project and every deck names its own, for example **R1** for decision
makers, **R2** for practitioners and **R3** for specialists.

- The register is in the brief and in the front matter (`register: R2`). Récit accepts the key
  without reading it: it is there for the agent, the reviewer and the next rework.
- It decides the title sentences. For R1 a title states a consequence or a decision; for R3 it can
  name the mechanism.
- It decides what is explained. Jargon the register does not share is explained in the notes or
  removed, never left on screen.
- A deck has one register. When another audience needs other words, the notes carry the variants as
  `R1:`, `R2:` and `R3:` lines; when it needs another order or other slides, it is another deck (the
  [adapt prompt](/presentation/write-with-an-agent/prompts)).

The `R1:` lines are a writing convention, not Récit syntax: they stay in the notes as text, for the
speaker who knows the room.

## Prudence with numbers

- An estimate is said as one: "about", "estimated at", with its source.
- No figure is invented to fill a slide. A missing figure is a question in the deliverable.
- A figure is rounded only as its source rounds it: 12.4 stays 12.4, not "about 12".
- A translation changes the notation (12,4 in French), never the value.

## The proof loop

Phase 4 runs the real commands. Each one checks something the next one does not.

| Step | Command                                      | It checks                                                                                       |
| ---- | -------------------------------------------- | ----------------------------------------------------------------------------------------------- |
| 1    | `recit validate slides.md`                   | the story against its schema, nothing more; prints `✅ slides.md (markdown)` or each diagnostic |
| 2    | `recit build slides.md -o <dir>`             | density (`✖` with `enforceAntiOverload`, else `⚠`), alt text, Mermaid titles; exits 1 on an `✖` |
| 3    | `recit dev slides.md --port 3100`            | serves the deck with hot reload at `http://localhost:3100`, the HUD shown on every slide        |
| 4    | Playwright, `http://localhost:3100/?slide=N` | every slide at 1280×720, light then dark, and axe's `heading-order` rule; `N` starts at 1       |
| 5    | `http://localhost:3100/?mode=presenter`      | the presenter console: the notes of each slide and the total estimate                           |

`recit build` is strict by default: an error makes it exit with 1. `--no-strict` exists to build
anyway; a prompt never uses it.

Two checks are not where you would look for them. The build finds a heading that skips a level but
does not print it, so the prompts ask for an axe `heading-order` pass on the captures. In
`recit dev` the HUD with the speaking time of the slide is on from the start, and :kbd[H] hides it.
:kbd[S] opens the presenter console in a new window, which a script drives badly: `?mode=presenter`
opens it in the page itself. :kbd[T] switches light and dark when the capture script cannot set the
browser's color scheme.

<Checklist
  title="Before handing over"
  phase={4}
  items={[
    "recit validate: zero diagnostics",
    "recit build: no ✖ line and no ⚠ line",
    "No heading that skips a level (axe heading-order on the captures)",
    "Every slide captured at 1280×720, light and dark, and looked at",
    "No overflow, no unreadable diagram, no pale text, no empty layout",
    "The estimated duration against the target",
    "A full pass with zero defects after the last fix",
    "Nothing committed: the working tree and the report are handed over",
  ]}
/>
