agentleFS
KoshuxKoshux/agentic-sdlc-scaffold/.claude/skills/pr-review/SKILL.md

pr-review

Skill0 starsChanged 4 months agoMITView on GitHub

Stage 5.6 automated-PR-review triage — fetch the PR-bot review (Copilot/Codex) on an opened PR, validate every finding against the live codebase and spec, fix the valid ones on-branch, decline the rest with reasons, and record the triage. Use after a PR is opened (the bot review lands ~5-10 minutes later) or when the user asks to check/triage a PR review. Optional module — delete if your repo has no PR-bot reviewer.

117 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use pr-fix, oss-pr and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • volovelySkill

    pr-fix

    This skill should be used when the user asks to "fix PR comments", "address PR feedback", "resolve PR comments", provides a GitHub PR URL with intent to fix, or says "pr-fix". It reads all review comments on a PR, decides which need code fixes vs. replies, makes the fixes, and posts replies — all with explicit user approval before any GitHub action.

    Also in 5 projects that use this

  • CES-LtdSkill

    oss-pr

    Use when creating a pull request, after committing changes, or when user invokes /oss-pr. Covers branch management, quality checks, commit, push, and PR creation.

    Also in 3 projects that use this

  • CES-LtdSkill

    pr-automation

    PR Automation Orchestrator: poll open PRs, check CI, run review, fix, and merge eligible PRs. Use when: (1) Invoked by daemon via scripts/pr-automation.sh, (2) User says "/pr-automation".

    Also in 3 projects that use this

  • EffortlessMetricsSkill

    pr-create

    Also in 7 projects that use this

  • dversozaSkill

    pr-feedback

    Address PR review feedback including inline threads, general comments, bot-generated reviews, PR description findings, check run annotations (inline lint/type/security findings shown in the Files changed tab), code scanning alerts, and CI failures. Use when asked to handle, address, resolve, respond to, or work through PR review comments, review feedback, inline findings, or CI check failures. Triggers on requests like "address PR comments", "handle review feedback", "resolve PR reviews", "fix review comments", "go through PR feedback", "check CI failures", "fix the inline findings on the PR".

    Also in 3 projects that use this

  • Microsoft AzureSkill

    create-release

    Use when creating a new ASO release, including pre-checks, release notes generation, draft GitHub release creation, documentation updates, and ROADMAP changes.

    Also in 3 projects that use this

  • +2 more from CES-Ltd

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 104 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Interactively: do other useful work and re-check, or confirm the PR was opened long enough ago.

    line 28
  2. Very specific:

    Test the premise: If the comment claims "the app does X elsewhere (e.g.

    line 59
  3. Distinctive:

    Security-touching findings: when a fix touches authorization or validation, confirm the disallowed case is still rejected after the change …

    line 76
  4. Very specific:

    Re-verify: run the relevant unit/integration tests plus pnpm tsc --noEmit for touched backend code.

    line 79
  5. Distinctive:

    Validate, don't relay: Every applied finding needs a verified premise.

    line 98

“Common” is measured: kept by at least 6 in 10 of the 104 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Automated PR Review Triage (Stage 5.6)

The Stage 5.6 executor for the SDLC in 00-core-workflow.md — the PR-stage complement to Stage 5.5. After the branch is pushed and a PR is opened, the repo's PR-bot reviewer posts a review ~5–10 minutes later; this skill triages it before Stage 6 operator review, without the operator having to ask.

Optional module. Requires a PR-bot reviewer (e.g. copilot-pull-request-reviewer[bot], Codex). If your repo has none, delete this skill and drop Stage 5.6 from the workflow rules.

When this runs

  • Standing stage — after a PR is opened for a feature branch. The agent checks back on its own; it is not operator-prompted. The operator should never have to say "go check the PR review."
  • On user request to check or triage a PR's review suggestions.

Step 1 — Wait for the review to land

The bot review is asynchronous (~5–10 minutes after the PR opens). Do not assume it is instant, and do not conclude "no findings" from an empty early check.

  • Interactively: do other useful work and re-check, or confirm the PR was opened long enough ago.
  • Autonomously: self-schedule a re-check ~5–10 minutes out (use whatever wakeup/scheduling mechanism the harness provides) and poll until a submitted review or inline comments exist.
  • Long-lived PRs: many bots review only on PR open, not on later pushes. If you push new work to an already-reviewed PR, re-request the bot reviewer (gh api -X POST repos/{owner}/{repo}/pulls/<n>/requested_reviewers ...) and poll for a review newer than the previous one.

Step 2 — Fetch the review (read-only)

gh fills {owner}/{repo} from the current repo's remote:

gh api repos/{owner}/{repo}/pulls/<n>/reviews \
  --jq '.[] | "\(.user.login) | \(.state)"'

gh api repos/{owner}/{repo}/pulls/<n>/comments \
  --jq '.[] | "--- \(.path):\(.line) [\(.user.login)] ---\n\(.body)\n"'

Also check issue-level comments (gh api repos/{owner}/{repo}/issues/<n>/comments) for a summary review body, and confirm whether multiple reviewers posted.

Step 3 — Validate every finding (never blind-apply)

Automated reviewers emit false positives, stylistic nits, and suggestions that conflict with intentional design decisions or repo conventions. The value of this stage is judgment — applying a wrong suggestion is worse than declining it with a reason. For every finding:

  1. Open the cited code and read it in context.
  2. Test the premise. If the comment claims "the app does X elsewhere (e.g. TaskCard.vue)", go check that file. If it claims "this returns 403 instead of 422", trace the actual control flow. Bots state false premises confidently.
  3. Check against the spec and the log. Does the suggestion contradict an acceptance criterion, or a decision already recorded under ## Self Code Review in the implementation log? If so, it is declined, not fixed.
  4. Classify: valid → fix, or declined → one-line rationale.

Severity judgment mirrors Stage 5.5: a real correctness or security issue is HIGH; a convention/copy nit is LOW but usually cheap to honor.

Step 4 — Resolve

  • Valid findings: fix on the same branch. If a finding implies larger work, file an iteration spec (SPEC-NNN<letter>-...) instead of ballooning the PR.
  • Declined findings: record the one-line reason (optionally reply on the PR thread so the operator sees the rationale).
  • Security-touching findings: when a fix touches authorization or validation, confirm the disallowed case is still rejected after the change — never let a bot suggestion weaken a guard.
  • Re-verify: run the relevant unit/integration tests plus pnpm tsc --noEmit for touched backend code; note frontend changes for operator browser verification.
  • Do not merge. Push the branch; Stage 6 (operator review + merge) is unchanged.

Step 5 — Record

In the implementation log, under ## Automated PR Review (Stage 5.6):

## Automated PR Review (Stage 5.6)
Reviewer: <bot> on PR #<n> (submitted <timestamp>).
1. <file:line> — <finding> → VALID, fixed in <commit> (<what changed>).
2. <file:line> — <finding> → DECLINED (<why — premise false / intentional / conflicts with X>).

Then commit and push so the operator's Stage 6 review starts from the resolved state.

Reminders

  • Validate, don't relay. Every applied finding needs a verified premise.
  • Match rigor to leverage (effort-discipline.md): fix the real ones, honor cheap nits, decline the rest with a line — don't over-engineer.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.