Review Pr prefecthq-review-pr

Assess a FastMCP pull request for justified behavior, compatibility, and correctness, then follow CI and review feedback to a revision-specific verdict.

Use it when draft or ready PRs and self-review before publication.

Works in Claude, ChatGPT, Codex and more
Our test
9/10✓ Verified
tested Dec 6, 2026
GitHub stars
29k
prefecthq/fastmcp
Added by
0
members
Updated
Dec 6
commit 8202f04
Content
1 file
no scripts · 18 KB
License
Apache 2.0
free to use

What our test found

The skill gives a rigorous, evidence-based review workflow with unusually strong compatibility, validation, and revision-specific verdict requirements.

Request we tested it on“Review FastMCP PR #482, which adds a new public method for an experimental protocol feature. Check whether the change should ship, identify compatibility risks, and give a revision-specific verdict.”

Limits spotted

  • The procedure is lengthy and can be disproportionate for routine reviews despite its tiering guidance.
  • It depends on FastMCP-specific repository documents, triage services, bots, and companion skills.
  • Some operational steps assume GitHub access and scheduling capabilities that may not be available.
View on GitHub ↗
name: review-pr
description: Assess a FastMCP pull request for justified behavior, compatibility, and correctness, then follow CI and review feedback to a revision-specific verdict. Use for draft or ready PRs and self-review before publication.

Review a FastMCP PR

Review whether the change should ship, with evidence for its intended behavior as well as its implementation. Use the same procedure for maintainer, contributor, and agent drafts. For an unpublished change, record the base and local diff and skip GitHub-only steps. For an external contributor's assignment decision, start with .

For review-only tasks, assess and report; repair, push, and monitoring steps apply only when that follow-through is in scope. Automated reviewers use the same substantive checks and their required findings format; an automated reviewer does not wait for its own review or manage the PR lifecycle. If the review environment cannot run tests or delegate an adversarial pass, state that limit rather than claiming those checks passed.

