Review pr

From adoresever/AGI_Ananas · View interactive version

Review pr is an AI agent skill from the GitHub repository adoresever/AGI_Ananas. Script-first review-only GitHub pull request analysis. Use for deterministic PR review with structured findings handoff to /prepare-pr.

How to use this skill

Skill file

Review PR

Overview

Perform a read-only review and produce both human and machine-readable outputs.

Inputs

Safety

Execution Contract

  1. Run wrapper setup:
scripts/pr-review <PR>
  1. Use explicit branch mode switches:
  1. Before writing review outputs, run branch guard:
scripts/pr review-guard <PR>
  1. Write both outputs:
  1. Validate artifacts semantically:
scripts/pr review-validate-artifacts <PR>

Steps

  1. Setup and metadata
scripts/pr-review <PR>
ls -la .local/pr-meta.json .local/pr-meta.env .local/review-context.env .local/review-mode.env
  1. Existing implementation check on main
scripts/pr review-checkout-main <PR>
rg -n "<keyword>" -S src extensions apps || true
git log --oneline --all --grep "<keyword>" | head -20
  1. Claim PR
gh_user=$(gh api user --jq .login)
gh pr edit <PR> --add-assignee "$gh_user" || echo "Could not assign reviewer, continuing"
  1. Read PR description and diff
scripts/pr review-checkout-pr <PR>
gh pr diff <PR>

source .local/review-context.env
git diff --stat "$MERGE_BASE"..pr-<PR>
git diff "$MERGE_BASE"..pr-<PR>
  1. Optional local tests

Use the wrapper for target validation and executed-test verification:

scripts/pr review-tests <PR> <test-file> [<test-file> ...]
  1. Initialize review artifact templates
scripts/pr review-artifacts-init <PR>
  1. Produce review outputs

Minimum JSON shape:

{
  "recommendation": "READY FOR /prepare-pr",
  "findings": [
    {
      "id": "F1",
      "severity": "IMPORTANT",
      "title": "...",
      "area": "path/or/component",
      "fix": "Actionable fix"
    }
  ],
  "tests": {
    "ran": [],
    "gaps": [],
    "result": "pass"
  },
  "docs": "up_to_date|missing|not_applicable",
  "changelog": "required"
}
  1. Guard + validate before final output
scripts/pr review-guard <PR>
scripts/pr review-validate-artifacts <PR>

Guardrails

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.