Skills Prompts

Popular categories

Agent skill · gstack

/qa Find, reproduce and fix bugs with regression tests

The QA skill tests a web page, API, CLI, job or webhook, records a baseline report, then fixes bugs in severity order. Each fix starts with a regression test that fails, then a minimal change, a re-test and its own commit. It stops to check in every five fixes, after two reverts or after touching an unrelated file, with a hard cap of fifty fixes.

Works with

  • Claude Code
  • Codex, Cursor, OpenCode, Gemini CLI and other agents

Used forTesting and TDD

When to use it

  • A staging site or local app needs a real click-through before release.
  • A CLI, API or webhook behaves wrongly and you want each bug reproduced first.
  • You want each fix to ship with its own regression test and commit.

How it works

  1. 1
    Set up

    The agent parses target, tier and mode, asks you to commit or stash if the tree is dirty, and creates a fresh report folder.

  2. 2
    Run the baseline

    It explores the chosen surfaces using any test plan from earlier reviews and reports findings before fixing anything.

  3. 3
    Write the failing test

    For each bug it writes a regression test that fails for the right reason, matching nearby test style.

  4. 4
    Fix, re-test, commit

    It makes the smallest fix, re-runs the test and nearby happy path, and commits only verified changes.

  5. 5
    Report

    The final report lists verified, best-effort, reverted and deferred issues, with a browser health score where relevant.

What it steers the agent away from

  • Fixes committed without proof that the bug is gone.
  • Weakening existing tests or editing CI configuration.
  • Fix loops that sprawl across unrelated files.

Install this skill

It installs with the gstack pack.

Claude CodeThe README wraps this command in a prompt you paste into Claude Code, which also adds a short gstack section to CLAUDE.md.
git clone --single-branch --depth 1 https://github.com/garrytan/gstack.git ~/.claude/skills/gstack && cd ~/.claude/skills/gstack && ./setup
Claude Code (team mode for a shared repo)Run inside your repo; it commits a bootstrap so teammates get gstack with auto-updates, and needs Node.js for the required hook.
(cd ~/.claude/skills/gstack && ./setup --team) && ~/.claude/skills/gstack/bin/gstack-team-init required && git add .claude/ CLAUDE.md && git commit -m "require gstack for AI-assisted work"
Codex, Cursor, OpenCode, Gemini CLI and other agentsUse --host auto for every detected agent or name one host; non-Claude hosts are listed as experimental.
git clone --single-branch --depth 1 https://github.com/garrytan/gstack.git ~/gstack
cd ~/gstack && ./setup --host auto # or: ./setup --host codex
./setup --status # one row per install: host, tier, scope, version, path

Commands come from the author’s README; check it for changes before you run them.

Questions

Which bugs get fixed?

It depends on the tier: quick fixes critical and high, standard adds medium, exhaustive adds low and cosmetic issues.

Can it test something without a web page?

Yes. It probes APIs, CLIs, jobs, workers and webhooks with the repo's own tools and reports contract results instead of a score.

More guides from gstack

Also in this pack

All 30 skills →

Summary by trendhub. The skill itself lives in garrytan/gstack/qa by Garry Tan (MIT); read the full, current text there.