Skip to content
Development
Skill

/arn-spark-visual-strategy

This skill should be used when the user says "visual strategy", "arn visual strategy", "visual testing", "visual regression", "screenshot testing", "compare to prototype", "visual validation", "how do I test visuals", "set up visual tests", "baseline images", "screenshot

From plugin
arness
3590 skills48 agents

Claude Code

$ npx -y skills add AppsVortex/arness --skill arn-spark-visual-strategy --agent claude-code

SKILL.md

arn-spark-visual-strategy.SKILL.md
name: arn-spark-visual-strategy
description: >-
  This skill should be used when the user says "visual strategy",
  "arn visual strategy", "visual testing", "visual regression",
  "screenshot testing", "compare to prototype", "visual validation",
  "how do I test visuals", "set up visual tests", "baseline images",
  "screenshot comparison", "pixel diff", "visual diff",
  "does it match the prototype",
  or wants to set up visual regression testing for development — creating
  capture scripts, comparison scripts, and baseline images so that feature
  implementations are automatically compared against prototype screenshots
  to catch visual regressions during development.
version: 1.0.0

Arness Visual Strategy

Set up automated visual regression testing so that **during feature development**, each implemented screen can be compared pixel-by-pixel against the approved prototype screenshots. The prototype screenshots serve as **baseline images** — the "gold standard" of what the UI should look like. As features are built, capture scripts take screenshots of the development build and comparison scripts diff them against these baselines, catching layout breaks, color mismatches, and misplaced elements before they reach the user.

This is a conversational skill that runs in normal conversation (NOT plan mode). It uses the `arn-spark-visual-test-engineer` agent for proof-of-concept validation and script generation.

The primary artifacts are:

  • **Capture script** — takes screenshots of the development build (NOT the prototype)
  • **Comparison script** — diffs development screenshots against prototype baselines
  • **Baseline images** — copied from prototype screenshots, used as the reference standard
  • **CLAUDE.md configuration** — integrates visual testing into the Arness execution pipeline so that `/arn-code-execute-plan` and `/arn-code-execute-task` automatically validate UI changes

**The core problem this solves:** during feature development, visual regressions (button on the wrong side, layout breaks, color mismatches) go undetected until the user manually inspects the application. This skill sets up the tooling so that every UI task automatically compares the development build against the prototype.

Prerequisites

Read the project's `CLAUDE.md` for a `## Arness` section. If no `## Arness` section exists or Arness Spark fields are missing, inform the user: "Arness Spark is not configured for this project yet. Run `/arn-brainstorming` to get started — it will set everything up automatically." Do not proceed without it.

Extract:

  • **Vision directory** (default: `.arness/vision`)
  • **Prototypes directory** (default: `.arness/prototypes`)
  • **Spikes directory** (default: `.arness/spikes`) -- for mini-spike workspaces
  • **Git** / **Platform**

Check for prototype lock (strongly recommended): 1. Check for `### Prototype Lock` in the `## Arness` section 2. If found: read the locked directory path and the `LOCKED.md` manifest 3. If NOT found: warn the user -- "No prototype lock detected. Visual testing compares against the prototype, but the prototype is not currently protected from modification. Consider running `/arn-spark-prototype-lock` first."

Check for prototype validation evidence:

  • `[prototypes-dir]/clickable/final-report.md`
  • `[prototypes-dir]/static/final-report.md`
  • Scan for showcase screenshots: `[prototypes-dir]/clickable/v[N]/showcase/screens/`, journey screenshots, static showcase screenshots

Check for architecture vision (required for stack analysis):

  • Read `architecture-vision.md` for framework, application type, platform targets

Check for dev-setup document (for environment constraints):

  • Read `dev-setup.md` for development environment type, platforms, and CI configuration

**If no architecture vision:** "No architecture vision found. Describe your technology stack and target platforms so I can design a visual testing strategy."

**If no prototype screenshots:** "No prototype screenshots found. Visual testing needs reference images. Either run the prototype skills first, or provide screenshots manually."

Workflow

Step 1: Analyze the Stack and Environment

Load context from architecture vision, dev-setup, and the current environment. Detect the current OS via `uname`. Build a constraints profile:

"Here is what I understand about your stack and environment:

**Application type:** [Browser app / Tauri desktop / Electron desktop / etc.] **UI framework:** [SvelteKit / React / Vue / etc.] **Rendering context:** [Browser viewport / Webview in native frame / Native window with transparency / etc.] **Platform targets:** [Linux, macOS, Windows] **Development environment:** [Native / WSL2 / Dev container / etc.] **Current OS:** [detected via uname]

**Key constraints:**

  • [Constraint 1: e.g., 'Tauri with transparency -- native window compositing cannot be captured by browser-based tools']
  • [Constraint 2: e.g., 'WSL2 development -- no native Windows display server access from WSL2']
  • [Constraint 3: e.g., 'Webview content IS accessible via standard HTTP -- Playwright can connect to the dev server']

Is this accurate? Anything to add or correct?"

Wait for user confirmation.

Step 2: Propose Layered Testing Strategy

Based on the constraints profile, propose a multi-layer strategy. Read the strategy layers guide: > Read `${CLAUDE_PLUGIN_ROOT}/skills/arn-spark-visual-strategy/references/strategy-layers-guide.md`

Match the project's application type against the Layer Decision Matrix to determine the recommended layers. Present the layered approach:

"Based on your stack, here is a layered visual testing strategy:

**Layer 1: [Name] (Recommended first)**

  • **What it captures:** [e.g., 'Webview content rendered in a browser via Playwright against the dev server']
  • **Coverage:** [e.g., 'All web UI content -- layouts, components, typography, colors. Does NOT capture native window chrome, transparency, or system-level rendering.']
  • **Environment:** [e.g., 'Runs
Read more
@appsvortex
Ships witharness

Arness — H not required. Structured AI workflows for Claude Code. From first idea to production deploy. Seven entry commands. That's all you need to remember.

3590 skills48 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
35
Star history of AppsVortex/arness on GitHub, a chart by star-history.com

Other skills on arness.

arn-assessing

arn-assessing

This skill should be used when the user says "assessing", "arness assessing", "assess", "assess codebase", "technical review",…

@appsvortex@appsvortexInstall Skill
arn-code-assess

arn-code-assess

This skill should be used when the user says "arness code assess", "arn-code-assess", "tech debt audit", "assess the project", or…

@appsvortex@appsvortexInstall Skill
arn-code-batch-cve-fix

arn-code-batch-cve-fix

This skill should be used when the user says "fix CVEs", "patch vulnerabilities", "apply security patches", "batch CVE fix",…

@appsvortex@appsvortexInstall Skill
arn-code-batch-cve-scan

arn-code-batch-cve-sca…

This skill should be used when the user says "scan for CVEs", "CVE scan", "check for vulnerabilities", "dependabot triage",…

@appsvortex@appsvortexInstall Skill
arn-code-batch-implement

arn-code-batch-impleme…

This skill should be used when the user says "batch implement", "implement all", "batch execution", "implement all features",…

@appsvortex@appsvortexInstall Skill
arn-code-batch-merge

arn-code-batch-merge

This skill should be used when the user says "batch merge", "merge batch", "arness batch merge", "arn-code-batch-merge", "merge…

@appsvortex@appsvortexInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react5d252k
@facebook@facebookInstall Skill

Questions about arn-spark-visual-strategy.

Which coding agents can use arn-spark-visual-strategy?
arn-spark-visual-strategy installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.