# ghost-qa [Health: Active]

**Category:** 📂 Browser Automation  
**Repository:** https://github.com/avivgerz-hue/ghost-qa  
**GitHub Stars:** 60  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/ghost-qa

## Description
Autonomous headless browser QA & self-healing verification loop for coding agents. 8-trap deep inspection (console, network, layout, WCAG a11y + keyboard focus, Core Web Vitals, links, SEO, theme parity) across desktop/tablet/mobile in light + dark, QA He

## Claude Desktop Quick Installation
No confirmed install details yet, so no config is published. Follow the setup steps in the repository above.

## Documentation

## What ghost-qa does

ghost-qa verifies a running web application from the browser’s perspective. Its inspection loop crawls internal routes, exercises interactive controls, and records problems that may not appear in source-level checks. Runs cover desktop at 1440×900, tablet at 768×1024, and mobile at 375×812, with both light and dark color schemes.

The results are converted into a deterministic QA Health Score from 0 to 100 with grades from A+ to F. Diagnostic output includes `GHOST-QA-REPORT.md` and `PATCH-PROMPT.md`; the latter is intended to give a coding agent exact selectors and a repair path. Regression checks can compare two JSON result files.

## How it works

The `test` command launches a headless browser against the supplied application URL. During route crawling and interaction checks, ghost-qa observes the live DOM, browser console, requests, layout geometry, accessibility properties, and timing data.

Its inspection engine includes traps for runtime and framework errors, HTTP and asset failures, responsive layout problems, WCAG 2.1 AA and keyboard focus issues, performance and Core Web Vitals signals, and link integrity. Examples include React hydration errors, failed fetches, CORS failures, horizontal overflow, overlapping controls, missing accessible names, contrast problems, slow page loads, oversized resources, placeholder links, and dead routes.

A typical repair loop is to run a scan, give the generated report to the coding agent, apply fixes, and run the scan again. `compare before.json after.json` can check that a change improves the result without introducing new regressions. The documented completion target is a score of 95–100, no critical or major findings, and no new regressions.

## Setup and configuration

Use Node.js 20 or newer. Start the application normally, then install the Chromium browser used by Playwright:

```bash
npm run dev
npx playwright install chromium
npx -y ghost-qa@latest test http://localhost:3000
```

The package can also be run directly from its GitHub repository with `npx -y github:avivgerz-hue/ghost-qa ...`. No test scripts or configuration file are required for the basic scan.

`ghost-qa init` adds a `.claude/skills/ghost-qa/SKILL.md` file and appends a browser-verification protocol to `CLAUDE.md`, `AGENTS.md`, and `.cursorrules`. This supports workflows where an agent runs verification before reporting a task complete.

## Tools and capabilities

- Crawl internal routes and inspect the rendered application in a headless browser.
- Test desktop, tablet, and mobile viewport behavior in light and dark modes.
- Capture console errors, promise rejections, hydration mismatches, network failures, CORS problems, and broken assets.
- Detect overflow, collisions, undersized or off-screen controls, missing viewport metadata, and clipped content.
- Check accessible names, image alternatives, form labels, contrast, heading structure, document metadata, and keyboard focus order.
- Produce scored reports, agent-oriented repair prompts, and before-and-after regression comparisons.

## Limitations and notes

ghost-qa tests a running web application, so the application must be available at a URL before `test` is run. Chromium must be installed through Playwright before the first browser run. Findings are based on the configured inspection scenarios and browser-observable behavior; the documented workflow focuses on internal routes and the listed viewport and color-scheme combinations.

_Full upstream README: https://allmcps.com/mcp/ghost-qa/readme_

