reviewcommit ed10791 · v1.0.0SKILL.md · Code Review
gstack Pre-Landing PR Review
Reviews a PR's diff against the base branch for structural issues tests miss, auto-fixing mechanical findings and asking before others.
Applies some fixes without asking, may reply to Greptile comments on the PR, and logs telemetry through gstack scripts.
npx skills add garrytan/gstack --skill reviewCommand selected. Copy it manually.
- Permissions
- read-repo
- write-files
- shell
- network
- Compatible with
- Claude Code, Codex, Cursor, Copilot
- GitHub
- 138.5k
- Source
- Community · Garry Tan
- Status
- Scan passed
- License
- MIT
- Category
- Code Review
- Repository
- github.com/garrytan/gstack/review
Core rule
Fix-first, not read-only: AUTO-FIX items are applied directly, ASK items only after approval, and it never commits, pushes or creates PRs.
Execution Phases
Phase 01Find base and scope
Detect the git host and base branch, confirm a diff exists, and check scope drift against TODOS.md, commits and the PR description.
Phase 02Read checklist and diff
Read the review checklist and any Greptile comments, get the full diff, and run the diff scans.
Phase 03Critical pass
Run the CRITICAL then INFORMATIONAL passes, sweep other call sites for the same pattern, and add specialist, exploratory QA and adversarial reviews.
Phase 04Fix-first
Classify findings as AUTO-FIX or ASK, apply the former directly, batch-ask about the latter, and apply approved fixes.
Phase 05Re-review and record
Re-review after edits (at most 3 cycles), persist the review result, reply to Greptile comments, and report.
Permissions (summarised from SKILL.md)
| Capability | Needed | Details |
|---|---|---|
| File writes | Required | Edits code directly for AUTO-FIX items and after approval for ASK items; never commits or pushes. |
| Command execution | Required | Runs git, gh/glab, gstack helper scripts and exploratory QA probes. |
| Network outbound | Required | May use WebSearch to research fixes, read PR data via gh, and reply to Greptile comments. |
SKILL.md frontmatter (YAML)
---
name: review
preamble-tier: 4
version: 1.0.0
description: Review this PR's diff. (gstack)
allowed-tools:
- Bash
- Read
- Edit
- Write
- Grep
- Glob
- Agent
- AskUserQuestion
- WebSearch
triggers:
- review this pr
- code review
- check my diff
- pre-landing review
---