--- name: create-workbench description: "Use when a page is wanted to work on something with the person during development, fed the project's real data (comparing model answers, walking an agent call by call, measuring an output against its template), when such a workbench has to change, be reworked or its feed broke, or mid-session when turns went into aligning with the person on how to do a kind of work that recurs and real project data could show it. Produces the page in aiview, kind `workbench`, and the project's `workbench-` skill with its feed and operating steps. Not for designing a product screen (design-prototype) or verifying user stories (verification-skill-create)." --- # Create a workbench **Some work is done with the person in the loop, and time goes into aligning on how to do it.** That alignment is kept as a skill, so the next session does not explain it all again; a workbench keeps it with a dev tool beside it, fed the project's real data. It is made at the start of the work or mid-session. **Mid-session, propose it in one line, at a pause**, when three things hold: the session spent turns aligning on how to do a kind of work, that work recurs, and real project data could show it. Build only on a yes; one no ends it for that work in the session. **A workbench is a dev tool for iterating on an idea, and it has two users**: the person, who needs a clear UI that opens on what is being tried now, and the agent, who needs the bench cheap to read, change and check. It is judged by the time from "what if…" to the result seen. **Two things are produced, and a later agent works the bench from them alone**: the page, in the data home like every document, and the project's `workbench-` skill, which holds the feed that fills the page and the steps to operate it. **The bench's skill makes the agent operating it the bench's owner**, by its role: that agent keeps the page, the feed and the scripts true, fast and easy to drive, adapting them in place when the project moves on. No other skill maintains them. **A bench is never tested.** No test file for its page, feed or scripts, by any agent, at any time: a bench changes with every idea, and tests would freeze it. It is checked by being run: the feed's loud failures, `check.mjs`, the screenshot, the person. **The person is in the build.** Every change is shown in the watched browser before the next question, as the `design-prototype` skill paces a prototype. A bench described in chat was not seen. ## Before building - **A `workbench-` skill's scope covers this question** in the project's local skill folder: read it and its page, and add the question to both as a view or a mode. Never a second bench for one scope: one bench per question and the project's local skills grow with every plan. - **Read the sources before asking**: the files the project produces that the bench will show (recordings, calls as sent, fixtures, templates), where they live, their exact shape, and the code that writes them. - **The watched browser**: a headed browser the person sees and the agent drives, a Playwright MCP over DevTools or a script over CDP. The project's own when it has one, named in its local skills. None: start Playwright's Chromium headed with `--remote-debugging-port=9222`, say so, and stop it at the end. ## Define, through the `interview` skill Each answer is written into the bench skill's head as it lands. 1. **The bench's scope**: a kind of work on a part of the product (any model call, any agent walk, one family of screens), as wide as its sources allow, and the bench's label. The question at hand is its first view. 2. **The sources**, each file or call, as the project produces it. 3. **The feed's kind.** *Derived*: the runs are rebuilt from the sources on every feed. *Log*: entries are appended and never rewritten, for data the project cannot produce again (a call as sent during a walk). The sidecar is then the only record. 4. **What the person does on it**: compare, judge, pick, measure. The controls follow. 5. **Whether operating it takes steps**: start the stack, hold a call, reset state, record an answer. Each becomes a script. ## Build, live 1. **The page**: `node scripts/page.mjs --label "