visual-test

visual-test is a command for Claude Code from doncheli/don-cheli-sdd. It costs 81 tokens per session (1,448 once invoked), scanned A, original, Apache-2.0.

A visual testing command that compares screenshots of UI components and full pages before and after changes. It can check different screen sizes, such as mobile, tablet, and desktop.

In plain words
What is it for?
Use it to test a whole page, one component, or responsive breakpoints, inspect only detected differences, or create new screenshot baselines.
Why use it?
It finds visual regressions—unwanted changes in layout or appearance—that ordinary functional tests may miss.

Command for Claude Code

Part of the don-cheli-sdd plugin — 28 skills, 115 commands, 1 agent shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/doncheli/don-cheli-sdd/visual-test
Clone the repo
git clone --depth 1 https://github.com/doncheli/don-cheli-sdd

Made for: Claude Code.

Or install don-cheli-sdd, the plugin that ships this one along with the rest of its 28 skills, 115 commands, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for visual-test

README.md
[![agentmods](https://agentmods.dev/badge/commands/doncheli/don-cheli-sdd/visual-test.svg)](https://agentmods.dev/commands/doncheli/don-cheli-sdd/visual-test)
Your own site
<a href="https://agentmods.dev/commands/doncheli/don-cheli-sdd/visual-test"><img src="https://agentmods.dev/badge/commands/doncheli/don-cheli-sdd/visual-test.svg" alt="Measured on agentmods" height="20"></a>
Per session 81 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,448 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00081 $0.01448
Opus 5 $0.00041 $0.00724
Sonnet 5 $0.00016 $0.00290
Haiku 4.5 $0.00008 $0.00145

Measured yesterday against content hash 245a2a34e85d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

visual-test scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

scripts/.claude/commands/dc/visual-test.md · 178 lines

How it starts

The opening of the file, as written. The whole thing — 178 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/dc:visual-test

Objetivo

Ejecutar pruebas visuales de componentes UI y páginas completas, comparando capturas de pantalla antes y después de cambios para detectar regresiones visuales. Soporta niveles: página completa, componente individual y breakpoints responsive. Se integra con Computer Use de Claude para testing de interacción.

Uso

/dc:visual-test                              # Testear todos los componentes registrados
/dc:visual-test --pagina /checkout           # Testear una página específica
/dc:visual-test --componente Button          # Testear un componente
/dc:visual-test --breakpoints                # Testear todos los breakpoints responsive
/dc:visual-test --baseline                   # Capturar nuevas líneas base
/dc:visual-test --diff-only                  # Mostrar solo cambios detectados
/dc:visual-test --umbral 2.5                 # Tolerancia de diferencia en % (default: 1%)

Comportamiento

  1. Cargar configuración desde .dc/visual-test.yaml

    • Lista de páginas y componentes a testear
    • Breakpoints definidos (mobile, tablet, desktop)
    • Umbral de tolerancia de diferencia (default: 1%)
    • Directorio de baseline: .dc/visual-baselines/
  2. Modo baseline (--baseline)

    • Capturar screenshots actuales como referencia
    • Almacenar en .dc/visual-baselines/<componente>/<breakpoint>.png
    • Registrar hash de versión y fecha
  3. Modo comparación (default)

    • Capturar screenshots del estado actual
    • Comparar pixel a pixel contra baseline
    • Calcular porcentaje de diferencia por componente
    • Generar imagen diff con cambios resaltados en rojo
  4. Testing de interacción (con Computer Use)

    • Simular clicks, hover, focus, scroll
    • Capturar estado visual en cada interacción
    • Detectar regresiones en estados (hover, active, disabled)
  5. Clasificar resultados

    • PASS: diferencia ≤ umbral configurado
    • WARN: diferencia entre umbral y 5%
    • FAIL: diferencia > 5% o componente ausente

Read the full file on GitHub · 178 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 178 lines · 81 tokens per session scan A 245a2a34e85d

Subscribe to this mod's changes

visual-test is a command published in the GitHub repository doncheli/don-cheli-sdd (57 stars, last pushed 25d ago), licensed Apache-2.0. It adds 81 tokens to every session and 1,448 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.