Visual review

From xoai/sage · View interactive version

Visual review is an AI agent skill from the GitHub repository xoai/sage. Evaluates UI implementation by analyzing screenshots at multiple breakpoints against the spec, design conventions, and web standards. Checks layout, hierarchy, responsiveness, spacing, and accessibility. Use after implementing UI components, after a redesign, when the user says "how does it look", "

How to use this skill

Skill file

<!-- sage-metadata

cost-tier: sonnet

activation: auto

tags: [review, visual, design, accessibility, responsive]

inputs: [implementation, screenshots, spec]

outputs: [visual-review-report]

requires: [verify-completion]

-->

Visual Review

Evaluate the visual implementation using real screenshots — not code inspection,

not assumptions. Screenshots are evidence. Code can look correct and render wrong.

Core Principle: Visual quality is verified visually. Reading JSX tells you

what the DOM structure is. Screenshots tell you what the USER sees. This skill

bridges the gap between "the code is correct" and "the page looks right."

When to Use

After implementing UI components in BUILD or ARCHITECT mode. Specifically:

Do NOT use for:

Process

Step 1: Capture Screenshots

Run the screenshot tool at the standard breakpoints:

bash .sage/tools/sage-screenshot.sh http://localhost:3000 \
  --output .sage/work/<feature>/screenshots \
  --label <feature-name> \
  --full-page \
  --after

If "before" screenshots exist from before the implementation, the tool will

have captured them with --before. Both sets enable comparison.

If the dev server isn't running, start it first:

npm run dev &
sleep 5  # wait for server
# capture screenshots
kill %1  # stop server

Step 2: Review Each Breakpoint

For each screenshot (mobile 375px, tablet 768px, desktop 1440px), evaluate:

Layout and Structure
Responsive Behavior
Typography and Readability
Visual Consistency
Accessibility (Visual)

Step 3: Compare Before/After (If Available)

If both "before" and "after" screenshots exist:

Step 4: Produce Report

Output a structured visual review to .sage/work/<feature>/visual-review.md:

# Visual Review: [feature name]

**Date:** [timestamp]
**Breakpoints reviewed:** 375px, 768px, 1440px

## Summary
[1-2 sentence overall assessment]

## Mobile (375px)
**Status:** PASS / ISSUES FOUND
[Specific findings with reference to what's visible in screenshot]

## Tablet (768px)
**Status:** PASS / ISSUES FOUND
[Specific findings]

## Desktop (1440px)
**Status:** PASS / ISSUES FOUND
[Specific findings]

## Before/After Comparison
[If available — specific improvements and regressions]

## Issues Found
1. [Issue]: [description] — [severity: critical/major/minor]
2. ...

## Recommendation
PASS — ready to merge
PASS WITH NOTES — merge but address [minor issues] in follow-up
FAIL — [critical issues] must be fixed before merge

Show the report to the user. If issues are found, present the screenshot

alongside the issue description so the user can see what you're referring to.

Rules

MUST (violation = missed visual bugs):

Do not review from code or memory — only from actual rendered output.

developers test on desktop.

acceptable. "The hero section has 8px left padding instead of the 24px

used in other sections, visible at 375px" is acceptable.

SHOULD (violation = incomplete review):

"does it look good" judgment.

MAY (context-dependent):

(e.g., 1920px for admin dashboards, 320px for older devices).

issues that need pixel-level diagnosis.

Failure Modes

capture screenshots. Run npm run dev and tell me when it's ready."

have a loading state. Try waiting longer (--wait 5000) or check if

auth is needed.

"No before state available — reviewing current implementation only."

your assessment, but frame it as a recommendation: "The spacing between

cards appears inconsistent. I'd suggest 24px uniform gap. Your call."

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.