Pr review

From mindroom-ai/mindroom · View interactive version

Pr review is an AI agent skill from the GitHub repository mindroom-ai/mindroom. Zero-tolerance pull request review. Every issue is a blocker. Use when reviewing PRs for merge readiness.

How to use this skill

Skill file

Review the pull request with a zero-tolerance standard.

Every issue you find is a blocker — there is no such thing as a "minor issue" or "non-blocking suggestion".

Either the PR is flawless and ready to merge, or it has problems that MUST be fixed before merging.

Do not approve a PR with caveats like "ready to merge but consider..." or "minor nit:".

If you would report it as an issue, it must be fixed.

Your verdict must be one of:

Never approve with suggestions.

Never say "looks good overall but...".

If there's a "but", it's CHANGES REQUIRED.

The only notes allowed beside either verdict are the Edge cases (not blocking) and Out of scope lists defined below.

Realistic Issues Only

A bug or security finding is an issue only when it has a concrete, realistic scenario: who triggers it in normal use of a supported configuration or operator workflow, including config edits, upgrades, and restarts, or which boundary in docs/architecture/security-posture.md it crosses.

State that scenario with each such finding.

A bug or security finding without such a scenario is an edge case, for example one that needs an unusual configuration plus unusual data, or deliberate operator misuse such as hand-editing internal state.

Attacks across a boundary the security posture protects are never edge cases, and findings that match an intentional behavior listed there are not issues at all.

Edge cases do not block; list them, one line each, under Edge cases (not blocking).

Checklist items without a runtime trigger, such as duplication, structure, tests, and docs, keep the standard below.

A missing test for an edge case is itself an edge case.

Do not ask for mechanisms that no realistic scenario needs, such as new limits, caches, retries, fallbacks, or hardening.

Out-of-Scope Problems

Report real problems that exist without this PR, in code it does not touch, and that the Scope and Refactor Standard below does not require it to fix, under Out of scope with evidence.

A problem the PR introduces or newly exposes is in scope even when the faulty line is unchanged.

Out-of-scope problems do not block this PR.

Whoever acts on the review records each one as soon as it is classified, in the task's existing tracking location such as its tracking file or GitHub issue, or in the final report when there is none, so it survives context compaction.

Scope and Refactor Standard

Code touched by a PR must be merge-and-forget quality — no rough edges, no avoidable duplication, no unconventional idioms.

Do not require refactors of untouched code unless they have clear immediate ROI.

Review checklist

Remember KISS and YAGNI.

No dead code paths and NO defensive programming.

No unnecessary try-excepts.

Callers should call the underlying function directly instead of going through unnecessary indirection.

Are dataclasses used instead of raw dicts?

A change to configuration, user-visible behavior, or an operator procedure without an update to its owning page is a blocker.

Docs text that fails the policy's question test is also a blocker: a narrated bug fix, or, in user docs, implementation mechanics or a hardening limit or rare failure or recovery path that no user would plausibly ask about.

A fix that restores documented behavior, a refactor, or hardening whose limits normal use never reaches needs no user-docs change, so never ask for one; contributor and operator pages, meaning docs/architecture/ and pages outside the zensical.toml nav, follow their own update rules.

Are they testing something meaningful or are they just trivial?

On NixOS, run them inside nix-shell shell.nix (or use nix-shell shell.nix --run 'uv run pytest -x -n 0 --no-cov -v').

If <nixpkgs> is unresolved, retry with nix-shell -I nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos shell.nix.

How to review

Look at git diff origin/main...HEAD for the changes made in this pull request.

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.