# PR Test Receipt — Pull Request Preflight

> Before opening a PR, run the relevant local checks and get a paste-ready Testing section with exact results, blockers, and any gap between your working tree and the commit under review.

PR Test Receipt — Pull Request Preflight is a free AI agent skill on Agensi by ac W, in Code Quality & Review. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [ac W](https://www.agensi.io/creators/ac-w)
- Category: [Code Quality & Review](https://www.agensi.io/skills/code-quality-review)
- Version: 1.0
- Last updated: 2026-11-23
- Security: scan passed (2026-11-23); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/pr-test-receipt-pull-request-preflight
- Tags: code-review, pull-requests, git, testing, ci

## About this skill

Your tests passed locally. Did they pass on the commit you are about to send for review? PR Test Receipt checks the Git diff, runs the repository’s relevant local checks, and ties each result to the checkout it actually tested.

### What you get
- A readiness verdict and any blockers, with file and line evidence.
- A receipt with exact commands, observed results, exit codes, and checks that still need to run.
- A short Testing section ready to paste into a pull request.

### Try it before opening a PR
Ask “Is my branch ready for a PR against main? Give me a test receipt for the committed changes.” If an uncommitted edit makes a failing test pass locally, the receipt calls out the mismatch.

### Requirements and limits
Needs a local Git checkout and an agent with shell and file access. Tests use the project’s own tooling. The workflow preserves your Git history and leaves pushing and PR creation to you. Remote CI and checks unavailable locally are reported separately.

## Requires

- Git

## Known limitations

Requires a local Git checkout and the project’s test tooling. Checks run on the current checkout. Remote CI and unavailable checks are reported separately.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the PR Test Receipt — Pull Request Preflight skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does 'pr test receipt' determine which tests are relevant to my specific changes?

The agent compares your branch with the merge base, follows changed behavior into callers and tests, and uses your repository’s CI and contribution instructions to choose checks.

### Which AI agents or IDEs are compatible with this skill?

Use an Agensi-connected coding agent with access to your local Git checkout, files, and shell.

### Can I use this with non-Javascript projects, like Python or Go?

Yes. The agent uses the commands documented in your repository. The local environment needs the same tools you normally use to run those checks.

### What happens if I have uncommitted changes in my local directory when I run the check?

The receipt distinguishes staged, unstaged, and untracked changes. Checks run in a dirty checkout are attributed to that checkout.

### How does this help me debug the 'it works on my machine' problem when remote CI fails?

The receipt lists exact local commands, exit codes, and missing checks. Compare that evidence with CI logs to see what remains unverified.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
