trove-visual-parity
/trove-visual-parity
Dopasowuje interfejs do pikseli między dwiema implementacjami, porównując zrzuty ekranu z wyznaczonym progiem, np. przy migracji z Vue do React.
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 2
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 08.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
- SKILL.md zawiera komentarze HTML (2). Nie widać ich w podglądzie Markdown, a model je czyta.
Co robi i kiedy
Dopasowuje interfejs do pikseli między dwiema implementacjami, porównując zrzuty ekranu z wyznaczonym progiem, np. przy migracji z Vue do React.
Oryginalny opis (EN)
Achieve pixel-exact UI equivalence between two implementations via image diff. Establish a baseline harness first, migrate one component at a time, verify each with a screenshot diff within a tuned threshold. Use when migrating a styling system or matching a new implementation (e.g. React) to an existing one (e.g. Vue).
Jak działa
- Session Init
- Workflow
- Run the visual suite in isolation
- The anti-tampering rule
Podgląd SKILL.md
--- name: trove-visual-parity description: "Achieve pixel-exact UI equivalence between two implementations via image diff. Establish a baseline harness first, migrate one component at a time, verify each with a screenshot diff within a tuned threshold. Use when migrating a styling system or matching a new implementation (e.g. React) to an existing one (e.g. Vue)." --- <!-- AUTO-GENERATED from SKILL.md.tmpl — do not edit directly --> <!-- Regenerate: bun run build:skills --> ## Session Init This skill ships Trove conventions. Prefer existing project patterns over generic best practices when they conflict. # trove-visual-parity Prove two implementations render the same, by image diff — not by eyeballing. The baseline is the spec; the new implementation moves to meet it. ## Workflow 1. **Establish the baseline first (blocking).** Capture the reference rendering with Playwright `toHaveScreenshot()`. **Generate baselines in CI, not locally** — local renders (fonts, DPI) drift from CI and create false diffs. 2. **Migrate shared primitives first.** Tokens, base components, and shared styles before the components that compose them. 3. **One component at a time.** Migrate, then diff against its baseline. Parallel components go in separate worktrees (`trove-worktree`). 4. **Verify by diff, within a tuned threshold.** Use `toHaveScreenshot()` with `maxDiffPixels` / `maxDiffPixelRatio` / `threshold` tuned to absorb anti-aliasing and font noise without hiding real regressions. It auto-retries until the page stabilizes. A diff above threshold from a real layout/spacing change is a fail. 5. **One PR per component or small batch.** ## Run the visual suite in isolation Tag visual tests (`@visual`) and run them as a dedicated stage, not inside the normal unit run — they need a consistent rendering environment. ## The anti-tampering rule When a diff exceeds threshold, fix the **implementation** to match the baseline. Never edit the baseline, mask the diffing region, or loosen `maxDiffPixels` to make a real regression pass. The baseline is the contract; raising the threshold to hide a regression defeats the whole exercise.
Wersje
W bazie nie ma innych skilli o nazwie trove-visual-parity.
Identyczna treść występuje jeszcze w 3 innych folderach na GitHubie. Tu pokazujemy jedną, najlepiej ocenioną kopię.
Migawka bazy z 13.11.2026 · wersja paczki e7666b30da50 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 2 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 90twin-flames
Dopasowuje dwa interfejsy co do piksela, bo wzorcem jest specyfikacja, a równość potwierdza porównanie obrazów, np. przy migracji systemu stylów. - 100trove-design-review
Ocenia wdrożenie interfejsu UI i UX względem specyfikacji projektu, sprawdzając wierność wizualną i zgodność z systemem. - 100visual-diff
Porównuje bazowy adres z adresem dev lub Storybook, robiąc zrzuty Playwright w kilku punktach przełamania i różnicę pikseli. - 100trove-vue
Podaje konwencje Vue 3 z Composition API: reaktywność, wzorce komponentów, Vue Router i stan w Pinia. - 100doncheli-visual-test
Uruchamia wizualne testy regresji, porównując zrzuty ekranu interfejsu z wzorcami. - 90visual-verify
Sprawdza gotowy interfejs przed akceptacją: uruchamia go, klika i mierzy wynik, zanim zostanie wydany.