pre-pr-review
Skill434 starsChanged 18 days agoMITView on GitHub
Review a RedisVL branch before a human sees it, fix what holds up, and write a Reviewer Brief into the PR description so the approver knows where to look. Use it whenever you're about to open a PR, mark one ready for review, or push substantive changes to one, and when you're handling Bugbot or reviewer comments, even if nobody asked for a review by name.
8 other projects use a version of this.
Adopted by
Most recently taken up by
- ErikaAX08/erikas-skillstheir own version, first seen Nov 8, 2026
- eSoul-cz/skillstheir own version, first seen Nov 1, 2026
- kenchris/review-looptheir own version, first seen Nov 1, 2026
- osac-project/osac-ai-skillstheir own version, first seen Oct 13, 2026
- wisnuwiry/padutheir own version, first seen Oct 8, 2026
- SirGuanZz/claude-skillstheir own version, first seen Sep 14, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- wisnuwiry/padu★ 19same name
- ErikaAX08/erikas-skills★ 6same name
- kenchris/review-loop★ 4same name
- SirGuanZz/claude-skills★ 2same name
- eSoul-cz/skills★ 1same name
- osac-project/osac-ai-skills★ 0same name
- racoonamatatas/claude-skills★ 0same name
- tchughesiv/osac-ai-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/redisvl.mdcCursor rule
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. 0 are common, 12 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
12
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
- Distinctive: line 16
Read each changed file in full, not just the hunks.
- Distinctive: line 22
Run all six lenses by default.
- Distinctive: line 37
Run one pass per lens. Start each pass from the diff and that lens's file, not from an earlier pass's conclusions, so that one pass's blind …
- Distinctive: line 39
If your agent can start isolated sub-tasks (subagents, sub-sessions, parallel workers), give each lens its own, and run them in parallel.
- Distinctive: line 40
If it can't, run the lenses one after another, and write each pass's findings to a scratch file before starting the next.
- Distinctive: line 42
Write each finding in this shape, so the challenger can check it quickly:
- Very specific: line 52
Run a separate challenger pass, as described in references/challenger.md.
- Distinctive: line 54
Run a second challenge round only if the first round's fixes changed the code materially.
- Distinctive: line 59
Add the narrowest regression test that fails without the fix, or note why none applies.
- Distinctive: line 61
Commit the fixes locally. The author pushes.
- Distinctive: line 69
If you can't reach the author, for example because you're running unattended, don't open the PR or mark it ready.
- Very specific: line 73
Write the brief following references/reviewer-brief.md.
- Distinctive: line 85
When Bugbot or a person comments on the PR:
- Distinctive: line 102
Ask the author before posting replies on the PR, unless they've already said you can.
“Common” is measured: kept by at least 6 in 10 of the 6 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.
Files
Pre-PR review
A human approves every merge to main. This review runs before they see the PR, so the problems it catches never reach them. Its output, the Reviewer Brief, gives them a head start: where to begin reading, where the change could still fail, and what nobody has checked.
The approver can only rely on the brief if it's accurate, so report only what you can tie to the code, and never claim a check you didn't run.
1. Scope the change
- Diff the work against its merge base with
main:git diff $(git merge-base origin/main HEAD)covers commits and uncommitted changes, andgit statusshows untracked files to read as well. - Read each changed file in full, not just the hunks. Bugs often sit in the unchanged lines a hunk depends on.
- For every changed public function, method or class, read its callers and its sync or async twin (
SearchIndexandAsyncSearchIndex, and so on). Drift between twins is one of this project's most common defects. - In a stack of PRs you may review the whole stack at once, but keep track of which PR introduced each line. Each PR gets its own brief.
2. Choose lenses
Run all six lenses by default. Each catches problems the others miss, and running all of them is the most thorough option.
A lens that finds nothing relevant in the diff has still done its job; say nothing about it beyond the footer. If you need to save tokens, the "Most useful when" column says where each lens pays off. Correctness always runs. The footer of the brief lists the lenses that ran, so the reviewer can see what was covered.
| Lens | File | Most useful when |
| Correctness | references/correctness.md | Always |
| Security | references/security.md | The diff touches redisvl/mcp/, redisvl/query/filter.py, redisvl/utils/token_escaper.py, code that builds query strings or SCAN patterns, destructive methods (delete, clear, drop), redisvl/redis/connection.py, .github/, or dependencies |
| Design | references/design.md | Feature work, new or changed public API or MCP surface, work on deprecated APIs, new vectorizer, reranker or provider modules |
| Tests | references/tests.md | Tests are added or changed, or the change sits in an area CI can't exercise (cluster, live provider APIs) |
| Docs | references/docs.md | docs/, notebooks, docstrings or comments change, or public behaviour changes |
| Redis behaviour | references/redis.md | The diff changes how Redis commands or queries are built, relies on a server default, limit or reply shape, or states how Redis behaves |
3. Review, one lens at a time
Run one pass per lens. Start each pass from the diff and that lens's file, not from an earlier pass's conclusions, so that one pass's blind spots don't become the next one's.
- If your agent can start isolated sub-tasks (subagents, sub-sessions, parallel workers), give each lens its own, and run them in parallel.
- If it can't, run the lenses one after another, and write each pass's findings to a scratch file before starting the next.
Write each finding in this shape, so the challenger can check it quickly:
[lens] path/to/file.py:LINE: claim, in plain words. Failure: the input or state that goes wrong, and what happens. Fix: the smallest change that resolves it.Skip formatting, import order and typing nits, which CI and make lint already catch.
4. Challenge the findings
Run a separate challenger pass, as described in references/challenger.md. Review passes produce false positives, and every one that survives costs someone time. Keep findings that score 7 or more out of 10 and have a file, a line and a concrete failure or cost.
Run a second challenge round only if the first round's fixes changed the code materially.
5. Fix and re-check
- Fix the kept findings that are within the PR's scope, at the root cause. A real problem outside scope goes to the author as a question, not into the diff.
- Add the narrowest regression test that fails without the fix, or note why none applies. A test you've seen fail without the fix is strong evidence for the brief's "Beyond CI" line.
- Re-run whatever the fixes touched:
make format,make check-types, and the affected tests (make test ARGS="tests/unit/test_x.py", orpyteston the specific file). - Commit the fixes locally. The author pushes.
6. Settle open questions with the author
A PR should reach the reviewer with no open questions. Before the PR is opened or marked ready, and before each later rewrite of the brief, take everything the review couldn't settle to the author and get an answer: findings outside the PR's scope, rejections you're unsure about, and trade-offs. You work for the author, and the reviewer shouldn't have to answer questions the author never saw.
Once the author has decided, record a deliberate trade-off that a reviewer might question in the PR's Notes section, as a decision with its reason. Notes say what was decided and why; they don't ask the reviewer anything.
If you can't reach the author, for example because you're running unattended, don't open the PR or mark it ready. Leave it as a draft, or unopened, and put the questions in your report to the author, never in the PR.
7. Write the Reviewer Brief
Write the brief following references/reviewer-brief.md. The reviewer sees the change as it is now, so the brief points at the current code, not at the problems you fixed.
To put it in the PR description, save the brief to a file and run:
python3 .agents/skills/pre-pr-review/scripts/update_brief.py <pr-number> <brief-file>The script replaces only the ## Reviewer Brief section and keeps the rest of the description, including Bugbot's summary. Add --dry-run to print the result without changing the PR. If the PR doesn't exist yet, put the brief under ## Reviewer Brief in the description you open it with. Without gh, give the brief to the author to paste.
Responding to review
When Bugbot or a person comments on the PR:
- List what's still open:
It prints unresolved, non-outdated review threads, review summaries and top-level comments, each with its author and location.python3 .agents/skills/pre-pr-review/scripts/open_feedback.py <pr-number> - Verify each point against the current code. A reviewer's wording, human or bot, is a claim to check, not a verdict.
- Decide its outcome:
fixed in <sha>already fixedinvalid, with the evidenceduplicate of <item>needs a decision: ask the author, and reply once they've decided
- Check the fix before saying so. Re-read the exact location in the fixed tree, and search for other instances of the same pattern, before you reply "fixed".
- Reply on each thread with its outcome, and bring the brief up to date. Fixes that change behaviour need a fresh review of the new commits and a rewritten brief, because the reviewer will rely on it. Trivial fixes need only a "Since the last brief" line. Anything that needs a decision goes to the author.
Ask the author before posting replies on the PR, unless they've already said you can.
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
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.

