What problem does it solve?
Converting live websites into Gum UI layouts often produces visual mismatches — font rendering gaps, misrasterized SVGs, broken backgrounds, and rotating carousels — that are hard to diagnose without a structured pixel-comparison loop. This Skill provides the site-fidelity workflow for running the HtmlToGum converter, measuring pixel diffs against Chromium screenshots, and applying focused converter fixes.
Core Features & Use Cases
- Pixel-gate fidelity loop: Run
npm run site-fidelity -- <url> to convert a page, capture Chromium and Gum screenshots, and score the percentage of mismatched pixels.
- Known-landmine catalog: Documents dozens of diagnosed converter issues (custom-font wrapping, icon-font pseudos, transparent SVG isolation, Google Fonts unicode-range subsets, negative z-index ordering) so fixes target real root causes.
- Rotating-media stabilization: Uses
stabilizeDynamicMedia to freeze carousels, cookie banners, and animations before extraction so diffs measure layout, not timing.
- Canary regression suite: Run
npm run canaries -- --tier=local after every converter edit and --tier=live before committing to catch regressions against checked-in baselines.
- Use Case: A developer converts pocket.com to Gum and sees a 12% pixel miss; the Skill directs them to check custom-font multi-line paragraph rasterization and FontCache atlas contents before touching layout code.
Quick Start
Run the site-fidelity harness on a target URL with a pixel threshold, then diagnose the top diff regions and apply one focused converter fix before re-running.