Github.describe pr for review

From gpsaggese/helpers · View interactive version

Github.describe pr for review is an AI agent skill from the GitHub repository gpsaggese/helpers. Describe one or more PRs in a fixed format, score complexity and quality, and suggest a review order

How to use this skill

Skill file

Goal

PR in a fixed format with the facts a reviewer needs before reading the diff

Workflow

Get the Input

https://github.com/<OWNER>/<REPO>/pull/<PR_NUM>

```bash

> gh repo view --json nameWithOwner -q .nameWithOwner

```

continue with the next PR

Fetch the PR Metadata

```bash

> gh pr view <PR_URL> --json number,title,url,author,headRefName,baseRefName,headRepository,isDraft,mergeable,reviewDecision,additions,deletions,changedFiles,body,closingIssuesReferences,statusCheckRollup,files

```

```bash

> gh pr diff <PR_URL>

```

Find the Issue

Related to, Part of, or a full issue URL

```bash

> gh issue view <ISSUE_NUM> --repo <OWNER>/<REPO> --json url,state

```

Build the Fields

```bash

> git fetch origin <HEAD_BRANCH>

> git checkout <HEAD_BRANCH>

```

```bash

> gh pr checkout <PR_NUM> --repo <OWNER>/<REPO>

```

```bash

> gh pr list --repo <OWNER>/<REPO> --head <BASE_BRANCH> --json number

```

how_to_guide

Build the Status

CHANGES_REQUESTED, otherwise omit it

ACTION_REQUIRED, or STARTUP_FAILURE; or state is FAILURE or ERROR

Write the Short Description

Write the Assessment of Quality

match the diff

code, CI result, risky spots

file types in the diff

```

```

```

```

Score the Review Complexity

rename across many files

```

```

Score the Quality

violations

violations, CI fails for a reason not related to the PR

tests, mixed purposes, the body claims what the diff does not show

description

```

```

Suggest the Review Order

or stacked on followed by B

the reason, and place no constraint

author must fix it first

Write the Output

after the title:

```markdown

```

.claude/skills/markdown.rules.md

> prefix

```

```

```

from stacked PR #749

```

Conventions

.claude/skills/text.rules.md

Constraints

gh pr list, gh repo view

Examples

````

```bash

> git fetch origin UmdTask640_Noesis_PR_S4_spec

> git checkout UmdTask640_Noesis_PR_S4_spec

```

reporting

verdict

spec.PR_S4.md

found

from stacked PR #749

fails and the tests are in #749

````

```

# Suggested Review Order

1. #742 UmdTask640_Noesis_PR_S4_spec: spec that #744 and #747 implement

2. #744 UmdTask640_Noesis_PR_S4_sink: stacked on #742, adds the interface used

by #747

3. #747 UmdTask640_Noesis_PR_S4_worker: stacked on #744, uses the interface

from #744

# PR #742: UmdTask640_Noesis_PR_S4_spec

...

# PR #744: UmdTask640_Noesis_PR_S4_sink

...

```

Verification

a reason that cites evidence

parent PR comes before its children

lines aligned to the bullet text

.claude/skills/github.describe_pr_for_review/SKILL.md

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.