Writing down taste, as a template

Onboarding an AI agent works like onboarding a capable new teammate. Unless you explain clearly what good looks like, what to avoid, and how to verify the work, any model defaults to generic internet averages.

Taste does not have to stay locked in your head as intuition. You can write it down as clear repository rules, separate reviewer personas that never grade their own code, and automated checks that inspect the actual screen before asking for your review. Here is how to set that up in any project, ending with a single setup prompt you can paste straight into your coding agent.

1. Define what good looks like in observable terms

Words like "clean", "modern", "intuitive", or "natural" mean something different to every person and model, which makes them weak instructions. Replace broad adjectives with specific choices an agent or script can verify:

  • Visual and interaction standards: Name two or three real products or interfaces as structural references, then specify your type hierarchy, spacing grid, motion timing, contrast floor, and minimum mobile tap-target sizes.
  • Writing and voice standards: Spell out how copy should read in plain terms, including sentence-length variety, how numbers and baselines must be stated, and banned filler words or punctuation.
  • Explicit anti-goals: List the exact UI patterns, layout habits, and architectural shortcuts you never want introduced so builders avoid them from the first draft.

2. Keep root instructions short and split out specialized skills

Create a CLAUDE.md or AGENTS.md file at the root of your repository and keep it under 200 lines. Because every session loads this file on every turn, stuffing every edge case into the root file buries the rules that matter most. Limit the root file to exact build and test commands, architectural boundaries that are not obvious from reading the code, recurring mistakes to avoid, and how you want agents to ask questions (for example, grouping open questions into ranked options with a recommended choice first so you can answer quickly).

Move specialized workflows like visual QA, accessibility checks, copy editing, or database migrations into standalone SKILL.md files so an agent loads those instructions only when the task calls for them.

3. Separate builders, critics, and breakers by persona

Asking the same session that just wrote a feature whether its output looks good rarely catches real flaws. Like humans, models justify their own compromises. Split quality control across distinct agent personas with strict file permissions:

  • Builders own one defined slice of the codebase at a time, run tests locally, and never approve their own work for release.
  • Critics (Judges) review rendered output through a focused specialist lens and have read-only access so they cannot silently edit files. A strong review bench pairs a Design Critic (hierarchy, typography, spacing, motion), a Technical Reviewer (state boundaries, caching, bundle budgets), a Privacy and Security Reviewer (secrets, metadata, auth scoping), and a Target User Proxy (for example, a time-pressed customer or hiring executive looking only at mobile screenshots).
  • Breakers try to make the build fail by testing narrow mobile screens, maximum text scaling, slow networks, empty or error states, broken links, and unapproved copy.

Three rules keep critic personas accurate and fast. First, calibrate critics on your dated accept and reject decisions so they grade against your standards rather than generic checklists. Second, run two critics independently on important screens before comparing notes so they do not echo each other. Third, stop automated fix loops after three rounds and ask a human rather than burning hours on minor tweaks.

4. Give agents real tools to validate what good looks like

Reading source code alone will never tell an agent that a headline wraps awkwardly on a phone or that text loses contrast over an image. Connect concrete verification tools to your local workflow and CI checks so critics and breakers inspect real output:

  • Headless browser screenshots across screen sizes: Use Playwright or headless Chrome to wait for fonts and images to load, capture mobile (390 px) and desktop (1440 px) screenshots, and check for zero horizontal overflow (scrollWidth <= clientWidth), comfortable tap targets (44 px to 48 pt), and clean reflow under large system text sizes.
  • Visual diffs, contrast checks, and focal-point checks: Compare rendered pages against reference designs or baseline snapshots, verify WCAG contrast ratios across light and dark states, and check blurred screenshots to confirm the primary headline or action stands out clearly over secondary controls.
  • Automated scripts that fail the build: Put rules you refuse to compromise on into fast scripts that break the build automatically, including file-size budgets, schema validators, link checkers, EXIF and PII scanners, and linters for banned words or punctuation. Whenever a real mistake reaches your screen during review, add an automated check for it that same day.

