/vstack:polishfrom Visual Stack
Audits UI/UX at chosen polish levels (Clean, Refined, Showcase), opens a browser report for owner approval, then builds approved changes or generates a shareable report.
Ships in Visual Stack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Audit first, propose second, build after the owner approves. The owner answers the proposal in a report page, in their own browser tab, before any product code changes.
Read lenses.md before Step 3 and report.md before Step 4. Both sit beside this file.
Follow §0 of ../review/SKILL.md to load the adapter for your host. This skill uses the Host ops run, edit, background, watch_stream or watch_next, stop, browser_capture, user_browser and subagent, defined in contracts/host.md. Where the adapter says an op is not available, follow what this file says to do without it.
The skill runs inside a conversation, so take the target and any focus areas from the current work. Ask only if the conversation leaves the target unclear.
The owner picks the level of polish in the review page, not in chat:
| Level | 中文 | Aim |
|---|---|---|
| Clean | 简洁 | Looks right. Clear hierarchy, consistent spacing, an aligned grid, and consistent type, colour, components and copy at every width. No new effects. |
| Refined | 精致 | Clean, plus works right. Links, forms, loading and controls behave as users expect, and nothing loads in a jarring way. No new effects. |
| Showcase | 惊艳 | Refined, plus the finishing touches that make it stand out: animation, parallax, smooth transitions, scroll interactions and playful details, built on one brand idea. |
The level decides which part of lenses.md applies. Clean and Refined find defects and add no new effects. Showcase proposes the effects.
The mode decides which checks apply within each level: Website, Web app, or both for a product that has both. Pick it for each flow, as in Modes in lenses.md.
The delivery decides what happens to the approved changes:
| Delivery | When | Step 5 |
|---|---|---|
Build in this repo (build) | This repo holds the code for the screens in scope. | Build the approved changes. |
Report only (report) | The code is elsewhere, such as a live site or someone else's product. | Write a report of the approved changes to share. |
Pick the default from the repo. The page shows both, and the owner may change it before picking a level.
The owner also sets these in the page. Each is saved with the pick:
| Setting | Key | Default | What it changes |
|---|---|---|---|
| Effort: Low, Medium or High | effort | medium | The model and reasoning effort the workers run at. See Run the work in parallel below. |
| Failure handling | failures | false | The review forces failures and adds the checks in Option: Failure handling in lenses.md, at any level. |
| Proofread (experimental) | proofread | false | The report's words and new UI copy go through vstack:proofread, in Step 4 and Step 5. |
| Trim AI filler (experimental) | trimCopy | false | The review adds check CX1 in lenses.md. |
If .vstack/local/polish/ holds an earlier round for this target, also follow Later rounds below. Rounds from before the rename sit in .vstack/local/design-review/; read them there and save the next round under polish/.
Open the review before you audit:
Write the answers file, .vstack/local/polish/<target>-round-<n>.json from the project root:
{"stage": "choose", "delivery": "build", "canBuild": true, "decisions": {}, "overall": "", "revised": {}}
Write "delivery": "report" and "canBuild": false when the code is not in this repo. If the owner already named a level in chat, or this is a later round, write "stage": "audit" and "level" instead. The page then skips the choice.
Copy assets/review-start.html to <target>-round-<n>.html, unchanged.
Serve the page with Host op background. It opens in the owner's browser:
LIB=<this skill dir>/../../lib
R=.vstack/local/polish/<target>-round-<n>
node "$LIB/json-bridge.mjs" serve --json "$R.json" --template "$R.html" --tool polish --port 0 --host <host id>
Pass your Host profile's id, such as claude or codex, so the page names your agent. Give the owner the whole URL it prints, because the token is part of it.
Arm the watcher, passing the seq the server printed. Use the watch op your Host profile's capabilities.watch names:
capabilities.watch | Host op | Command |
|---|---|---|
stream | watch_stream | node "$LIB/json-bridge.mjs" watch --json "$R.json" --stream --tool polish --seq <seq> |
pull | watch_next | node "$LIB/json-bridge.mjs" watch --json "$R.json" --tool polish --next --timeout 25 --seq <seq> |
A bounded wait returns one event, or IDLE, and ends with a WAIT line. Run the command on that line to wait again, after you have acted on the event. Keep waiting until APPROVED or CLOSED, and do not end the turn while the owner is still answering. How the link behaves is in contracts/bridge-loop.md.
Start the Step 2 reader, as in Run the work in parallel below. Recommend a level, as in Recommending a level in lenses.md, while the owner reads the panels. Write it to the answers file as recommend, with a one-sentence reason in both languages. The page marks that panel Recommended.
Wait for SENT. Do not start Step 2 until the answers file holds a level.
The pick also saves lang, en or zh, the language the page showed, and the delivery, effort, failures, proofread and trimCopy the owner kept.
Split Steps 2 to 5 across workers, so independent parts run at the same time. If the Host profile has capabilities.subagents: false, skip this section and do every step yourself, in order.
Start each worker with Host op subagent:
effortLevels names for effort. If the profile has no effortLevels, pass neither.medium, the default. It starts before the owner picks, so their effort is not saved yet.$R-work/<worker id>/.$R.html, and not to start workers of its own.Run these parts in workers:
| Part | Workers | Each worker returns |
|---|---|---|
| Step 2: read | One reader. Start it as soon as the page is served, because it does not depend on the level. | The project's design rules and tokens, and the files behind each screen in scope. |
| Step 3: walk | One per flow or group of screens in the survey. | Its screenshots with their sizes, its measurements and console errors, and a verdict with evidence for every check that applies to its part. |
| Step 3: failures | When failures is true, one per dependency or failure in Option: Failure handling in lenses.md. | A verdict with evidence for each failure check, and screenshots of each failure state. |
| Step 4: sections | One per finding, or per group of findings on one screen. | The section HTML in both languages, its Today and Proposed pictures, its spec block, and the check ID and evidence for the chat reply. |
| Revisions | After SENT, one per steered or vary section. | The revised section HTML, with its id kept. |
| Step 5: build | One per approved slice, but only when slices change different files. Otherwise build the slices yourself, in order. | The files it changed, the tests it ran, and what it left out. |
Keep this work yourself:
$R.html. Merge what workers return into them, and tick each progress task as its workers report.vstack:proofread, once over all the copy, because it drives the owner's browser.Give each browser worker a headless browser of its own, such as a Playwright browser context, so throttling, blocked requests and cookies stay apart. If no headless browser is available, or the target needs the owner's sign-in in user_browser, capture yourself in that tab, one screen at a time. Then give workers only the parts that need no browser, working from your saved screenshots.
Run no more than six workers at once. If a worker fails or returns something unusable, do its part yourself and say so in chat.
Keep the page current while you work through Steps 2 to 4:
Once the level is known, add tasks to the answers file and set stage to audit. Keep every other key. Write four to seven tasks, each in both languages. Once the survey is done, name the tasks after it, such as the sections walked and the states opened:
{"id": "capture", "text": {"en": "Capture the screens", "zh": "截取各个页面"}, "done": false}
Tick each task as you finish it:
node "$LIB/json-bridge.mjs" patch --json "$R.json" --id capture --set done=true
If you cannot finish, set problem to one sentence in the owner's language and say the same in chat. Say what the owner must do before pressing Retry, such as signing in.
The reader worker does this step when workers are available. Read the project instructions and anything design-related: the design guide, frontend contract, token file and stylesheets. Then read the code for the screens in scope. The review must fit the rules the project already has.
Open whatever we are working on, whether that is a dev server, a preview or a live site, with browser_capture. Use the screen sizes in lenses.md, and choose the themes and states from the requirements. Cover the page as in Covering the page in lenses.md: survey it first, then give every check a verdict.
If the target asks for a sign-in, such as IAP, Google sign-in or SSO, open it with user_browser and ask the owner to sign in there. Capture from that tab. Never type a password yourself.
If the adapter says browser_capture is not available, ask the owner for screenshots of each screen and take sizes from the stylesheets. Say in chat what you could not measure.
Collect evidence:
scrollWidth against clientWidth, heights, counts, font sizes, contrast. Use numbers in findings, because "33 cards, 4,312px" can be acted on and "feels heavy" cannot.lenses.md.report.md.report.md.assets/report-template.html and fill it, in the format in report.md. Save it over the start page at $R.html.
report.md.report.md.proofread is true, run vstack:proofread on the titles, reasons and captions. Read ../proofread/SKILL.md and follow it. If it stops, say why in chat and carry on.stage to report in the answers file. Keep every other key. Write the HTML first: the open tab reloads into the report as soon as stage changes.Product code stays unchanged until the owner chooses Approve & finish or says to build.
Answer each watcher event:
| Event | Action |
|---|---|
SENT, while stage is choose | The owner picked. Read level and lang, start Show progress, and continue at Step 2. |
SENT, with retry set | The owner pressed Retry. Delete retry and try the step that stopped again. |
SENT | Read the answers file. Revise every steered section and add variations to every vary section, one worker per section, as in How the owner answers in report.md. Do not build anything yet. |
APPROVED | Build the approved sections, or write the report, in Step 5. |
CLOSED | Say the link is closed. The answers file keeps the last send. If it closes during the audit, finish the report, then serve the page and arm the watcher again. |
Do not build a Rejected, a steered, a vary or an unanswered section.
If delivery is report, write the report and build nothing:
<target>-report.html.data-decision="approve" to each kept section, and data-handoff to the <html> element. The page then shows every section in one read-only scroll, with no buttons.share, offer to publish it.Otherwise, build what the owner approved, one slice at a time.
proofread is true, run vstack:proofread on any new UI copy, as in Step 4.A later round reviews what the last round built. Earlier fixes can create new problems or move an old one elsewhere. Read the last round's page, and save this round under the next number.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub cavalry-collective/visual-stack --plugin vstack6 skills in this plugin
/design-reviewAlias for Visual Stack's Polish tool, which used to be called design-review. Audits a UI at a chosen level of polish, opens the proposed changes as a report the owner answers in the browser, and builds what the owner approves. Use only when the user invokes /vstack:design-review or $vstack:design-review./proofreadRemove AI-sounding phrasing from user-facing copy. Passes the copy the agent is writing, such as a document, UI text, release notes, or a message, to ChatGPT in the user's own browser, then uses the reply as a reference to improve the copy. Use when the user invokes /vstack:proofread or $vstack:proofread, or asks to proofread copy or run it past ChatGPT. Do not use for code review. Run it only when asked, because it sends the copy to an external service./reviewVisual Stack's primary tool. Build a UI wireframe and open it in an interactive review workspace where the user comments directly on the page, turning those comments into the next iteration — or point the same workspace at an app that is already running and review the real thing. Use when the user wants a wireframe, UI mockup, screen design or prototype built; wants to review, annotate, mark up or comment on a page, a design, an existing UI, a running app or a website; wants to iterate on a UI; asks to use Visual Stack; or invokes $vstack:review, /vstack:review, or the older /vstack:wireframe. For an audit that proposes changes, use vstack:polish./user-story-mapBuild an interactive, drag-and-drop user story map so the user can re-slice work across release phases. Use when the user wants a story map, a phased roadmap, release slicing, a backbone/activities journey map, or to decide "which stories go in which phase" and move them around./wireframeAlias for Visual Stack's review tool, which used to be called wireframe. Builds a UI wireframe and opens it in an interactive review workspace, or reviews an app that is already running. Use only when the user invokes /vstack:wireframe or $vstack:wireframe.Other plugins' skills for the same job