Claude: PR-reviewer Agent#813
Conversation
Adds a project-scoped pr-reviewer agent that reviews a PR or the current branch's diff against repo conventions, FastAPI/Python best practices, and a personal review checklist distilled from the team's veteran reviewers. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
📝 WalkthroughWalkthroughA new agent prompt configuration file ChangesPR Reviewer Agent Configuration
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.claude/agents/pr-reviewer.md:
- Line 120: Add a language tag to the fenced code block identified as "fenced
code block at Line 120" in the .claude/agents/pr-reviewer.md content so it no
longer triggers markdownlint MD040; update the opening triple-backtick to
include a tag such as text or markdown (for example change ``` to ```text) so
the block is properly annotated.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 4c4ca61b-195b-4705-b54e-04bb316dc5fa
📒 Files selected for processing (1)
.claude/agents/pr-reviewer.md
|
|
||
| ## Output format | ||
|
|
||
| ``` |
There was a problem hiding this comment.
Add a language tag to the fenced code block at Line 120.
This triggers markdownlint MD040 and is easy to fix by annotating the fence (for example text or markdown).
Suggested fix
-```
+```text
## Summary
<1–3 sentences: what the PR does + verdict (approve / approve with nits / request changes). Caveats on approval are fine.>
@@
</details>
<details>
<summary>🧰 Tools</summary>
<details>
<summary>🪛 markdownlint-cli2 (0.22.1)</summary>
[warning] 120-120: Fenced code blocks should have a language specified
(MD040, fenced-code-language)
</details>
</details>
<details>
<summary>🤖 Prompt for AI Agents</summary>
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In @.claude/agents/pr-reviewer.md at line 120, Add a language tag to the fenced
code block identified as "fenced code block at Line 120" in the
.claude/agents/pr-reviewer.md content so it no longer triggers markdownlint
MD040; update the opening triple-backtick to include a tag such as text or
markdown (for example change totext) so the block is properly annotated.
</details>
<!-- fingerprinting:phantom:triton:hawk -->
<!-- d98c2f50 -->
<!-- This is an auto-generated comment by CodeRabbit -->
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Summary
.claude/agents/pr-reviewer.md, a project-scoped Claude Code subagent for reviewing PRs and branch diffs.load_description,sa_column_kwargscomments, alembic rev-id rule,uvtooling) plus FastAPI / Python / SQLModel / migration / security checks distilled from the team's veteran reviewers.VERY IMPORTANT:,MUST:,nit:) so reviews stay actionable.How to use
On a branch you're working on
On an open PR (yours or a teammate's)