Procedure

  1. Size the review to the risk. Pick a tier from the diff and the compatibility table in step 4, not from the title or labels, and record it in the verdict. Raise the tier whenever later steps find something that belongs higher; never lower it after starting.
  • Light: docs, tests, .github/, scripts/, .agents/, or a library fix where the only changed outcomes are inputs that used to raise or return a wrong value, with no public signature, default, wire, or auth change. Read the diff and the linked issue, run the regression on base and head, confirm CI on the head, and write a three-line verdict. Skip the all-states PR search beyond the linked issue. The triage reviewer bot's review of the latest commit is the only adversarial review a light PR needs.
  • Standard: any other library behavior change. Steps 1 to 7 as written.
  • Heavy: any input that used to succeed now fails or changes result (tightening), anything previously rejected now accepted (loosening), a new or changed default, wire or capability change, server/auth/ or another security boundary, new or changed public API on FastMCP, Client, Context or components, any experimental or draft-spec feature, or shared dispatch (providers, mounting, proxy). Steps 1 to 7 plus: the released-wheel probe in step 4, the adversarial pass in step 5 at every substantive revision (the triage reviewer bot's review, where it covers the PR), and the property suite in .

Light work is where tokens go to die: a green, obviously correct change does not need archaeology. Heavy work is where first-pass reviews have missed real defects: do not shortcut it because the code looks clean.

  1. Establish the scope. Claim the PR with the triage MCP server's claim_work (target pr:<number>) as describes, and start from the context it returns: triage labels, related past items, and earlier attempts. For Standard and Heavy reviews, also search the triage memory for the changed area and behavior (module, option, error text), not only the issue title, and read the hits that look like prior regressions, reverts, rejected approaches, or maintainer decisions on the same contract. The nearest items always come back however weak, so a hit is a lead until you have read it; cite only what you read. Light reviews use the claim context alone. If the server isn't connected, say so and use GitHub search. Read AGENTS.md, the contribution policy in , the issue's full discussion, the entire diff against the merge base, and prior review threads and replies. Record the base and head revisions. Find related issues and PRs in all states, and inspect open PRs touching the same files for overlapping lines or behavior even when they do not link the issue. Distinguish released behavior, fixes already on main, and competing proposals. When proposals compete, record the issue reporter, original implementation author, maintainer direction, correctness, and distinct coverage. Recommend which proposal should survive and preserve carried-forward credit; submission order and green CI do not select the winner. Call a sound overlapping proposal redundant rather than spurious.
  1. Decide whether we want the change at all, per , before verifying anything. Count a setup the reporter configured into existence, or a deprecated surface, against it. Record want / marginal / don't want with one line of reasoning and carry it into the verdict; batch reviews do this for every PR.
  1. Establish the contract before judging the fix. Use the protocol, released docs, history, and maintainer decisions to explain what FastMCP promises for the reported inputs. Existing code and tests are evidence of behavior, not sufficient proof that it is intended. A reproducer can demonstrate surprising behavior without demonstrating a bug; a regression test can assert the wrong result. Classify the change as a contract-restoring bug fix, intentional behavior change, public API addition or modification, documentation, or tests; a PR can span categories. Name existing inputs whose outcomes change, including defaults and explicit overrides. A bug title does not establish the category. Resolve ordinary review uncertainty from the protocol, released docs, history, and prior maintainer decisions; make a recommendation within the established contract. Passing tests alone do not establish that contract.

Maintainers own design opinions. Escalate only a concrete product or compatibility choice that remains unresolved after investigation and materially changes supported behavior or the scope FastMCP commits to maintaining. Identify the supported scenario, the competing outcomes, why existing authority does not settle them, and your recommended direction. Ordinary implementation judgment, naming preferences, speculative edge cases, and uncertainty that further investigation can resolve are not reasons to stop for a decision. An actual unresolved policy choice is not a contributor defect; do not submit a formal changes-requested review solely because that choice is unsettled, or ask the contributor to obtain or settle it. Once the maintainer chooses, assess the implementation against that direction. When the intended behavior is established and the correction is small, make the localized repair within authorization rather than submitting a changes-requested review. Reserve formal changes requests for a materially wrong approach or behavior that needs rethinking; explain the concrete behavioral correction after the maintainer settles the direction.

For protocol-facing changes (wire fields, auth challenges, capabilities, errors, or cache semantics), cite the applicable specification revision and normative primary source. Distinguish what the protocol requires or permits, what the SDK implements or defaults, and what policy FastMCP chooses. SDK support alone does not settle framework policy; do not strengthen a protocol hint into a guarantee.

  1. Trace the cause and compatibility. Read every changed file in context, its callers, producers and consumers, and shared abstractions. For a bug fix, state the causal ownership: the contract is X, the failure originates in Y, and this patch repairs Y. Check existing configuration, extension hooks, and shared abstractions before accepting new framework behavior. If the patch compensates elsewhere, explain why the owning layer cannot address the cause. Search for the same bug pattern and trace affected tools, resources, templates, and prompts; use canonical component identity. Compare omitted defaults, explicit overrides, errors, serialization, and supported configurations. State which existing inputs change behavior, why that is necessary, and any migration preserving the old behavior. Write this as a compatibility table: input, outcome on the last release, outcome on head, and a class of fix (only previously failing inputs change), tightening, loosening, new default, or new capability. Include the empty configuration (argument omitted, None, [], setting unset) as a row, since defaults are where most users are. Add a row for every past regression or user report the triage memory turned up in this area. For Heavy reviews, produce the last-release column by running the probe against the published package (uv run --no-project --with fastmcp==<last tag> python probe.py from an empty directory), not only against the base checkout. Tightening, loosening, and new defaults each need a release-notes line naming who is affected and how to keep the old behavior; carry that line into the verdict. Do not pick the version: report the classes and let the release classify. Check where unstable features surface. Anything that implements a draft SEP, an extension or protocol feature FastMCP's own docs call experimental, beta, or preview, or an upstream specification that is not yet stable, lives under fastmcp.experimental and, for the CLI, under fastmcp experimental. It does not land as a top-level fastmcp.* export, a method on FastMCP, Client, or Context, a stable settings field, or a top-level CLI command or flag. Its docs page and docstrings say it is experimental and may change without deprecation. When the feature has to hook a stable class (a provider kwarg, for example), the parameter's docstring and the docs say so. A stable FastMCP API that emits names from an unstable upstream spec, such as OpenTelemetry semantic conventions, says which names can change. Treat a mismatch as a defect to fix before release, not a note for later. Check API ergonomics, docs, and whether dependency minimums support newly used APIs; test the old minimum when compatibility is claimed and keep lockfile changes scoped.
  1. Verify behavior independently. For bug fixes, use to run the regression on the unchanged base and proposed head yourself. Confirm it fails for the claimed reason and asserts the intended value and type, not merely that a result exists. For other changes, verify the promised behavior with appropriate checks. Exercise neighboring supported paths sharing the changed branch. For shared dispatch, security boundaries, or behavior other components rely on, get an independent adversarial pass. Where the triage reviewer bot covers the PR (see below), its review is that pass; don't run another. Otherwise, give a fresh agent the PR and paths to investigate, have it run reproducers in a throwaway worktree, and retain confirmed findings. Repeat that pass after substantive rework. Record revisions and checks actually run; unavailable validation remains pending evidence. For a merge batch, also run the composition check in .
  1. Evaluate feedback and resolve findings. Fetch CI, review summaries, inline threads, and replies together using the commands below. Evaluate Copilot, Codex, and maintainer feedback on its merits. Collect all independent consequential findings in one pass, with reachable triggers and consequences; do not repeat resolved or convincingly rebutted findings without new evidence. Avoid cosmetic blockers and speculative scope expansion. Within authorization, maintainer repairs should be localized finishing touches on a contribution whose scope and design are accepted and which is nearly ready. A nearly ready fix that only needs small corrections to match established behavior should be finished by the maintainer, including targeted regression coverage. After the maintainer settles the direction, substantive API, protocol, behavior, or architectural rework remains the contributor's responsibility; explain that work rather than taking over, even when maintainer edits are enabled. For the small repairs, fix real defects together, verify adjacent behavior, run required checks, and push. Resolve verified fixes; reply with a reason when declining a finding if posting is authorized. Do not iterate indefinitely on hypothetical follow-ups.
  1. Follow the current revision to a verdict. A push invalidates evidence tied only to the old head. After publication or an update within the task, establish quiet monitoring using the host's scheduling capability; notify only on meaningful changes, decisions, failures, or completion, and pause after the terminal report. For a one-time review, report pending checks without creating an ongoing monitor unless requested. If persistent monitoring is unavailable, watch during the active task and state the limitation. Confirm CI actually ran on the current head (fork runs at action_required need approval). Inspect failed CI logs before diagnosing or retrying; distinguish assertions, worker crashes, dependency resolution, and infrastructure failures. Reproduce supposedly unrelated failures on the base. Report scope and design acceptance, implementation correctness, and remaining validation separately. An approval with pending CI can be appropriate when the user has authorized it and the scope, design, and code are accepted; approval does not mean merge readiness. Pending CI cannot resolve an unsettled design decision, and a process gate is not a code defect.

GitHub evidence

gh pr view <number> --repo PrefectHQ/fastmcp \
  --json baseRefOid,headRefOid,title,body,statusCheckRollup,reviews,comments,isDraft,labels

gh api --paginate repos/PrefectHQ/fastmcp/pulls/<number>/comments

Read review threads and author replies, not just summary verdicts. Codex can update a summary issue comment without creating a formal review; match its reported revision and completion status. Zero formal reviews does not prove it has not run. Drafts may not trigger reviews. Do not mark ready or request reviews solely to satisfy a polling loop. A generic request for human review is not a concrete defect, and green CI does not establish review completion or settle a compatibility decision.

Every PR into main gets an adversarial review from the FastMCP triage reviewer bot, posted as a comment-only review. A maintainer's or an agent's PR is reviewed each time it is opened, marked ready for review, or gets a new commit while it is ready for review; a contributor's PR is reviewed along with the issue it fixes. Draft PRs and PRs marked do-not-merge are skipped, so iterate in draft and mark the PR ready when you think it's done. The review starts with a hidden fastmcp-triage-review comment that names the commit it reviewed. The authoring session's own self-review does not replace it. Before an authorized merge, confirm the bot's most recent review names the PR's latest commit; if it names an older commit or there is none, the merge waits for the bot. The bot doesn't review PRs into other branches or PRs opened by bots yet; review those with this procedure, including the adversarial pass.

Preserve draft status unless the user authorizes changing it. Approval, publication, and merging remain subject to AGENTS.md and existing authorization. Immediately before an authorized merge, recheck the title, body, labels, head, checks, and branch protections; obey all draft and DNM stops.

For maintainer implementations of community issues, check as part of readiness: the issue author's verified co-author trailer must be in the implementation commit and PR description. Missing community attribution is unfinished PR preparation. Maintainers are generally exempt: do not flag missing credit for another maintainer or ask for guidance about it. Routine backports preserve existing community attribution without a fresh credit audit. In review-only work, report an applicable omission rather than editing the PR.

Preserve attribution through whichever merge strategy is chosen. For a squash merge, write the exact final commit body to a temporary file, including the issue link and all human co-author trailers from the PR description and commits. Inspect it and pass it explicitly with gh pr merge <number> --squash --body-file /tmp/merge-body.md --match-head-commit <reviewed-head>, adding any already-authorized merge flags. Do not rely on GitHub's default squash message. For merge or rebase, verify the attributed commits will be retained. After merging, inspect the landed commit(s) and confirm the co-authors are present. These steps do not authorize a merge or prescribe its strategy.

Verdict template

Keep the report proportional to the change, with these facts explicit:

Verdict: ready for maintainer consideration / changes needed / maintainer decision needed / validation pending — at <head>, against <base>. Want: want / marginal / don't want, and why: who hits it, what we take on by merging. Scope and design: change category, promised behavior and supporting source; any precise maintainer decision still needed. Implementation: whether the patch repairs the causal layer, with consequential defects or competing-proposal selection. Tier: light / standard / heavy, and the trigger that set it. Compatibility: the compatibility table (or "only previously failing inputs change"), adjacent behavior preserved, and the release-notes line for any tightening, loosening, or new default. Validation: regression on base/head, neighboring checks, adversarial result or why it was not required, CI and bot status at this revision. Distinguish a code approval with pending CI from a merge-ready recommendation. Outstanding: consequential findings, decisions, and checks still pending.

Check before finishing

Can another maintainer tell whether we want this change at all, why this behavior is desirable, what existing behavior changes, and which claims were independently verified at the reported revision? If any answer is missing, qualify the verdict instead of calling the PR ready.