agentleFS
vzhukovsvzhukovs/podman-desktop-kit/skills/review-pr/SKILL.md

review-pr

Skill0 starsChanged 13 days agoApache-2.0View on GitHub

Review someone else's pull request along four parallel axes.

185 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use diagnose-ci-failures, docs-loop 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.
  • zerx-labSkill

    diagnose-ci-failures

    Diagnose CI failures for a PR using the GitHub CLI, extract error logs, and generate a plan to fix them. Use when the user asks to check CI status, pull CI issues, triage test failures, or investigate PR build failures.

    Also in 3 projects that use this

  • GeiserXSkill

    docs-loop

    Use when the user asks to audit docs, check documentation for stale claims, or verify docs against the code.

    Also in 3 projects that use this

  • GeiserXSkill

    full-loop

    Drive a repository to done with sergio-loop, then keep improving it with refine-loop at a descending theta. Use only when the user explicitly invokes full-loop.

    Also in 3 projects that use this

  • n24q02mSkill

    review-delta

    Review only changes since last commit using impact analysis. Token-efficient delta review with automatic blast-radius detection.

    Also in 3 projects that use this

  • n24q02mSkill

    build-graph

    Build or update the code review knowledge graph. Run this first to initialize, or let hooks keep it updated automatically.

    Also in 3 projects that use this

  • +7 more from GeiserX

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 178 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    do not report what the linter already catches.

    line 111
  2. Distinctive:

    do not ask for defensive code against impossible states.

    line 117
  3. Distinctive:

    do not suggest one more abstraction.

    line 118

“Common” is measured: kept by at least 6 in 10 of the 178 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

Outside the issue lifecycle entirely. Nothing here moves a state machine, and nothing here is published.

1. The facts

pdkit review fetch <k> --json

Fetches refs/pull/<k>/head and reads the diff locally, from where the pull request branched rather than from where upstream is now — against the tip it would carry every commit that landed since, and the review would ask the author about work they never did.

What comes back is mechanical and already done: files by layer, whether the public API is touched, exported symbols that reach extension-api.d.ts, schemas changed with nothing generated beside them, added files without a license header, the threads reviewers have already opened, and the linked issue with its text — read from closingIssuesReferences first, then from keywords in the body, then from the bare number under upstream's "What issues does this PR fix or reference?" heading.

Hand that issue to the four axes. Without it, Requirement fit is the diff agreeing with itself: a table that finds nothing missing because it was built from the same source it is checking. When references comes back empty the report says so out loud, and that is a fact about the pull request worth raising rather than a gap to paper over.

2. Four axes, in parallel

AgentLooking for
pd-review-architecturedoes it fit existing patterns; does it duplicate a utility; right layer; dependency direction
pd-review-api-compatbackwards compatibility, Disposable and leaks, schemas, the public surface
pd-review-testsare the claimed edge cases covered; skips, weakened assertions, any, @ts-ignore; determinism
pd-review-productdoes it do what the issue asked; i18n, a11y, contrast; error and empty states; neighboring regressions

Each axis gets the diff, the facts above, the target files and the linked issue, but not the threads already on the pull request. Leave out feedback from what review fetch returned. An axis that has read what someone else already said ends up agreeing with it, or arguing with it. Either way the review stops being a second opinion. The threads are not wasted: they go to the synthesis, after the judgment is made.

Each axis reads ${CLAUDE_PLUGIN_ROOT}/knowledge/maintainer-rules.md: its calibration, and the sections named in its own prompt. That is the rule set upstream's own review agent applies, so a finding grounded in it is one the maintainer would also raise. Every finding is one line with a Semantic Code Reviews label:

path/to/file.ts:LINE — issue: <what and why, imperative, one or two sentences> (§<n>)
  • issue: blocks approval.
  • nit: is optional.
  • question: needs an answer in the PR.

(§n) cites the section of maintainer-rules.md. A finding that comes from our own axis lens and not from those rules (does it solve the issue, does it regress a neighboring scenario) is marked (outside the rule set). That marker is a label, not a downgrade. A finding is reported only after it has been checked in the actual code. If it could not be checked, it becomes a question:.

Then pd-review-synth merges them. It is given the four reports and feedback from step 1: dedupe, calibrate, mark what reviewers already raised, and reach one verdict.

3. The report

pdkit review render <k> --values <file.json> --reveal

Writes reviews/<k>.md from the template, and opens it in the file manager. --reveal is on here because the report lands under $PDKIT_HOME, which is outside the repository and outside whatever window is already open — printing the path and leaving a copy-paste between finishing a review and reading it is the wrong last step. Where there is no desktop it says so on one line and the render still succeeds; drop the flag if you would rather it stayed quiet. What I could not verify is mandatory and is never empty by default: the platforms you did not exercise, the steps that need a human, the behavior you could only read about.

The verdict follows from the findings. It is not a separate judgment. Take the first row that matches, the same order upstream's review agent uses:

VerdictWhen
REQUEST_CHANGESat least one issue:, or CI is red, or the diff carries changes the title and body do not describe
NEEDS_DISCUSSIONno issue:, but a rule requires a check nobody here can do: platform or QE validation, UX approval, a public extension-API change, running the app. Name each one under What I could not verify
APPROVE_WITH_NITSonly nit: and question:
APPROVEnothing to report

Counts is Blockers N · Nits N · Questions N · Files reviewed N/N. Do not add a numeric grade.

Discipline

A reviewer told to find problems will find them in correct code, and the second time that happens nobody reads the report. So:

  • do not report what the linter already catches. The rules in maintainer-rules.md are not style in this sense, even the ones that look like it: the maintainer raises them, so they are reported, as nit: where the calibration says so;
  • a violation that already existed in a touched file is a nit: marked pre-existing, never an issue:, unless the PR adds a new occurrence;
  • do not ask for defensive code against impossible states;
  • do not suggest one more abstraction;
  • do not mention commit scope. Upstream does not require it — it is our own discipline, and pdkit review fetch deliberately never reports it. Spending an author's attention on a rule their project does not have is how a review loses the standing to raise the ones it does.

An empty section is a valid result. Two blocking findings and three empty sections is a better review than eleven nits.

Publishing

Nobody publishes but you. The report lands in reviews/<k>.md; posting it is a human action, in your own words and under your own account. The hook refuses the write in any case — a review comment needs a reply token, and reviewing someone else's pull request has no issue and no state to issue one from.

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.