GitHub PR Analyzer

    by Zeyad Mohamed

    1

    Analyze PR diffs for hidden risks, test gaps, and architectural impact with a structured review output.

    $2

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    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

    ConcernFiles
    Database Migrationmigrations/20231027_alter_user_roles.sql
    Auth Logicsrc/middleware/AuthMiddleware.ts
    Type Definitionssrc/types/user.d.ts

    Risk Assessment
    Level: High

    • Security: Changes to AuthMiddleware impact every protected route.
    • Data Integrity: JSONB migration 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

    1. How does the middleware handle legacy string values remaining in the database during the deployment window?
    2. 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

    1. Add a migration script to cast existing data to JSON arrays.
    2. Implement unit tests in tests/auth covering 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

    1. Input ingestion accepts raw diffs, file lists, and PR descriptions for context.
    2. Context mapping identifies the core intent and organizes files by their impact on the system.
    3. Rubric evaluation checks for cross-cutting risks in security-sensitive paths and database schemas.
    4. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Listed8 days ago

    What's inside

    Frequently Asked Questions

    This skill analyzes raw git diffs and PR metadata to identify security risks in sensitive paths (like auth or payments) and flags logic changes that lack corresponding updates in test files.

    The GitHub PR Analyzer is platform-agnostic; it works with any AI agent or workflow capable of processing text-based git diffs and JSON metadata from GitHub's API.

    You receive the structured logic and risk rubrics necessary to deploy the analyzer, which can be integrated into GitHub Actions, CI/CD pipelines, or used as a standalone tool for manual reviews.

    While it can summarize intent from a description, the skill requires a standard git diff to perform its deep hunk analysis and identify specific risks or test gaps.

    Yes, the skill is designed to handle large-scale changes by grouping files into functional categories like infrastructure or feature logic, making complex refactors easier to audit.

    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.