Skip to content
Back to skills

Review Page

ASecurity

Build one local review page that shows two or more real options as rendered previews side by side, with a recommendation, Pick buttons, notes and one JSON block to paste back. Run /review-page, or use it whenever the person should look at UI before it is built or changed: drafts to pick from, versions to compare, mockups before a build, a 'review page', an 'options page', 'show me the options side by side' for a screen, layout or flow.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 23, 2026
ai-agentsgogitapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 24, 2026

npx -y skills add notitial/ai-toolkit --skill review-page --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Review Page?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Review Page
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/notitial-review-page/badge)](https://www.skillsdirectory.com/skills/notitial-review-page)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: "Build one local review page that shows two or more real options as rendered previews side by side, with a recommendation, Pick buttons, notes and one JSON block to paste back. Run /review-page, or use it whenever the person should look at UI before it is built or changed: drafts to pick from, versions to compare, mockups before a build, a 'review page', an 'options page', 'show me the options side by side' for a screen, layout or flow."
disable-model-invocation: false
---

# Review Page

Write one HTML file that lets the person look at the real options, pick, comment and paste one JSON block back. The previews are the app's real markup in real frames, not drawings of it.

## The page is disposable

The page is made for one session and one decision. It has no tests; nobody maintains or reviews it; delete it freely. It is a local file opened in Chrome and is never published, uploaded or committed. Do not polish it beyond what the decision needs.

## When to use

- Two or more real options the person should see: screens, layouts, flows, wording in context.
- Not for a yes/no that fits one chat question, and not for a choice with nothing visual to compare.
- A brief or plan for a UI choice names `/review-page` and never describes a layout ("side by side"): the kit owns the layout, and a hand-written page drifts from it.

## Steps

1. Check that `.archive/` exists and is gitignored (`git check-ignore .archive`). If not, stop and ask where to write.
2. Copy the kit: `cp ~/.claude/skills/review-page/page.html .archive/review/<topic>-YYYY-MM-DD.html` (`mkdir -p` first; `-r2`, `-r3` for a later round). Each round is a new file holding only what is still open.
3. Replace the example spec with one Edit: only the text between `SPEC START` and `SPEC END`. Never edit the kit part; that drifts the export. Start from the app's real markup and stylesheets (below).
4. Open it: `open -a "Google Chrome" <absolute path>`. If that is blocked, give the person the bare absolute path.
5. Tell the person what to do in one line: pick, add notes, press "Copy the JSON" in the footer, paste it back.

## The spec

```js
window.REVIEW = {
  title: '', intro: ['what is being decided', 'what to do'],
  theme: { font: 'Georgia, serif', light: { '--bg': '#fbf7f2', '--acc': '#b4410f' }, dark: { '--bg': '#1a1512' } },
  preview: { css: ['../../app/dist/styles.css'], head: '' },
  controls: [{ id: 'signal', label: 'Signal', values: [['good', 'Good'], ['down', 'Down']] }],
  seed: { back: 'yes' },
  sections: [
    { id: 'flow', title: 'Where this sits', noPick: true, sub: 'Already decided.',
      frames: [{ cap: 'After sign-in', html: (c) => `<main>...</main>` }] },
    { id: 'start', title: 'Start page', sub: 'what is being decided', rec: 'B', why: 'the reason and what it costs',
      opts: [
        { k: 'A', t: 'Stacked', b: 'one-line blurb', html: (c) => `<main>...</main>`, },
        { k: 'B', t: 'Live app', b: '', src: (c) => `http://localhost:5173/start?signal=${c.signal}` },
        { k: 'C', t: 'Tiles', b: '', frames: [{ cap: 'Empty', html: () => `...` }, { cap: 'Full', html: () => `...` }] }
      ] },
    { id: 'back', title: 'Keep the back button?', rec: 'yes', why: '', frames: [{ cap: 'With it', html: () => `...` }] }
  ]
};
```

- A section with `opts` is a choice. Without `opts` it is a yes/no item (`rec` is `yes` or `no`), or, with `noPick: true`, a display-only section: no question, no notes, not counted as answered, and not in the export. `rec` and `why` give the visible recommendation; every question gets one, with its cost. Never pre-pick an option.
- `intro` is two short lines: what is being decided and what to do. Nothing else goes above the questions.
- `theme` is optional and styles the page chrome (bar, cards, buttons, footer), never the previews. `light` and `dark` set the kit variables `--bg --fg --mut --card --line --acc --accfg` for that mode (the page's resolved theme); a variable left out keeps the kit value, and `font` is a CSS `font-family` list. Copy the app's own tokens so the page matches the app. An unknown key or variable shows an error banner. With no `theme` the kit look is unchanged.
- `sub` is an optional short description under a section's title: what is being decided, not the recommendation.
- A preview is one frame. An option has exactly one of: `html` (a string, or a function of the controls), `src` (a URL, or a function), or `frames`, a list of captioned frames `{ cap, html | src }` for the same option in several states (3-day and 4-day week, folded and opened). A yes/no or display-only section may carry `frames` too. With no preview, the page shows a dashed "No preview for this option" box.
- `seed` carries picks over from an earlier round, as `{ sectionId: 'B' | 'yes' | 'no' }`. They start as picked and appear in `picks`; the person can change or clear them, and Reset restores them. A bad seed id or value shows an error banner. Say in the intro that a pick was carried over.
- The function argument is `{ theme, width, ...page controls }`: `theme` is the resolved `light` or `dark`, `width` is 390, 768 or 1280.
- Ids are plain words: no `::`; `note` is reserved as an option key; `theme` and `width` are reserved control ids.
- Escaping, all together: inside a template string write `` \` `` for a backtick, `\${` for a literal `${`, and `<\/script>` for a closing script tag. A real closing script tag ends the whole spec.
- Paths in `preview.css` and in markup are relative to the page file. Moving the page breaks them.

## Real markup, in this order

Previews must show what the app would actually render. Use the first that fits:

1. `src`: the app's own dev server on localhost. The real app, only sized by the kit.
2. Built output: the app's compiled stylesheet linked in `preview.css`, with the markup using its real class names.
3. Static HTML using the app's real class names with the app's real stylesheet linked.
4. A screen not built yet: write the proposed tokens once in `preview.head` and label them "proposed" in a comment.

Screenshots go in as `<img>` inside `html`. Never invent a look in place of the app's own, and never re-draw the app's components with made-up classes.

## What the page does

- Toolbar: Theme (Device, Light, Dark), Width (Phone 390x780, Tablet 768x1024, Laptop 1280x800), Zoom (Fit, 100%), and the spec's own controls. Light and dark apply to the page and to every frame; Width switches every frame at once.
- Frames sit side by side, up to four per row on Phone and Laptop and two on Tablet; an option with several frames counts each one. Fit scales each frame down to its column; 100% shows it at its real width and scrolls sideways inside the column. The caption under each preview shows its `cap`, the real width and the scale ("After a wrong password: 1280 px, shown at 30%"); a `src` caption also shows the URL.
- "Your picks" above the notes lists every question with its pick so far.
- A footer is pinned to the bottom of the window at every width: the answered count, "Copy the JSON", "Download as file" (saves the same JSON as `<page>.json`) and "Reset page". The page keeps bottom padding of its height, so it covers nothing. The JSON itself sits in a box at the end of the page.
- In a window about phone width (420 px or less) the previews run edge to edge with no panel padding.
- Picks, notes, controls and the zoom are saved per file path in `localStorage` and survive a reload. Reset clears them after a confirm.

## Before it reaches the person

The author, and the lead who passes the page on, check it. The one who sends the page must have opened it themselves.

- Screenshot it headless at 1440 px wide, once in Phone and once in Laptop mode, and read both: `"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --headless=new --screenshot=<out.png> --window-size=1440,3000 file://<page>`. The window is tall so the option columns are in the shot. A fresh page opens in Phone; for Laptop screenshot a scratch copy with the default in `dflt` changed (`width: 1280`), never the page you send.
- In those shots confirm the versions of each question sit in columns, each a full device frame (not stacked, not cropped), and the previews show the app's real tokens, components and icons, and whole screens.
- Then open the page in Chrome (`open -a "Google Chrome" <page>`), a real window, because headless cannot click: confirm the Width buttons switch every frame, Light and Dark both work, and Zoom changes Fit to 100%.
- Scroll to the end: the footer stays in view, covers no section, and its buttons copy and download.
- With a `theme`, check Light and Dark both: the chrome should match the app, with readable text on every button.

## Limits

State these to the person when one applies.

- Each frame is set up with the iframe's own `color-scheme` style, plus a `<meta name="color-scheme">`, a root `color-scheme` and `data-theme` / `dark` / `light` hooks inside. The iframe element's style is required: a frame with only the meta tag and root style follows the device scheme instead of the control. A spike in Chrome on `file://` confirmed width media queries, `prefers-color-scheme`, and relative stylesheets, images and `@font-face` all work this way.
- A `file://` page runs no ES modules and no `fetch` of local files, so an `html` preview is static markup, CSS, assets and classic inline scripts. A framework app's runtime does not run; use `src`.
- CSS that needs a build (utility frameworks, Sass, CSS modules) must be linked from the built output.
- `src` frames are cross-origin: theme reaches them only through `color-scheme`, page controls only through the URL, and an app that forbids framing shows blank.
- An app themed by a hook other than `data-theme`, a `dark` / `light` class or the media query needs that hook written into `preview.head`.
- Every frame has the fixed viewport height, with scrolling inside it; a sticky bottom bar shows where it really sits.
- Any control change rebuilds the frames, so in-frame state (an open pop-up) resets.
- Web screens only. Native-app screens are out of scope: show them as an `<img>` inside `html`.
- An `html` preview is not sandboxed: a script in it shares the page's storage and can clear or change the saved review.

## The export

"Copy the JSON" and "Download as file" give one object, always these six keys in this order:

```json
{
  "page": "start-page-2026-11-21-r2",
  "picks": { "start": "B", "back": "yes" },
  "notes": { "start": { "A": "too tall", "B": "yes, but keep the icon" }, "back": { "note": "only on Android" } },
  "general": "",
  "unanswered": ["loading"],
  "shownAt": { "theme": "dark", "width": 390, "signal": "down" }
}
```

`page` is the file's base name. `picks` holds only answered sections (an option letter, or `yes` / `no`), including seeded ones the person left alone. `unanswered` lists questions only, never display-only sections. `notes` holds only non-empty trimmed notes, keyed by section then option (`note` for a yes/no item). `shownAt.theme` is the resolved `light` or `dark`, not `device`.

## Reading it back

- Check that `page` matches the file you wrote; a paste from an older round names that round.
- `picks` are decisions. `notes` are change requests: read them on unpicked options too.
- For `unanswered` or a structural gap, ask one blocking question.
- Quote the notes you act on in the decision record. The next round is a new file holding only what is still open.

## Don't

- Publish, upload or commit the page, or load anything from the network except a `src` on localhost.
- Pre-pick an option, or add progress strips, identity tags or explanation banners inside the previews.
- Edit the kit part of a page, or add a test or a build step for it.
- Let a page grow slow: when it does, split it by question.

Files in this skill

  • SKILL.md10.4 KB
  • page.html25.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.