# frontend visual qa

> Headless-browser check of changed pages at desktop and mobile sizes, with screenshots.

frontend visual qa is a paid AI agent skill on Agensi by dameepng, in Testing & Debugging. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $9 (one-time purchase)
- Creator: [dameepng](https://www.agensi.io/creators/damee-png)
- Category: [Testing & Debugging](https://www.agensi.io/skills/testing-debugging)
- Version: 1.0
- Last updated: 2026-11-23
- Security: scan passed (2026-11-23); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/frontend-visual-qa
- Tags: testing, web-design, mobile, ui-testing, screenshots

## About this skill

Stop guessing if your frontend changes actually work. Compiling is not the same as rendering correctly. This skill automates visual verification by running a headless browser against your local dev server to catch errors before you commit.

### What it does
- **Change detection** identifies UI-relevant file changes and maps them to affected routes.
- **Automated verification** builds the app and launches a local server to test pages in real-time.
- **Multi-viewport testing** checks every URL at desktop (1440x900) and mobile (390x844) resolutions.
- **Error catching** fails on console errors, uncaught exceptions, hydration mismatches, and 4xx/5xx requests.
- **Visual evidence** captures full-page screenshots and detects mobile horizontal overflow issues.

### How it works
1. **Identify** which routes and components were impacted by the recent code changes.
2. **Execute** the project's build and start the background development or preview server.
3. **Run** the `visual_check.mjs` script against the local URLs to audit browser logs and layout.
4. **Inspect** the generated screenshots and `REPORT.md` to verify the UI looks as intended.
5. **Clean up** by stopping the background server and reporting the final pass/fail verdict.

### Frameworks & tools
This skill requires Node 18+ and Playwright. It works with any web framework that uses a local dev server, including React, Next.js, Vue, Svelte, and static HTML sites.

### Why this beats prompting it yourself
Writing a custom Playwright script for every change is tedious and error-prone. This skill standardizes the check, ensuring mobile overflow and console errors are never overlooked while providing consistent screenshot artifacts for PRs.

### Use cases
- Verifying responsive layouts after modifying CSS or Tailwind configurations.
- Catching runtime JavaScript errors introduced during component refactoring.
- Confirming that new routes load correctly after updating router logic.
- Detecting asset loading failures or broken API requests on specific pages.

### Known limitations
Requires Playwright to be installed in the project. Cannot bypass complex authentication without a seeded session or test account. Visual checks are limited to Chromium-based browsers.

## Requires

- Playwright
- Node.js 18+
- Playwright or playwright-core + Google Chrome
- Optional: Python 3.8+ (only for the changed-files detector)
- Optional: Git (to detect which files changed)

Runs only on your machine against your local dev server; it contacts no other hosts. The agent asks before adding Playwright to your project. With playwright-core, no browser download is needed: it uses your installed Chrome.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the frontend visual qa skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Is this visual regression testing?

No pixel diffing and no baseline images to maintain. It catches runtime errors, broken requests, and sideways scrolling on phones, and saves full-page screenshots so the agent (and you) can review the layout.

### Does it work with my framework?

Yes, if the app runs on a local dev server: React, Next.js, Vite, Vue, Svelte, Astro, or plain HTML. The agent uses your project's own build and dev scripts.

### Does the skill test every single page in my application every time I make a change?

No, the skill intelligently maps your modified files to specific routes, ensuring it only audits the pages affected by your recent changes to save time and compute.

### Do I need to download a browser?

Not if Google Chrome is installed: use playwright-core and the agent passes --channel chrome. Otherwise install Playwright's Chromium once. The agent asks before adding anything to your project.

### What about pages behind login?

Use a test account or seeded session if your project has one. If the agent can't reach a page, it says so instead of checking the login screen and calling the page verified.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