5. Log verbatim feedback, record rulings, and test a fresh session

Keep one dated file of your raw feedback word for word rather than letting an agent summarize it into bullet points. Paraphrasing strips out personality and hides why a choice worked or failed. Whenever your notes conflict or leave an open gap, have your lead session make a clear decision, log the date and reasoning in a rulings section, and keep moving until you overrule it.

To check whether your written context holds up on its own, open a brand-new session with zero chat history, give it only the repository, and ask how it would handle three real product or design decisions you already made. Wherever its answers miss the mark, update your files.

Copy-paste setup prompt

Paste this prompt into a new coding agent session inside your repository. The agent will inspect your codebase first so it skips questions the code already answers, interview you in two short rounds to capture your taste and verification rules, and write all three files using your exact words.

You are onboarding onto this repository as my lead agent. Before writing any feature code, set up our durable taste, persona, and verification files by following these steps in order:

### Step 1: Read the repository silently first
Inspect package manifests, test runners, linters, CI configs, and existing docs to find our build commands, test commands, framework boundaries, and existing automated checks. Never ask me a question the codebase already answers.

### Step 2: Interview me in two short rounds (4 questions max per round)
Ask Round 1, wait for my replies, then ask Round 2. Format every question with 3 concrete options (put your recommended option first based on this repo) plus "or write it in your own words":

- **Round 1 (Taste & Anti-Goals):**
  1. Which 2 to 3 real products, sites, or interfaces match the visual and interaction bar we want?
  2. What specific UI patterns, layout habits, or architectural shortcuts should we ban outright?
  3. How should written copy sound (sentence rhythm, tone, how numbers are stated, and banned words or punctuation)?
  4. Who is the primary end user we should simulate during screenshot reviews, and what screen size matters most?

- **Round 2 (Workflow, Personas & Validation Gates):**
  1. How do you want open questions and trade-offs presented when notes conflict or leave a gap?
  2. Which non-negotiable rules must break the build automatically (for example: mobile overflow, tap targets, contrast, bundle size, privacy/EXIF checks, or copy rules)?
  3. Which visual inspection tools can we run locally or in CI right now (Playwright, headless Chrome screenshots, visual diffs, accessibility checks), and what should we set up first?
  4. Which folders, files, secrets, or production paths are strictly off limits without asking first?

### Step 3: Write these three files using my verbatim words
Do not paraphrase my answers into generic summaries. Quote my exact words with today's date, mark anything you inferred from the codebase as `[inferred]`, and keep `CLAUDE.md` under 200 lines:

1. **`CLAUDE.md`** (under 200 lines):
   - Exact build, test, and check commands
   - Off-limits files and recurring codebase gotchas
   - **What good looks like:** reference benchmarks, visual/UX standards, writing/voice rules, and explicit anti-goals
   - **Working with me:** question format, instruction to check `FEEDBACK.md` before asking anything twice, `[inferred]` tag rule, and pointers to on-demand `SKILL.md` files

2. **`ROSTER.md`** (role separation and validation tools):
   - **Core rules:** Builders never grade their own output; Critics have read-only file access and grade rendered screenshots and test output rather than source code alone; run independent critic passes; stop after 3 fix rounds and ask me
   - **Personas:** Design Critic, Technical Reviewer, Privacy/Security Reviewer, Target User Proxy (tailored to my Round 1 answer), and QA Breaker
   - **Validation checklist:** exact mobile and desktop viewport widths, overflow/tap-target checks, contrast checks, and build-breaking scripts

3. **`FEEDBACK.md`** (dated feedback and rulings):
   - My raw feedback, quoted word for word with the date, never summarized
   - **Rulings:** each decision made where my notes conflict or leave a gap, with the date and reasoning, standing until I overrule it