# ART.md — how every picture is made
Every illustration in Rosea Domi goes through this pipeline. A picture that skipped a step is
not shipped, however good it looks (CLAUDE.md §7).
- **What the pictures look like:** [`art/STYLE.md`](../art/STYLE.md). Mark approved it on
2026-11-01 (S1–S5 in its §0).
- **Which pictures exist:** [`art/manifest.json`](../art/manifest.json), Phase 1 first.
- **The tools:** [`tools/art-prep/`](../tools/art-prep/). It turns those two files into prompts,
stand-ins and the board, and moves accepted pictures into `art/final/`.
- **The board:** a private claude.ai page, *Rosea Domi Art Board*. It is published from
`tools/art-prep/dist/board/`, and Mark works there.
---
## 1. The steps
```mermaid
flowchart LR
style["art/STYLE.md
§1 system prompt, §7 review points"]
manifest["art/manifest.json
every picture"]
prep["tools/art-prep
pnpm art:board"]
board["Art board
(claude.ai, private)"]
gen["Mark's image generator"]
final["art/final/*.webp"]
app["apps/rosea
(Phase 1 onward)"]
style --> prep
manifest --> prep
prep -- "prompts, stand-ins" --> board
board -- "copy prompt" --> gen
gen -- "paste picture" --> board
board -- "accepted: Claude runs pnpm art:accept" --> final
final -- "git" --> app
```
1. **Prompt.** `pnpm art:board` builds every prompt from STYLE.md §1 and the manifest. A
prompt is never typed by hand, so the rose is described the same way every time. Claude
then republishes the board.
2. **Make.** Mark copies a prompt into his image generator. He starts with `rose-sheet`, the
character sheet, because every rose prompt asks for it as the reference picture.
3. **Paste.** Mark pastes or drops the result onto its card. The board measures it at once:
its shape, whether the background is transparent, and for a sprite sheet whether each cell
holds its own drawing and stays clear of the cut lines.
4. **Claude's review.** Claude reads the uploaded picture and checks it against STYLE.md §7
and §8: likeness to the book, soul, and painted words. Claude writes the review into the
card's row, and it shows on the card as *Claude's review*.
5. **Mark's approval.** *Accept* or *Another try*, with an optional note. The note goes into
the next prompt for that picture.
6. **Into the game.** Claude downloads the accepted picture from the board, runs
`pnpm art:accept `, and commits the WebP files on an `art/` branch.
`art:accept` cuts sprite sheets apart, checks again and keeps each file within budget
(§4). Claude then writes `final` into the row, and the card says *In art/final/*.
**The Phase 0 gate** is one picture all the way through these six steps (ROADMAP.md, Phase 0).
The board starts with `rose-sheet`. The first picture the app will actually show is the app
icon.
## 2. The manifest
`art/manifest.json` says what is wanted, never whether it is done. Progress lives on the board.
Each picture has an id, a kind, the size it is made at, its background, where it is used, and
the words its prompt is built from. `tools/art-prep` refuses a manifest with any of these:
- an id that repeats, or that isn't lower-case words joined by hyphens
- a size image generators don't offer
- a grid that doesn't match its cells, or doesn't divide the sheet into whole pixels
- a character without a sheet
- a sprite or layer on a full background
- a review point that STYLE.md §7 doesn't have
- **any forbidden word or name** from `@rosea/content`, the same list `lint:copy` uses. A prompt
that names the book's title, its author or anything in Tolkien never reaches a generator.
## 3. The board
The board is the Panda Domi art board, adapted for Rosea. Its source is
`tools/art-prep/board/index.html`. `pnpm art:board` fills in the product name from
`@rosea/schema` and writes the page, `board-data.json` and the stand-ins to
`tools/art-prep/dist/board/`, which is git-ignored.
- **Stand-ins** are Claude's SVG placeholders from `tools/art-prep/src/placeholders.ts`. They
are committed under `art/placeholders/`, and a test fails if they drift from the manifest.
- **The board's store** (claude.ai artifact storage) holds one row per picture: the uploaded
image's id, its measurements, the status, Mark's note, Claude's review and `final`. Only
editors of the board can write.
- **All at once:** every picture still to make can go out as one long prompt. Files dropped
together are matched to pictures by their names.
### Decided 2026-11-01: a claude.ai board, not a page on 127.0.0.1
The roadmap first planned `tools/art-prep` as a page served on 127.0.0.1. Mark asked instead
for the board Panda Domi already uses. It works from any device, it keeps the pictures between
sessions, and Claude can read it. `tools/art-prep` stays: it builds the board's files and runs
the accept step.
**Privacy.** Only generated art and Mark's notes go to the board. No player data, ever: the
app never talks to the board, and pictures reach the app only through git (`art/final/`). The
board is private to Mark unless he shares it.
## 4. The budget per final picture
Every final picture is precached, so a player downloads all of them once. `art:accept`
encodes WebP at quality 82, then 72, then 62, and refuses a picture that is still over its
budget.
| Kind | Budget | Why |
|:--|:--|:--|
| Garden layer (1024 × 1536) | 350 KB | Four layers: about 1.4 MB, the largest share of the bundle |
| Character sheet | 400 KB | A reference only. It is kept in `art/final/` but never shipped |
| Single picture, sprite-sheet cell | 120 KB | Small things over the garden |
| App icon | 120 KB | Phase 1 also makes the PNG sizes the web manifest needs from it |
`art:accept` never makes a picture bigger. A picture smaller than its size is kept at its own
size, and the step says so.
## 5. What is not here yet
- **The app does not show any final picture yet.** Phase 1 builds the rose's screen and swaps
the stand-ins for `art/final/` files. The app icon (`apps/rosea/public/icon.svg`) is still a
stand-in.
- **A likeness check by machine.** Likeness to the book is judged by Claude's review and
Mark's eye (STYLE.md §8). No automatic comparison exists.
- **Fox, planets and berries.** These are Phase 2. Their pictures join the manifest with the
Phase 2 feature docs.