wp2next polish
A final refinement pass on a separate branch; you review the diff and choose what to merge.
| Synopsis | wp2next polish [site | /<url-path>/ | <source path>] (Claude desktop and Claude Code plugin: /wp2next:polish; Codex: $wp2next polish; Cursor: /wp2next polish) |
|---|---|
| Changes code | Yes, isolated: on branch wp2next/polish-<target> (in a separate git worktree where possible). Nothing reaches your main branch until you choose |
| Touches outside services | No. It asks before pushing anything, and before removing the worktree and branch |
| Reads | The latest critique and audit reports for the target, the site, wp2next.json (mode, breakpoint) |
| Writes | Commits on the polish branch, .impeccable/reports/<date>-polish-<target>.md; after merging, departure entries in CLAUDE.md and wp2next.json |
What it does
Polish refines; it never redesigns (that's facelift). It works from the backlog of
the latest critique and audit reports; if there are none, it offers to
run a critique first.
- Checks first: a clean git tree (it asks you to commit or stash; it never stashes for you), and lint and typecheck passing, so later failures belong to polish.
- Runs impeccable's polish on the branch as a side process (a worktree subagent in Claude Code, a second session in a worktree for Codex or Cursor, or inline on the branch).
- Pixel-mode guard: in
pixelmode it may change only layouts below the desktop breakpoint, plus items you already approved. Any other desktop change is listed as "proposed, not applied". - Reviews the result itself: reads the diff, rejects any change that touches copy, URLs, metadata, schema, forms or tracking, or breaks the build rules (no inline styles, no utility classes, no raw values), and runs lint, typecheck and build. In pixel mode it re-runs the parity check; any new desktop difference must match an approved item.
- Shows you the changes grouped by area, the check results and the "proposed, not applied" list, and asks: merge all, some (by commit) or none.
- Merges what you approved, records desktop changes as departures, and cleans up after you agree.
Without impeccable it uses a built-in checklist inside the current look: spacing rhythm, type steps, hover/focus/active/disabled states, form loading and success states, alignment, image crops, reduced motion, edge cases (long words, empty fields, 1 vs 20 items), touch targets.
Arguments and options
| Argument | Effect |
|---|---|
(none) or site | The whole site |
/<url-path>/ | One page |
<source path> | One component |
Examples
For Claude desktop
/wp2next:polish/wp2next:polish$wp2next polish/wp2next polishwp2next polish /contact-us/: polish one page after its critique.
Related
critiqueandauditfeed it ·faceliftfor a new look- Concepts: departures and the parity gate
- Agent instructions:
references/commands/polish.md (external site)