skills/visual-parity-audit/SKILL.md
Drive two running UIs through matching states, capture side-by-side screenshots at a locked viewport, and produce a markdown + PDF report with per-screen diff notes. Use whenever the user asks to compare a prototype against a port, staging vs production, before vs after a refactor, "does the live site match the design", pixel-fidelity sign-off, visual regression check, or 1:1 parity audit — even if they don't say "audit". Strongly prefer this over ad-hoc screenshotting whenever two versions of the same UI need visual comparison.
npx skillsauth add razbakov/skills visual-parity-auditInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Drive two running instances of the "same" UI through matching states, take screenshots at a controlled viewport, and ship a reviewable PDF. Used to catch regressions that code review misses — typography, spacing, color, animation-entry state, or labels that drifted during a port.
Not this skill: functional BDD testing, accessibility audits, performance profiling. This is a typography-and-layout eyeball check.
chrome-devtools (best: explicit emulate + filePath), claude-in-chrome or agent-browser (fallback: resize + saveScreenshot). If none is connected, stop and load one rather than taking skewed screenshots.latex-pdf skill available (for the PDF report)docs/images/<audit>/{a,b}/<NN-slug>.png. Clear PIN/auth cookies first if relevant.scripts/build_parity_pdf.py) — LaTeX with \includegraphics side-by-side tables.The #1 failure mode is a desktop screenshot vs mobile screenshot that look visually different for reasons unrelated to parity. Always emulate the same viewport on both apps, before any screenshot. For mobile UIs, use the design's target:
emulate viewport: 420x900x2,mobile,touch
The x2 is devicePixelRatio. At 420 CSS × 2 DPR, full-page screenshots are 840 px wide. Sanity-check after each capture:
sips -g pixelWidth screenshot.png
If one side is 840 and the other is 1440, you broke the emulation somewhere (usually opening a new tab resets it). Re-emulate, re-capture.
Write down every reachable state before you start clicking. Example for a form-based app:
01-pin (locked entry)
02-staff-mode-default
03-staff-mode-quick (mode hint text changes)
04-staff-mode-artist (mode hint text changes)
05-dancer-p1 (flow entry)
06-handoff
07-dancer-p2
08-quick-entry-screen (alternate flow)
09-artist-mode-screen (alternate flow)
Number them so file order matches presentation order. 8–15 screens is a comfortable report size. More becomes tedious to review.
Skip states that require destructive side effects (payments, production DB writes, Airtable writes) — note them in the report as "verified via code review only" with a link to the component source.
Open two tabs (or one tab used sequentially). For each state:
docs/images/capture-parity/A/{slug}.pngdocs/images/capture-parity/B/{slug}.pngSave paths are stable: <repo>/docs/images/<audit-name>/{a,b}/{NN-slug}.png.
Use take_screenshot with fullPage: true and an explicit filePath so images land in the repo, not an attachment.
If an app gates state with a PIN / auth and caches the token, clear it first:
localStorage.clear();
sessionStorage.clear();
document.cookie.split(';').forEach(c => {
const n = c.split('=')[0].trim();
document.cookie = `${n}=;expires=Thu,01 Jan 1970 00:00:00 GMT;path=/`;
});
Before the PDF, produce <repo>/docs/<audit-name>-<YYYY-MM-DD>.md with:
 and Commit this markdown as the canonical source. GitHub renders it fine for quick review.
