Structured PR Review
Layered PR code review with severity tiers (MUST FIX/SHOULD FIX/SUGGESTION) and addressing-mode. Default: gh CLI only; optional Lobster pipeline.
Grace Gettert
@ggettert
What This Skill Does
Layered PR code review tool that categorizes feedback into severity tiers (MUST FIX, SHOULD FIX, SUGGESTION) and supports both giving reviews and addressing review comments. Uses gh CLI by default with an optional Lobster pipeline for parallel data gathering.
Replaces unstructured, ad-hoc PR comments by enforcing a structured review framework with severity tiers, automated context gathering, and a complete addressing workflow.
When to Use It
- Review a pull request with structured severity-based feedback
- Address all review comments on a PR and reply to each one
- Check a PR for security vulnerabilities and injection risks
- Verify code correctness and edge case handling in a PR
- Ensure new code has adequate test coverage before merging
- Audit infrastructure-as-code changes against team IaC checklists
Install
$ openclaw skills install @ggettert/structured-pr-reviewStructured PR Review
Two modes: giving reviews and addressing review comments. The default/fallback path uses gh CLI only — no extra dependencies. An optional Lobster pipeline parallelises data gathering when Lobster (Node/npx) is available; see references/lobster-integration.md.
Data gathering (optional Lobster pipeline)
run-pr-review.sh gathers PR metadata, diff, CI status, and existing review
comments in one step and emits a pr-context-v0 JSON blob. Use this context
for analysis instead of making multiple sequential gh calls.
# Auto-detect Lobster; falls back transparently to direct pipe-through
scripts/run-pr-review.sh https://github.com/owner/repo/pull/123
# Force direct path (no Lobster required)
scripts/run-pr-review.sh 42 --repo owner/repo --no-lobster
See references/lobster-integration.md for the full workflow, Lobster args, explicit commands, and install instructions.
Giving Reviews
When asked to review or check a PR:
- Fetch the PR details and full diff (use
run-pr-review.shorghdirectly) - Walk through each review layer in order (see references/review-layers.md):
- Security — secrets, injection, auth, exposure
- Correctness — logic errors, edge cases, error handling
- Conventions — team standards (customize via references/conventions.md)
- IaC — Terraform/CloudFormation checks (customize via references/iac-checklist.md)
- Testing — coverage, new code has tests
- Produce a structured verdict with severity tiers
Key principles:
- Be direct — "this approach has problems" beats "interesting choice"
- Every issue includes what to fix, not just what's wrong
- Acknowledge what the PR does well
- When in doubt on severity, go one level lower
See references/review-layers.md for the full framework and verdict format.
Addressing Review Comments
When asked to address, fix, or respond to PR feedback:
- Fetch all review comments (inline + review-level)
- Fix each issue or document why not
- Reply to every comment — none left unacknowledged
- Resolve threads, update PR description, push
See references/addressing-workflow.md for the step-by-step workflow.
Key rules:
- Never leave comments unacknowledged — reply to every one
- Always update the PR description after making changes
- Verify the PR is actually merged before closing linked issues
Customization
This skill ships with generic review layers. Customize for your team:
- references/conventions.md — coding conventions, commit format, naming rules. Ships with common defaults — customize for your team.
- references/iac-checklist.md — add your IaC-specific checks (required tags, allowed regions, provider pins). Ships with common Terraform patterns — extend for your org.
Scripts
scripts/run-pr-review.sh— Orchestrator: Lobster if available, direct fallback otherwisescripts/pr-review-workflow.lobster— Lobster workflow (4 steps: fetch-pr, fetch-ci, fetch-reviews, merge)scripts/lobster-safe-run.sh— Exit-code wrapper so soft exit-1 steps don't abort Lobsterscripts/fetch-pr.sh— PR metadata + diff → JSONscripts/fetch-ci.sh— CI / check-run status → JSONscripts/fetch-reviews.sh— Review comments + inline threads → JSONscripts/merge-pr-context.py— Merge source blobs → pr-context-v0 envelope
References
- references/lobster-integration.md — Lobster path usage, workflow steps, args, install
- references/review-layers.md — review framework, severity tiers, verdict format
- references/addressing-workflow.md — comment handling, thread resolution
- references/conventions.md — your team's conventions (customizable)
- references/iac-checklist.md — IaC review checklist (customizable)
Works Well With
- terraform-engineer — Terraform authoring best practices, module patterns, testing strategies
- github (built-in) — general
ghCLI operations for PRs, issues, and CI runs - Follow your team's commit message conventions when addressing reviews (conventional commits style works well)
- gh-issues (built-in) — automated PR monitoring and review spawning
Top skills in this category
Skill Vetter
@spclaudehomeSecurity-first skill vetting for AI agents. Use before installing any skill from ClawdHub, GitHub, or other sources. Checks for red flags, permission scope, and suspicious patterns.
Github
@steipeteInteract with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Humanizer
@biostartechnologyRemove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, negative parallelisms, and excessive conjunctive phrases.
Free Ride - Unlimited free AI
@shaivpidadiManages free AI models from OpenRouter for OpenClaw. Automatically ranks models by quality, configures fallbacks for rate-limit handling, and updates opencla...
Elite Longterm Memory
@nextfrontierbuildsUltimate AI agent memory system for Cursor, Claude, ChatGPT & Copilot. WAL protocol + vector search + git-notes + cloud backup. Never lose context again. Vibe-coding ready.