Skills Prompts

Popular categories

Agent skill · gstack

/review Catch production bugs in a diff before it merges

This pre-landing review compares the branch with its base, checks for scope drift and missing requirements, then reads the full diff against a checklist. It lists every edit to tests, CI or snapshots for scrutiny, dispatches specialist and adversarial reviewers, and classifies each finding as auto-fix or ask. It never commits or opens PRs; that belongs to ship.

Works with

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

Used forCode review

When to use it

  • A feature branch is ready and you want a careful review before opening a PR.
  • An agent changed tests or CI settings and you want those edits looked at by name.
  • You want review bot comments triaged alongside your own findings.

How it works

  1. 1
    Check branch and scope

    The agent stops if there is no diff, then compares commit messages, TODOs and the PR body with the changed files.

  2. 2
    Read the full diff

    It reads the checklist and the complete diff, including untracked source, before commenting on anything.

  3. 3
    Scan gate edits

    Every change to tests, CI, lint config or snapshots is listed and reviewed, and an unavailable scan counts as missing coverage.

  4. 4
    Critical pass and specialists

    Only issues that would make tests fail, break production or lose data block the pass, and each one is searched for at sibling call sites.

  5. 5
    Fix first

    Findings become auto-fix or ask items; auto-fixes are applied and ask items wait for your approval.

What it steers the agent away from

  • Comments on issues the diff already fixes.
  • Quietly weakened tests, timeouts or suppressions.
  • Committing, pushing or opening a PR from the review.

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

Will it change my code?

Yes for obvious, mechanical fixes. Critical or judgement calls are asked first, and gate edits such as test changes always need approval.

Does it repeat findings I skipped before?

It suppresses a finding only if you skipped the same one earlier and its file has not changed since.

More guides from gstack

Also in this pack

All 30 skills →

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