- Home
- Skills
- Code Quality & Review
- Moonlight PR Review Verdict
More screenshots
Works with the AI Agents you already use
Moonlight PR Review Verdict
PR-scoped code review that delivers blocking vs non-blocking findings and a clear approval verdict.
Free
Moonlight PR Review Verdict
Example session with this skill installed
/pr-review-verdict https://github.com/acme/api/pull/482 -- focus on security and data migrations
- Read your context and instructions
- Compiled the moonlight pr review
I have reviewed PR #482 focusing on the new encrypted field migration and the JWT refresh logic.
Verdict: Request changes
The PR introduces a high-risk migration that lacks a rollback strategy and contains a potential race condition in the token refresh service. While the encryption implementation is sound, these architectural issues must be addressed before merging.
PR understanding
- Intent: Implement field-level encryption for user PII and modernize refresh token rotation.
- Scope: Changes to
Usermodel,EncryptionService, andAuthMiddleware. - Risk areas: Database locking during migration, crypto key management, and token concurrency.
Blocking findings
src/models/user.py:42: Migration performs anALTER TABLEon a live PII column without a temporary shadow column, risking data loss if the process interrupts.src/services/auth.py:112: Refresh token lookup lacks a transaction lock, allowing potential reuse during concurrent requests.
Non-blocking suggestions & questions
suggestion: src/crypto/utils.py:15: Use a constant-time comparison for HMAC verification to prevent timing attacks.question: Have we verified the KMS key rotation policy for the newPII_ENCRYPTION_KEY?
Test and compatibility assessment
- Tests: New unit tests cover encryption/decryption. Integration tests for the token rotation race condition are missing.
- Compatibility: Breaking change in
GET /userresponse format; needs a version bump or transformer.
What's good
- Clean separation of the
EncryptionProviderinterface. - Excellent documentation of the token rotation sequence in the PR description.
Suggested follow-ups
- Implement an automated secret scanning CI gate to prevent key leakage.
- Refactor the
AuthMiddlewareto use a strategy pattern for different token types.
Next steps
- Address the migration safety by using a three-step shadow column approach.
- Add a concurrency test case for the
refresh_tokenendpoint.
Connects securely to your tools. The creator never sees your data.
About this skill
Code reviews often result in superficial feedback or missed architectural risks. This skill acts as a technical code owner to evaluate pull requests against their stated intent, identifying blocking defects and security risks before they hit production.
What it does
- Intent verification checks if the diff actually matches the PR description and acceptance criteria while flagging scope creep.
- Risk-based triage prioritizes reviews for sensitive areas like authentication, database migrations, and public API contracts.
- Security auditing applies OWASP Top 10 standards to identify vulnerabilities in the changed code and surrounding context.
- Test assessment evaluates if new behaviors have meaningful assertions, error path coverage, and consistent lockfile updates.
- Verdict generation delivers a clear decision between Approve, Request Changes, or Block based on a false-positive filter.
How it works
- Context Discovery: The skill fetches the PR diff, linked issues, and existing comments to understand the goal.
- Deep Inspection: It reads surrounding code for each hunk to check for side effects in callers and callees.
- Multi-layer Review: Code is analyzed for correctness, security, performance, and maintainability in that specific order.
- Classification: Findings are categorized into blocking issues, non-blocking suggestions, and questions.
Frameworks & tools
This tool uses gh cli for metadata retrieval and standard git commands for diff analysis. It integrates with existing project linters and test suites to verify CI status and check for regression coverage.
Why this beats prompting it yourself
Generic prompts often produce style nits that formatters should handle or miss breaking changes in surrounding files. This skill enforces a strict verdict-driven workflow that ignores speculative feedback and focuses on data loss, security risks, and architectural alignment.
Use cases
- Reviewing complex database migrations for backward compatibility.
- Auditing security-sensitive changes in authentication or payment flows.
- Verifying that bug fixes include appropriate regression tests.
- Onboarding new contributors by providing objective, standard-aligned feedback.
Known limitations
Requires an authenticated GitHub CLI session for remote PR viewing. It cannot automatically fix findings unless explicitly instructed to apply changes.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 6 days ago
- Free with an Agensi account
Permissions
What's inside
Frequently Asked Questions
New in Code Quality & Review
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Code Quality & Review.