- Home
- Skills
- Code Quality & Review
- GitHub PR Analyzer
GitHub PR Analyzer
Analyze PR diffs for hidden risks, test gaps, and architectural impact with a structured review output.
$2
GitHub PR Analyzer
Example session with this skill installed
Analyze this PR diff: it changes the 'user_roles' column to a JSONB type in the users table and updates the AuthMiddleware to parse it. No new tests were added to the 'tests/auth' folder.
- Read your context and instructions
- Compiled the github pr analyzer
I have analyzed the provided diff and PR context regarding the user_roles schema change.
PR Analysis Report
TL;DR
This PR migrates the user_roles column to JSONB and updates the authentication middleware to handle the new format. It introduces significant risk due to a lack of corresponding test updates for a core security path.
Change Map
| Concern | Files |
|---|---|
| Database Migration | migrations/20231027_alter_user_roles.sql |
| Auth Logic | src/middleware/AuthMiddleware.ts |
| Type Definitions | src/types/user.d.ts |
Risk Assessment
Level: High
- Security: Changes to
AuthMiddlewareimpact every protected route. - Data Integrity:
JSONBmigration requires careful handling of existing nulls or legacy strings. - Test Gap: The diff contains zero updates to the
tests/directory despite logic changes.
File-by-file notes
AuthMiddleware.ts: The parser assumes the JSON structure is always an array; it will throw if the column contains a null value.20231027_alter_user_roles.sql: No fallback or data migration strategy for existing varchar roles is included.
Questions for the author
- How does the middleware handle legacy string values remaining in the database during the deployment window?
- Why were no integration tests updated to reflect the new role structure?
Suggested review comments
src/middleware/AuthMiddleware.ts:42
Warning: This JSON.parse() call lacks a try-catch block. If the DB returns a malformed string or null, this will crash the request pipeline.
Merge verdict
Request changes. The lack of test coverage for a high-risk security change and the missing data migration strategy for the column type change are blockers.
Next steps
- Add a migration script to cast existing data to JSON arrays.
- Implement unit tests in
tests/authcovering null, malformed, and valid JSON roles.
Connects securely to your tools. The creator never sees your data.
About this skill
Reviewing high-volume pull requests often leads to missed edge cases and superficial approvals. This skill analyzes PR diffs and metadata to identify hidden risks, architectural impacts, and missing test coverage before you hit the merge button.
What it does
- Diff mapping groups changed files by functional concern like infra, feature logic, or migrations.
- Deep hunk analysis identifies behavioral changes that signatures might hide, such as flipped defaults or renamed fields.
- Risk classification uses a rubric to flag high-stakes changes in auth, payments, and concurrency.
- Test-gap detection compares implementation hunks against test files to highlight uncovered logic.
- Review automation generates ready-to-paste comments and a formal merge verdict based on implementation safety.
How it works
- Input ingestion accepts raw diffs, file lists, and PR descriptions for context.
- Context mapping identifies the core intent and organizes files by their impact on the system.
- Rubric evaluation checks for cross-cutting risks in security-sensitive paths and database schemas.
- Synthesis produce a structured report including questions for the author and a merge readiness verdict.
Frameworks & tools
This skill is platform-agnostic, working with any standard git diff or GitHub PR metadata. It is particularly effective for teams using GitHub Actions or manual code review workflows.
Why this beats prompting it yourself
Generic prompts often miss the "silence" of missing tests or the subtle risks of environment-specific config changes. This skill enforces a specific risk rubric and test-gap analysis that standard LLM summaries overlook.
Use cases
- Auditing complex PRs for security risks in auth or payment logic.
- Verifying that new feature code is actually exercised by the included tests.
- Generating structured feedback for junior developers or new contributors.
- Rapidly assessing the impact of large refactors or dependency updates.
Known limitations
Analysis is limited to intent if only a PR description is provided without a diff. Deep architectural inference is marked as such and requires human verification.
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
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 8 days ago
Permissions
No special permissions declared or detected
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.