---
name: opencognitos-visual-check
title: visual check
kind: skill
description: >
  Look at what you built before calling it done - take screenshots at several
  sizes, compare against the intent and fix what looks wrong. Use after any
  visual change to a web page, component or app screen, and whenever the user
  says something "looks off".
updated: 2026-12-05
authored_by: OpenCognitOS
author_url: https://github.com/OpenCognitOS
source_url: https://github.com/OpenCognitOS/skills/tree/HEAD/visual-check
brought_by: kt
---

# Visual check

Code that compiles is not a page that looks right. Agents that never look at their output ship overlapping text, invisible buttons and broken mobile layouts. Always look.

## 1. Get the page running

Start the project's dev server (check `package.json` scripts) and wait until it answers. If the environment offers a built-in browser or preview tool, use that; otherwise use Playwright:

```bash
npx playwright screenshot --viewport-size=1280,800 --full-page http://localhost:3000/ desktop.png
npx playwright screenshot --viewport-size=390,844 --full-page http://localhost:3000/ mobile.png
```

## 2. Look at the screenshots

Open each image and check, in this order:

1. **Broken**: overlapping elements, text cut off, horizontal scroll, missing images, layout jumping.
2. **Hierarchy**: is the most important thing the most visible? Is there one clear primary action?
3. **Spacing**: consistent gaps, nothing glued to an edge, sections clearly separated.
4. **Contrast**: can every text be read? Are disabled and active states distinguishable?
5. **Intent**: does it match what the user asked for and the project's existing style?

For interactions (menus, dialogs, hover, focus), take a screenshot after triggering them.

## 3. Compare before and after

When changing an existing page, screenshot it **before** your change too. Compare both and make sure you did not break anything outside your change.

## 4. Fix and look again

Fix one problem at a time, then take a new screenshot. Stop when the list from step 2 is clean.

## 5. Report honestly

Tell the user which sizes and states you looked at. If you could not take screenshots (no browser, blocked tools), say so clearly instead of claiming it looks good.
