Logo di Visual Testing

Visual Testing

Community
arozumenko
visual-testing

Use when rendered UI needs visual regression checking — "did the UI change", "visual test", "screenshot diff", "compare against the baseline", "catch layout regressions", or a visual assertion in a test run. Works on any HTML you can render — a generated static page (design mock, report, flow-map poster) opened from disk, or a running app driven by your existing browser/device automation. Screenshots each screen, diffs it against a committed baseline with reg-cli (MIT, no cloud), and reports what changed as an HTML report plus a pass/fail summary. Capture rides on whatever browser or device tool you already have — no separate headless engine is installed. NOT a functional or correctness check (a diff proves pixels moved, not that anything is right), and a red diff is a prompt to look, not an automatic verdict.

Panoramica

Autorearozumenko
Repositorysdlc-skills
Nome della skillvisual-testing
Stelle
26
Fork
10
File inclusi
4
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • 4 file inclusi

    Script, modelli di documento e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da arozumenko su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Visual Testing in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/arozumenko/sdlc-skills/tree/main/skills/visual-testing
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/arozumenko/sdlc-skills.git /tmp/sdlc-skills
mkdir -p .claude/skills
cp -r /tmp/sdlc-skills/skills/visual-testing .claude/skills/visual-testing
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Visual Testing in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Visual Testing non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Visual Testing non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Visual testing

Catch unintended visual change. Rendered UI is deterministic enough that a pixel which moved without an intended cause is worth seeing — a card that lost its shadow, a table that overflows on tablet, a button that drifted but still works. This skill screenshots each screen and diffs it against a baseline captured when the UI was last correct.

Two halves, kept separate on purpose:

  • Capture is agent-driven. You open the thing under test in whatever browser or device tool you already have and save a PNG. No headless browser is bundled or installed — capture rides on the tooling that already exists (a connected browser, a Playwright/Appium session, a running app's automation).
  • Diff is browser-free. scripts/visual-diff.mjs shells out to reg-cli (resolved local-first, else npx --yes reg-cli@latest, so nothing is added to package.json) to compare, manage baselines, and write a report.

Workflow

  1. Render the thing under test.
    • A generated static page → build it, then open the HTML from disk (file://); the pages are self-contained, no server needed.
    • A running app → drive it to the screen/state with the automation you already use (Playwright for web, the device tooling for mobile). This is the same navigation a functional check performs — the visual diff is an extra assertion, not a separate run.
  2. Capture each screen into a current/ directory, one PNG per variant, named by the scheme below. See references/capturing.md for driving each source and controlling the noise that makes diffs flaky.
  3. Diff against the baseline:
    bash
    node scripts/visual-diff.mjs --current <current/> --baseline <baselines/> --diff <out/>
    Exit 0 = no change; exit 1 = something changed (report at <out/>/report.html).
  4. Review the report. An intended change (a redesign, a shipped restyle) → promote it: node scripts/visual-diff.mjs --current <current/> --baseline <baselines/> --diff <out/> --update then commit the updated baselines. An unintended change → a finding: fix the cause (or file the defect with the diff image); do not update the baseline.

A green diff is not a passing test. It proves the screen is unchanged since the baseline — nothing about whether that baseline was ever correct or whether the feature works. Use it to hold a reviewed UI steady, alongside the checks that judge correctness, never instead of them.

Naming (this is what pairs a shot with its baseline)

reg-cli matches current/<name>.png to baselines/<name>.png by filename, so names must be stable and describe exactly one variant. Pick a scheme that fits what you're testing and keep it lowercase and stable; examples:

ContextFilename
design mock (mobile)screen-<flow>-<screenId>-<state>-<device>.png
design mock (web)screen-<flow>-<screenId>-<state>-web-<style>-<bp>.png
running web appweb-<screen>-<state>-<viewport>.png
running mobile appmobile-<screen>-<state>-<device>.png
flow-map / posterflow-<flowId>.png

Renaming a file breaks its baseline pairing — reg-cli then reports one deleted + one new, which is the signal to re-approve, not a bug.

Keep the baseline set honest

Screens × states × sizes/styles is a combinatorial trap. Default coverage: the screens actually touched, in their default state, at the size/device set you target, in one representative variant. Add more only where a real regression risk lives. Every variant is a baseline someone re-approves on every intended change — a giant set nobody re-approves is worse than a focused one people actually look at.

Files

PathWhat it is
scripts/visual-diff.mjsThe reg-cli wrapper: build args, local-or-npx, read the JSON report, summary + exit code. --update promotes current → baseline.
references/capturing.mdDriving each source (static page / running app), the naming scheme, and taming the noise that makes diffs flaky.
references/baselines.mdWhere baselines live, the promote/approve flow, what to commit, reading the report.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Visual Testing?

Use when rendered UI needs visual regression checking — "did the UI change", "visual test", "screenshot diff", "compare against the baseline", "catch layout regressions", or a visual assertion in a test run. Works on any HTML you can render — a generated static page (design mock, report, flow-map poster) opened from disk, or a running app driven by your existing browser/device automation. Screenshots each screen, diffs it against a committed baseline with reg-cli (MIT, no cloud), and reports what changed as an HTML report plus a pass/fail summary. Capture rides on whatever browser or device...

Perché usare Visual Testing su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Visual Testing è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Visual Testing in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/arozumenko/sdlc-skills/tree/main/skills/visual-testing. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Visual Testing?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Visual Testing?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Visual Testing: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Visual Testing è gratuita?

Sì. È pubblicata su GitHub da arozumenko con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