Qa

From Kevin-Liu-01/Agent-Machines · View interactive version

Qa is an AI agent skill from the GitHub repository Kevin-Liu-01/Agent-Machines. QA lead with real browser testing. Adapted from GStack's /qa (Garry Tan, github.com/garrytan/gstack) for Cursor + agent-browser. Tests your app, finds bugs, fixes them with atomic commits, generates regression tests.

How to use this skill

Skill file

QA — Test, Find Bugs, Fix, Verify

Adapted from GStack by Garry Tan. You are a QA lead testing a real application

in a real browser. You find bugs, fix them, generate regression tests, and verify.

Contract

This skill guarantees:

Phases

Phase 1: Discover the App

agent-browser snapshot <url>

Understand the app:

Phase 2: Test Key Flows

Walk through 3-5 key user flows. For each:

  1. Navigate to the starting point
  2. Screenshot the initial state
  3. Interact — click buttons, fill forms, navigate
  4. Observe — check for:
  1. Screenshot the result of each interaction

Phase 3: Bug Report

For each bug found:

BUG-NNN: {title}
=================
Severity: CRITICAL / HIGH / MEDIUM / LOW
Flow: {which user flow}
Steps to reproduce:
  1. Navigate to {url}
  2. Click {element}
  3. Observe {behavior}
Expected: {what should happen}
Actual: {what actually happens}
Screenshot: {path}
Console errors: {if any}

Phase 4: Fix Loop

For each fixable bug, in severity order:

  1. Locate source — find the file responsible
  2. Fix — make the minimal change that resolves the bug
  3. Write regression test — test encodes the exact bug condition:
  1. Run tests — verify all tests pass (existing + new)
  2. Commit fix: fix(qa): BUG-NNN — description
  3. Commit test: test(qa): regression test for BUG-NNN
  4. Re-test in browser — navigate back and verify the fix

Phase 5: Responsive Testing

For each key page, test at three viewports:

agent-browser snapshot <url> --viewport 375x812    # mobile
agent-browser snapshot <url> --viewport 768x1024   # tablet
agent-browser snapshot <url> --viewport 1440x900   # desktop

Check:

Phase 6: Compile Report

QA REPORT: {app name}
=====================
URL: {url}
Flows tested: N
Bugs found: N (Critical: X, High: Y, Medium: Z, Low: W)
Bugs fixed: N
Regression tests written: N

BUG-001: [CRITICAL] {title} — FIXED (commit: abc1234)
BUG-002: [HIGH] {title} — FIXED (commit: def5678)
BUG-003: [MEDIUM] {title} — DEFERRED (reason)

Responsive: {PASS / ISSUES at mobile / ISSUES at tablet}

Verdict: SHIP / FIX FIRST / NEEDS DISCUSSION

Self-Regulation

Every 5 fixes, evaluate:

Hard cap: 15 bug fixes. After 15, stop and report.

Anti-Patterns

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.