Show the human a page they can point at and comment on, on the app's Preview tab — built from a real screen of this project, so it uses the project's own styles. Use when a change to a UI is easier to judge by looking than by reading, or when the human asks to see something before you build it.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Preview?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/kbarendrecht-preview)
---
name: preview
description: Show the human a page they can point at and comment on, on the app's Preview tab — built from a real screen of this project, so it uses the project's own styles. Use when a change to a UI is easier to judge by looking than by reading, or when the human asks to see something before you build it.
---
# Show the human a page
You put an HTML page on the Preview tab beside your terminal. The human clicks an
element or selects some text and comments on it; the comments reach you through
`orch wait`, beside any grill answers. The mechanics are in `orch preview --help`.
This file is the method.
Arguments, if any, say what to show: `$ARGUMENTS`.
## 1. Start from the project's own page
Never write the page from nothing. A page you style yourself looks like your
taste, not like the project, and the human then comments on the wrong thing.
Capture the closest real screen instead:
orch preview capture <url>
It saves the page as it renders — the DOM after its scripts ran, with the
stylesheets, fonts and images it links — and then screenshots the live page and the
copy and compares them. The URL is the human's running dev server; without one,
the checkout's `preview_url` is used, and if that is unset, ask the human for the
address once.
**Do not edit a capture whose check failed** — read why first. The check prints
what it could not fetch and the box the differing pixels fall in, and leaves both
screenshots in `<dir>/.check/`. Look at them.
- **Differences all over the page:** something is missing. Fix it (a server that
is not running, a stylesheet behind a login, a font from a host that refuses) and
capture again, or tell the human what is missing.
- **One small box that is the dev server's own chrome** drawn over the live page —
an error badge, a toolbar, a cookie banner: the capture is right to leave it out.
Say so in a line and go on.
- **One small box over something that moves** — a spinner, a clock: the same.
## 2. Change only what the question is about
Edit the captured `index.html`. Reuse the classes and components already on the
page; a new element styled with the project's own classes looks like the project.
Add inline styles only where nothing on the page fits, and say so.
Mark every element you changed or added with `data-orch-rev="<round>"`, starting at
1. The tab uses it to show the human what changed between rounds.
## 3. Show it, and wait
orch preview open <dir>/index.html
orch wait
Tell the human in a line what the page shows and what you want them to judge.
`orch wait` returns their comments, each with what it was about — an element, or
the text they selected. Change the page, raise the round in `data-orch-rev` on what
you changed, run `orch preview open` again, and wait again. Stop when they say it
is right, then build the real thing.
## Without Chrome
`orch preview capture` needs Chrome. Without it, write the page so it links the
project's built stylesheet and uses its classes and design tokens — read the CSS
first — and say that it is not a capture. Without any stylesheet to link (a CLI, a
backend), there is no preview to make: ask in words, or grill.
## If the tab is off
`orch preview` refuses unless the checkout has `grill_preview` turned on. Then
describe the change in the terminal instead.