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.tools
--- name: handoff description: Get an agent past a browser/UI wall it can't (or must not) cross on its own — a login-gated dashboard, a CAPTCHA, a 2FA prompt, an API that keeps rejecting the write, or an irreversible click that policy says a human must make. This skill is an ESCALATION LADDER, not a first move: it tells you to try the automated browser surfaces FIRST (Chrome-in-Claude, computer-use, an autonomous browser sub-agent) and only fall back to the Handoff app — a wrapper browser that h
documentation
Summarize one or more YouTube videos from their links. Use this whenever the user pastes a youtube.com or youtu.be URL (or several) and wants to know what it's about — phrasings like "summarize to telegram", "tldr these videos", "what do these say", "summary of this talk", or just dropping links with no instruction at all. Fetches each video's real transcript via yt-dlp (not the page text, which never contains the transcript), cleans the captions, and writes a per-video summary. Default delivery is Telegram; honor any other surface the user names ("to my notes", "just here in chat", "email it"). Trigger even when the user only pastes bare links — bare YouTube links almost always mean "tell me what's in these".
data-ai
Daily Digest — Chief-of-Staff role consolidates the six top-managers into one Telegram message to the Commander, instead of six. Implements the protocol from agent-proactivity.md.
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.