Proves an Astro rebuild matches the live site via full-page screenshots, pixel diff with 0.5% pass line, computed-style comparison, and contact sheets. Use after building a template or when asked if the new site matches the old one.
Ships in astro-conversion. 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; scripts run unread.
Screenshot the live site and the new build at the same widths, measure every difference, look at every pair yourself, fix, and repeat until every template passes. Then do it again for every page.
The diff decides, your eyes explain. A pair passes only when review:diff says it passes and
review:styles has no failing row for it. Looking at a screenshot and finding it "close enough" is
never a pass. Four more that follow from it:
proposals.json.docs/visual-overrides.json, each { "id": "<decision id>", "threshold": n, "reason": "..." }
with n at most 2 (%). The decision id, threshold and reason are recorded on the diff row.A site made by convert-site carries copies of the scripts in scripts/review/. Every command
below runs from the site root as npm run review:<name> -- <options>. Outside a converted site,
run node <skill-dir>/scripts/<name>.mjs <options> from the folder that holds capture/ and
review/. Every script prints --help; run it rather than reading the source.
| Script | Does | Exit |
|---|---|---|
review:shoot | Full-page Chromium screenshots per route and width, plus manifest.json | 0 all shot, 1 a route failed, 2 usage, 3 stopped on blocks |
review:diff | Pixel diff of two screenshot folders, diff images plus diff.json | 0 all pass, 1 any fail, 2 usage |
review:styles | Computed styles of sampled selectors on both origins, styles.json | 0 all match, 1 a row fails, 2 usage or environment |
review:sheet | The contact sheet: an index of every route plus one HTML page per route with live, new and diff side by side | 0 written, 2 usage or environment |
review:check | Re-reads review/diff/diff.json, review/diff-all/diff.json (when present) and review/styles.json; prints the worst failing pair | 0 every row passes, 1 a row fails or a result is missing, 2 usage |
Exit 1 from diff or styles is expected while differences remain: carry on to the sheet, and run
each step as its own command rather than chaining them with &&. Exit 3 from shoot means the
site is blocking requests: wait, then rerun with a longer --delay; never retry in a tight loop.
What makes the screenshots comparable, on both sides alike: animations and transitions are
frozen and scroll-reveal content is forced visible; endless GSAP loops (repeat: -1, JavaScript
motion the freeze cannot stop) are put back to their start and paused; lazy images are made
eager and loaded by scrolling to the bottom and back (capped at 60 viewports or 30 s), except
sizes="auto" ones, which stay lazy so they pick the same srcset file every time; the shot
waits only for images the page requested (a hidden slide's lazy image does not hold it) and
for each of them to be decoded, so none paints blank; web fonts are awaited; a cookie banner whose
button says accept, agree, got it or ok is closed and reported as bannerClosed. Requests to
analytics, tag, pixel and chat hosts (Google Analytics and Tag Manager, Meta pixel, Hotjar,
Clarity, HubSpot tracking, Intercom, Drift, LinkedIn, TikTok, Pinterest, Segment, Mixpanel,
Plausible, Fathom, Matomo cloud, Crisp, Tawk, Zendesk) are blocked in review:shoot and
review:styles, so a review run never counts as a visit in the site's reports and a late chat
bubble never lands in a shot; --allow-analytics lets them load. --block-hosts <host,...>
(a comma list; each host's subdomains included) blocks more hosts for that run, with or without
--allow-analytics, in review:shoot, review:styles and css-coverage.mjs. Use it for a
consent manager that behaves differently off the live host: Osano (cmp.osano.com), loaded on
localhost or a preview host, turned the theme's scripts off, so the build did not draw as
live did. --block-hosts cmp.osano.com on every run lets the
scripts run as on live; record it as a decision row, and pass the same list when the live
shots are taken. A screenshot
more than 2 px off the page's scrollHeight is flagged heightMismatch.
What the diff measures: pixelmatch at threshold 0.1 with anti-aliasing ignored. A pair passes at
0.5 % differing pixels or fewer and equal widths. When the heights differ, every row the
taller image has and the shorter one lacks counts as differing, so a missing footer fails; the
row says heightMismatch and the difference is counted, never ignored. When the aligned
comparison fails, the new image is also tried shifted by up to 1 px in each direction, so a
sub-pixel rounding shift is not reported; the row records the offset used and the aligned
percentUnaligned. Wider shifts are never searched: 2 px off is a real difference.
What the styles comparison measures: on the first match of h1–h4, p, a, button,
.btn, [class*=button], nav a, form fields, blockquote, li, header and footer, it
compares first font family, size, weight, line height, letter spacing, colour, background,
text transform, vertical margins and all four paddings. Lengths pass within 1 px; colours and
families must match exactly. A selector present on one side only fails with a present row. A
route that is not 2xx on either side fails with one status row.
capture/screens/live/ live screenshots, taken once at capture time (the capture step
runs shoot.mjs against the live site); never re-shot to
get a match (rollout adds capture/screens/live-all/ once)
review/new/ new screenshots, from the dev or preview server
review/diff/ diff images and diff.json
review/styles.json style rows
review/index.html the contact sheet's index; review/index-pages/ holds a page per route
docs/visual-overrides.json
per-route thresholds, each with its decision id and reason
(optional; committed, so every looser threshold is reviewed)
capture/ holds the live evidence; review/ is regenerable and not committed. The contact sheet
links each image by its relative path instead of embedding it, so a site with hundreds of pages
gives an index and many small pages rather than one file too large to write: open it where the
screenshot folders are, or copy them with it.
Read references/review-procedure.md before the first run. In short:
Serve the new site. npm run build, then serve the build with npm run review:serve
(it applies vercel.json like staging does, so media and scripts rewritten to another origin
load) and use that origin, e.g. http://localhost:4321, for every review:* step.
npm run preview is only for sites whose media is in the repo; npm run dev while iterating.
Shoot new with the same --routes and widths the live shots used, so folder names match:
npm run review:shoot -- --base http://localhost:4321 --routes capture/templates.json --widths 390,768,1440 --out review/new --delay 0
Diff (it reads docs/visual-overrides.json when that file exists):
npm run review:diff -- --a capture/screens/live --b review/new --out review/diff
Styles. It loads the live site one page at a time, 500 ms apart by default. It defaults to 390 and 1440, so pass the widths to cover 768 too:
npm run review:styles -- --live https://www.example.com --new http://localhost:4321 --routes capture/templates.json --widths 390,768,1440 --out review/styles.json
Sheet:
npm run review:sheet -- --live capture/screens/live --new review/new --diff review/diff/diff.json --styles review/styles.json --out review/index.html
Look. Open review/index.html and each route page it links. For every pair, write down every visible difference you
can see, failing or not, before you touch any code. Then read diff.json for offset,
percentUnaligned and reason, and both manifest.json files for bannerClosed,
heightMismatch and error: the sheet does not show those.
Fix from capture/ (markup, CSS, media), one difference at a time. Then go back to 2.
Roll out only when every template pair passes at every width: shoot every page
(--full) at 390 and 1440, diff, sheet, look, fix, repeat until every page passes. The
exact commands are in the reference, step 7.
Check before the pull request: npm run review:check exits 0 only when every template
pair, every page pair and every style row passes.
Use it to open the contact sheet and to look at a live page and its new page side by side, at the same width, when a diff image does not explain itself. Never use it instead of the diff: a page you looked at and liked has not passed anything.
heightMismatch, with the route: each is a place the
screenshot may not show what a visitor sees.proposals.json instead (the
site's AGENTS.md, "Exceptions and proposals", says what an entry holds and how it ships).references/review-procedure.md, every
line, unedited. None of it was compared, an open mobile menu included. Not covered is never
a pass.| File | Covers |
|---|---|
references/review-procedure.md | The full loop, writing down differences, fixing, overrides, rollout, proposals |
references/review-procedure.md (opens in a new tab)scripts/check.mjs (opens in a new tab)scripts/diff.mjs (opens in a new tab)scripts/lib/blocked-hosts.mjs (opens in a new tab)scripts/lib/browser.mjs (opens in a new tab)scripts/lib/freeze.css (opens in a new tab)scripts/lib/node-version.mjs (opens in a new tab)scripts/lib/routes.mjs (opens in a new tab)scripts/lib/selectors.mjs (opens in a new tab)scripts/sheet.mjs (opens in a new tab)scripts/shoot.mjs (opens in a new tab)scripts/styles.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
/astro-conversion:visual-reviewfrom astro-conversion
npx claudepluginhub ethanplusai/astro-conversion-kit --plugin astro-conversion8 skills in this plugin
/capture-siteCrawl a live website, read-only and paced, into a capture/ folder that a rebuild is checked against — every page's HTML, text and head tags, redirects with every hop, links, third-party scripts, the media set, stylesheets, fonts, logo and icons, feeds, templates, and live screenshots at three widths. Use before converting or rebuilding a site, when asked to crawl, capture, snapshot or inventory a site, or when a capture stopped on blocks and needs resuming./convert-siteConvert a live website (WordPress first; Drupal, Webflow, Squarespace, Wix and static sites too) into a static Astro site with the same URLs, content, head tags, media, redirects and look, proven by parity gates and a pixel-level visual review, ending in one pull request, a noindexed staging deploy and a launch runbook. Use when asked to convert, rebuild, migrate or clone a site to Astro, when handed a site URL with this kit's link, to resume a conversion from .conversion/state.json, or with --apply <id> to apply one suggestion as a proposal./launch-auditAudit a live or staging website and report what would go wrong at launch — crawl and inventory, indexability, redirects for a domain cutover, links, images, forms, accessibility, performance, analytics, content sanity, and full-page screenshots for a visual pass. Use before or right after a site launch, when asked to QA, audit, or review a website, when a site is moving to a new domain, or when somebody asks whether a site is ready to go live. Read-only: it never submits a form, clicks a control, or edits anything./parity-gatesFreeze a site capture into baseline/ and prove an Astro build matches it — every route, redirect (one hop, through a simulation of the host), SEO head field, visible text, internal link, media file, sitemap entry, feed, form, third-party script and security header — with approved differences in exceptions.json and improvements in proposals.json. Use after a capture to build the baseline, when compiling redirects.csv for Vercel or Cloudflare, before calling any conversion page done, when a gate fails and needs reading, or to check a staging deploy against the baseline./post-launchThe moment DNS moves and for the thirty days after — verifies the cutover (DNS propagation, certificate, http and www redirects, the noindex, robots and sitemap on the live host, every redirect the audit mapped, forms, analytics, the staging copy, the old host, security headers), diffs production against the pre-launch baseline, and schedules the watch. Use when asked did the launch work, is the site live, what should I check after launch, the domain just switched, or when a site went live in the last month and something looks wrong. It is read-only and exits 0 whatever it finds./pre-launchGate a website launch from its repository — repo hygiene, placeholders and leaked dev hosts, the production build, the build output (404 page, internal references, icons, social cards, robots, sitemap, canonicals, titles, headings), framework configuration, and redirect coverage for the site being replaced — then walk the human checklist no script can verify. Use before any site launch, before a DNS cutover, when a site is replacing an existing one, or when somebody asks whether a site is ready to launch. Read-only apart from its own report and a progress file; it exits 1 if anything fails.Other plugins' skills for the same job