---
name: drawpage
description: Build a standalone interactive HTML decision page ("drawpage") whenever a human must decide something they need to SEE in place — a wording change, a layout choice, control placement, or competing designs. Draws the real screen, pins numbered decision markers directly on elements, switches options live in place, accepts free-text overrides, and outputs a single paste-ready answer line.
---

# Drawpage — Interactive Visual Decision Pages

A **drawpage** replaces long back-and-forth chat explanations whenever a human decision-maker needs to **see** options directly inside the real interface. The page carries all visual detail; the chat carries one short line.

*Created by Ömer Can Atakol — shared as part of the Team `--upgrade` Program.*

---

## 1. When to Use It
- **Wording decisions** (labels, hints, empty states, CTAs): draw the real screen and pin a marker onto the exact string.
- **Layout, placement, or visual design choices:** draw options as live switchable states on the real component or screen.
- **Do NOT use** for trivial yes/no questions answerable in one sentence, or as a passive status report.

## 2. Reuse Check First
Before proposing any new component or screen, inspect your existing design system / surface registry. **"Extend the existing surface"** must always be drawn as one of the options, with a compact reuse table (`REUSE` / `EXTEND` / `NEW` / `RETIRE`).

## 3. Page Contract
1. **Draw the real screen.** Use the product's actual CSS tokens, spacing grid (e.g. 8-pt grid), and realistic content marked *"example"* — never lorem ipsum.
2. **Pin numbered spots.** Mark every open decision on the stage with a numbered badge (`① ② ③`) and subtle dashed outline. One decision per spot.
3. **Side-by-side decision rail (`>= 1024px`).** Place the live stage (`minmax(0, 1fr)`) on the left and a sticky `<aside>` decision rail (`400–440px`, `height: 100vh`, own internal scroll) on the right; stack only below `1024px`. Never bury options underneath a tall screen.
4. **Original · Suggested · Recommended · Other:**
   - Open each spot card with **one plain sentence** stating which element this is and what the choice changes.
   - **Option A is always `Original`** — the exact text/state currently shipped, shown in full (never a bare label like `"keep as is"`).
   - **Options B–D are `Suggested`** — each showing its **full replacement text**, with only the words that differ from Original highlighted in bold.
   - Place a **`recommended` pill** (with a half-line reason) on **exactly one option** and **pre-select it on load**, so the reviewer only clicks spots where they disagree.
   - Every spot ends with **`Other`** plus a free-text box. Text typed while a lettered option is selected rides along as a note.
5. **Live in-place switching.** Clicking an option immediately updates the live stage on the left, scrolls that element into view if off-screen, and briefly pulses its highlight. Clicking a spot badge on the stage scrolls the right rail to its card.
6. **Copy purity inside the mock.** Inside the drawn UI, render ONLY strings an end user would see. All explanations, rationales, and comparison notes live outside the mock in the decision rail.
7. **States over prose.** If a component has multiple states (empty / active / error / mobile), make them clickable tabs — not paragraphs.
8. **Single paste-ready answer line.** Dock a non-overlapping `flex: none` footer at the bottom of the `<aside>` rail that composes one compact answer string as picks change:
   `1B · 2A (note: "tighten spacing") · 3: "custom wording"`
   Persist picks in `localStorage` (wrapped in `try/catch`, synced across tabs via `storage` events), with a one-click **Copy answer** button.

## 4. Verification & Handoff
- Keep the file as a self-contained `.html` artifact (check inline JS parses cleanly before sharing).
- In chat, share the page link plus at most **five short lines**: what is drawn, what changed, your recommended answer line (`1B · 2A · 3A`), and anything unverified.
- When the human pastes back their answer line, lock **exactly** what was chosen. Ideas dropped inside notes are logged separately rather than silently built.