The markdown is for engineering review; the PDF is for stakeholders who don't open GitHub. Use the bundled scripts/build_parity_pdf.py — a self-contained Python script that emits LaTeX and compiles with Tectonic. No runtime deps beyond python3 + tectonic (brew install tectonic).
Workflow:
scripts/build_parity_pdf.py to a working location (e.g. ~/Local/<org>/<project>/build-<audit>.py so it lives next to the PDF output).AUDIT_NAME, IMG_DIR, OUTPUT_PDF, TITLE, SUBTITLE, HEADLINE_CALLOUT, and populate the ROWS, VERDICT, NOT_CAPTURED, ACTIONS lists.python3 build-<audit>.py. The script writes a .tex sidecar and the .pdf next to it.The template is intentionally skeletal — it handles LaTeX preamble, fonts, colors, header/footer, half-width image cells with keepaspectratio, unnumbered \section*, and a red-bordered tcolorbox for the headline callout. You only supply the audit-specific content.
Key design decisions baked into the script:
height=0.52\textheight,keepaspectratio stops tall mobile screenshots from pushing rows off the page\section* (unnumbered) keeps the TOC clean~/Local/<org>/<project>/ per the media-path convention, not in the repoIf you need to deviate (full-width images, three-column comparison, etc.), edit the script directly — it's <200 lines.
One PR with:
Label with the relevant flow/area label and documentation. Milestone it if the audit is part of a sprint.
sips -g pixelWidth sanity check. If both sides aren't the same width, redo.fullPage: true always, not viewport-only.deviceScaleFactor: 2 on both sides for readable text at phone aspect ratios.<repo>/docs/
<audit-name>-<YYYY-MM-DD>.md # canonical report (version-controlled)
images/<audit-name>/
a/NN-slug.png # reference side
b/NN-slug.png # under-audit side
~/Local/<org>/<project>/
<audit-name>-<YYYY-MM-DD>.pdf # rendered artefact for stakeholders
<audit-name>-<YYYY-MM-DD>.tex # sidecar, regenerable
build-<audit>.py # copy of scripts/build_parity_pdf.py with this audit's config
scripts/build_parity_pdf.py — self-contained LaTeX builder. Copy, edit config block, run. No pip deps; needs tectonic installed.development
Seed a new or empty Instagram account with a 9-post grid (3×3) so the profile looks established the moment a new visitor lands. Designed for festivals, new businesses, product launches, conferences, communities — any time an empty IG profile would hurt conversion from external traffic (QR scans, flyer drops, cross-promo). Generates assets via /image-from-gemini (per content-publishing rules — never HTML), writes captions with hashtag sets, and outputs a posting order + cadence plan. Trigger generously: phrases like '9 posts for instagram', 'fill my IG', 'starter grid', 'launch grid', 'instagram seed', '9-post grid', 'IG account not to look empty', 'first instagram posts', 'feed bootstrap', '3x3 grid', 'instagram launch content'. Even if the user mentions only one piece (just the images, just the captions, just the order), use this skill — the grid only works as an integrated bundle.
testing
Translate one English blog post into multiple target languages via parallel sub-agents, preserving frontmatter conventions, hero image, and brand voice. Use when the user shares a published English post URL or markdown path and says 'translate it', 'add other languages', 'publish in DE/ES/RU/UK', 'translate to 5 languages', or asks for localized versions of a specific post.
development
Build a complete press kit for an event, product launch, or campaign — in multiple languages — and publish it as a shareable Google Drive folder ready to send to journalists, partners, or a delegate. Produces press releases (typically DE/EN/ES, or configurable), uploads press photos and flyers, creates an Overview document for at-a-glance briefing, and creates a Handover document with pending tasks, contacts, risks, and decisions so press distribution can be delegated. Use when the user says 'I need a press release', 'create a press kit', 'press release in X languages', 'set up a Drive folder for press', 'handover doc for someone else to run press', or has an upcoming announcement that needs to be sent to media. Trigger generously: even partial requests (just a press release, just a flyer folder) typically evolve into the full kit.
development
Track ticket sales for a live event (concert, festival, conference, workshop) with daily snapshots, generate a burndown chart comparing actual sales to ideal-linear targets and tier-cumulative milestones, and report whether the event is on pace. Use when the user asks how sales are going, wants to know if their event will sell out, asks for a daily sales report, wants to set up sales tracking for an upcoming event, or asks about ticket pace / velocity / projection. Trigger generously: phrases like 'how is concert sales going', 'burndown for my event', 'are we going to sell out', 'sales velocity', 'daily ticket chart', 'how many tickets do we need to sell', or any case where the user has a ticketed event with a fixed sales window and wants visibility on pacing.