Review Packet for Large AI Agent Pull Requests

    by Nicolas Baranov

    1

    Prepares an AI agent's branch for human review: test, secret and protected-path results bound to the exact commit, plus a guide to what to read first, unchecked claims and questions.

    $15

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    What it does

    • Runs your tests itself and reports the results bound to the exact commit under review
    • Flags weakened tests, keys added in any commit, and edits to protected paths
    • Maps the change by area and says which files to read first, with file and line
    • Lists tests the branch deleted by name, even when new tests hide it in the count
    • Lists claims from commit messages that no check covers
    • Writes questions for the author and says which files were not read

    Who it's for

    Reviewers of pull requests written by AI agents

    A packet that separates what a tool checked from what the agent says, with the files to read first.

    Try asking: “Prepare this branch for review against main.”

    Tech leads facing 3,000-line agent diffs

    A map of the change and a short reading order instead of a wall of diff.

    Try asking: “This agent PR is huge. Make me a review packet and tell me where to start.”

    Developers handing an agent's branch to a teammate

    One file with the check results, the reading order and the open questions.

    Try asking: “Write a review packet for my teammate before I open the PR.”

    Review Packet for Large AI Agent Pull Requests

    Example session with this skill installed

    My agent finished the bulk-discount branch and says all tests pass with no behavior change for existing customers. Prepare it for review against main.

    • Read your context and instructions
    • Compiled the review packet

    The packet below is real: SKILL.md followed on 2026-12-05 with the packaged tool, network blocked, on a small billing service where an agent-style branch added bulk discount tiers and a CSV export. Part 2 was written by Claude Code from the diff; each finding in it was confirmed by running the code on both branches. Only the packet is shown; the agent's reply also gives its path.

    Review packet

    What changed

    • Base: 22a780e29d9cd00e92814c67ba1ab2c4eab40c9c

    • Head: f5fcfdb18ee73b5bf55ad31cae8d9053d649ce7e

    • Merge base: 22a780e29d9cd00e92814c67ba1ab2c4eab40c9c

    • Changed files (git status):

      • M app/invoices.py
      • M app/pricing.py
      • A migrations/002_bulk_percent.sql
      • M tests/test_invoices.py
      • M tests/test_pricing.py

    The meaning of the change and its business correctness were not assessed; see the diff for details.

    Which checks ran

    • Gate receipt 20261205T081306130914Z-f5fcfdb18ee7-BLOCKED.json: the digest matches; its origin and signature are not confirmed.
    • protected_paths: failed.
    • secrets: passed.
    • test_integrity: passed.
    • tests: passed.
    • Details and commands: see the gate receipt itself; review it before sharing.
    • Verify: no data given; no separate check is confirmed.

    Problems found

    • The gate recorded failed checks: 1. Details are in the receipt.

    For a person to check

    • Compare the diff with the task and check the business logic.
    • Make sure the required checks really ran; look into failed and unverified ones.
    • Review the packet and the receipt before sharing: file names and other data may be sensitive.
    • Decide on the remaining risk and on merging yourself.

    Part 2. Reviewer guide (written by Claude Code from the diff; not checked by any tool)

    Part 1 above is the unedited output of skilllayer review-packet for commit f5fcfdb18ee7.
    To regenerate it: python3 skilllayer.py review-packet --base origin/main --head f5fcfdb18ee7 --gate-receipt .skilllayer-receipts/20261205T081306130914Z-f5fcfdb18ee7-BLOCKED.json.

    Size

    3 commits, 5 files, +34 / −9 lines (git diff --shortstat).
    Read in full: 5 of 5 files. Not read: none.

    Change map

    AreaFiles+/−What changed
    Pricingapp/pricing.py+12/−3New bulk_percent() tiers (20/50/100 units → 5/10/15%); discount cap raised from 50% to 70%; rounding argument removed from apply_discount
    Invoicesapp/invoices.py+11/−2Bulk percent added on top of the customer's discount; new export_csv()
    Databasemigrations/002_bulk_percent.sql+1/−0New column invoices.bulk_percent (protected path: the gate flagged it)
    Teststests/test_pricing.py+4/−4test_discount_cap deleted; test_bulk_percent added
    Teststests/test_invoices.py+6/−0test_export_csv added

    Read first

    1. app/pricing.py:22 — quantize(CENT) lost rounding=ROUND_HALF_UP, so it now uses the default banker's rounding. This changes every discounted amount that ends in a half cent: apply_discount(0.25, 10) gives 0.22 on this branch and 0.23 on main.
    2. app/invoices.py:10 — the bulk percent is

    added to the customer's own discount. A customer with a 50% contract who orders 100 units now gets 65%: an invoice of 100 × 1.00 comes to 42.00 instead of 60.00.
    3. app/pricing.py:20 — the cap went from 50% to 70%, which is what lets the stacked discount through. The test that guarded the old cap is gone (next item).
    4. tests/test_pricing.py:14 — test_discount_cap was deleted in commit b428fc5. Part 1 shows test integrity as passed because the gate compares counts and two new tests were added in the same branch (+2/−1 test functions). Nothing now checks the cap.
    5. app/invoices.py:9 — the bulk tier is chosen from the total quantity of the whole invoice, not per line: 10 lines of 2 units each get the 20-unit tier (24.00 becomes 22.80).
    6. migrations/002_bulk_percent.sql — the gate failed this path as protected. Nothing in this branch writes the new column, so possibly the migration belongs to later work.

    Claims nobody checked

    • "no behavior change for existing customers" (commit b5a3ac3): items 1, 2 and 5 above change existing customers' totals. No check covers business totals.
    • "all tests pass" (commit b428fc5): true, 6 tests ran and passed (Part 1, tests: passed). One of the passing suite's old tests was deleted to get there.

    Questions for the author

    1. app/pricing.py:22: was dropping ROUND_HALF_UP intended? Existing invoices were computed with it.
    2. app/invoices.py:10: should bulk discounts stack with contract discounts, or should the larger one apply?
    3. tests/test_pricing.py: why was test_discount_cap removed rather than changed to the new cap?
    4. app/invoices.py:9: should the tier count units per line or per invoice?
    5. migrations/002_bulk_percent.sql: what writes bulk_percent, and does the migration need its own approval?
    SKILL.md

    Connects securely to your tools. The creator never sees your data.

    About this skill

    An agent opens a pull request with thousands of changed lines and a summary that says "all tests pass, no behavior change". The reviewer has two sources, and neither is independent. This skill prepares a packet with two parts that are never mixed.

    Part 1: checked by a tool

    SkillLayer's gate runs once on the branch, in observation mode:

    CheckWhat it looks at
    TestsRuns your test command itself and reads the real exit code
    Test integrityFewer tests or assertions, added skips, deleted test files (Python, JavaScript/TypeScript)
    SecretsEvery added line of every commit, so a key deleted later is still found
    Protected pathsPaths in your .skilllayer-policy.yml, read from the base commit

    review-packet then reports those results only if the receipt matches this exact commit and merge base. A receipt for another commit, an edited receipt, or a missing one gives "not confirmed", never a pass. No model is involved in this part, and the agent never edits it.

    Part 2: reviewer guide, written by your agent

    Your agent reads the diff file by file and adds, clearly labelled as unchecked:

    • Size and coverage: commits, files, lines, and which files it did not read.
    • Change map: each area, its files and what changed.
    • Read first: up to seven places, each with file, line and the reason.
    • Deleted tests by name, even when Part 1's counts look fine.
    • Claims nobody checked: statements from commit messages that no check covers.
    • Questions for the author.

    What it does not do

    • It does not approve, merge or block anything, and never calls a change safe.
    • It does not find vulnerabilities or judge design. Part 2 is your agent's reading and can be wrong; it points at places to look.
    • Key formats: AWS, GitHub, Anthropic and classic OpenAI keys, private keys, bearer tokens, database URLs with a password, and api_key/token/password = "...". Not yet Stripe, Slack or Google keys, or prefixed names like DB_PASSWORD.
    • Large changes: over 40 files or 3,000 lines, the agent asks whether to read everything or the 15 most important files first.

    Licence

    The bundled source is under the Business Source License 1.1 (full text in the package). Use is free for non-commercial use, for an evaluation or pilot of up to 90 days per organisation, and in an organisation where up to 10 developers use it.

    Part 2 is your agent's reading of the diff and can be wrong; Part 1 is the only checked part. Test integrity compares counts, so Part 2 lists deleted tests by name. Key formats: see the description. Over 40 files or 3,000 lines, the agent asks before reading everything. It does not post to pull requests unless you ask.

    The whole tool is one file, scripts/skilllayer.py: 179 KB of Python, standard library only, cut from SkillLayer v0.3.1, with its gate and review-packet commands. It contains no network code and installs nothing. SKILL.md gives its SHA-256, and the agent checks its copy before running it; through a connector, the agent writes the file unchanged to a temporary path and deletes it afterwards unless you agree to keep a checked copy in ~/.skilllayer/tools/. Needs Python 3.10+ and git. After your yes, the agent runs: python3 <tool> gate --base origin/main --mode warn --receipt-dir .skilllayer-receipts, then python3 <tool> review-packet --base origin/main --head HEAD --gate-receipt <receipt> --output .skilllayer-receipts/review-packet-<head>.md, then reads the diff with git and appends Part 2. Files written: the receipt, a run log and the packet, all in .skilllayer-receipts/. If SKILLLAYER_RECEIPT_KEY is set, receipts are signed and the packet checks the signature. --lang ru gives Part 1 in Russian.

    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 today

    Software
    GitPython 3.10+

    Your test command is your own code and runs as it normally does.

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Environment Variables

    File Scopes

    .skilllayer-receipts/**
    ~/.skilllayer/**

    Terminal: runs the skill's Python tool, git (read-only) and your own test command. Read Files: reads git history, the diff, test files and an optional .skilllayer-policy.yml. Write Files: only the receipt, a run log and the packet in .skilllayer-receipts/, and, if you agree, a checked copy of the tool in ~/.skilllayer/tools/. Environment Variables: reads the optional SKILLLAYER_RECEIPT_KEY to sign and check receipts; the skill sets none. No network: the tool has no network code; the URLs in it are secret-detection patterns.

    Listedtoday

    What's inside

    Creator

    Nicolas Baranov

    Nicolas Baranov

    5 skills on Agensi

    Frequently Asked Questions

    No. It writes a packet for a person to read. It never approves, merges, blocks or comments unless you ask.

    The tool has no network code. Part 2 is written by the agent you already use, from the diff it reads locally, as with any review you ask it for.

    Part 1 comes from a tool that runs your tests and checks the commits itself, bound to the exact commit, and says "not confirmed" when it cannot check. The agent's reading is kept apart and labelled as unchecked, with file and line for each point.

    The packet says the receipt belongs to a different change and reports the checks as not confirmed.

    It reads file by file, starting with the riskiest files. Over 40 files or 3,000 lines it asks whether to read everything or the 15 most important files first, and it always says which files it did not read.

    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.