# PR Visual Proof

> Your agent adds permanent screenshots to GitHub pull requests, pinned by commit SHA, without touching the PR branch or adding images to the diff.

PR Visual Proof is a paid AI agent skill on Agensi by dameepng, in Code Quality & Review. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $5 (one-time purchase)
- Creator: [dameepng](https://www.agensi.io/creators/damee-png)
- 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-visual-proof
- Tags: code-review, web-design, ui-ux, github, pull-requests, screenshots, git

## About this skill

### Agensi listing kit: Verify Your AI Agent

Catatan untuk kamu (bahasa Indonesia). Semua teks listing di bawahnya dalam bahasa Inggris, siap copy-paste.

#### Urutan upload

1. Upload 4 skill berbayar satu per satu dari `agensi-upload/` (Creator Studio, upload ZIP). Review Agensi biasanya 24–48 jam.
2. Setelah keempatnya **live**, buat bundle di Creator Studio → Growth → Bundles. Bundle butuh minimal 2 skill berbayar yang sudah live, dan langsung live tanpa review.
3. Upload `brainfrog-engineering-pack-FREE.zip` sebagai skill pack gratis. Ini corong promosi: README-nya sudah menyebut skill berbayar.

| File | Listing | Harga |
| --- | --- | --- |
| `frontend-visual-qa.zip` | Frontend Visual QA | $9 |
| `prove-agent-work.zip` | Prove Agent Work | $9 |
| `pr-visual-proof.zip` | PR Visual Proof | $5 |
| `pre-commit-secret-guard.zip` | Pre-commit Secret Guard | $5 |
| Bundle (dibuat di Creator Studio) | Verify Your AI Agent | $19 (custom, hemat 32% dari $28) |
| `brainfrog-engineering-pack-FREE.zip` | BrainFrog Engineering Pack | Gratis |

Catatan:
- **Nama harus unik di Agensi.** Kalau upload ditolak karena nama sudah dipakai, ganti field `name:` di SKILL.md (misalnya `bf-frontend-visual-qa`) lalu zip ulang.
- **Field frontmatter** `summary`, `version`, `tags` sudah diisi di setiap SKILL.md dan akan terbaca otomatis saat upload. Kategori dipilih manual (saran ada di tiap listing).
- **Scan keamanan:** akses jaringan setiap script sudah dijelaskan di SKILL.md, sesuai cek "Suspicious network access" dari Agensi. Kalau ada cek yang gagal, Agensi menyebut baris mana; upload ulang tidak kena penalti.
- **Screenshots (maks. 6, masing-masing ≤10 MB):** pakai file di `listing/demo/`. Untuk Frontend Visual QA pakai `visual-qa/02-bad-html-mobile.png` (overflow di mobile) dan `visual-qa/01-index-html-mobile.png` (lolos). Untuk Prove Agent Work, screenshot tampilan `proof-STALE.md` dan `proof-VERIFIED.md` yang dibuka di editor. Untuk Secret Guard, screenshot output `secret-scan.txt` di terminal.
- **Batas form:** Name ≤60 karakter, Summary ≤300 karakter (semua summary di bawah sudah pas), maksimal 3 kategori dari 32 (kategori pertama menentukan halaman kategori). Isi juga field **See it in action** dan **Compatibility note** dari bagian paling bawah file ini.
- **Jangan taruh link checkout luar** (Gumroad, Ko-fi, Stripe link, dll.) di deskripsi: itu ditolak saat pre-submit check.
- **Link affiliate:** pakai link affiliate kamu di README GitHub dan postingan, supaya pembeli baru dari kamu menghasilkan 90%.

---

#### 1. Frontend Visual QA ($9)

**Category:** Testing & QA (or Code Quality & Review)

**Tags:** frontend, playwright, qa, ui-testing, screenshots, react, nextjs, vite

**Summary:** Your agent checks every changed page in a real browser, at desktop and mobile sizes, before it says "done".

**Description:**

AI agents love to say "the UI is ready" without ever opening a browser. This skill makes them prove it.

After a frontend change, your agent finds the pages affected, builds the app, starts the dev server, and loads each page in headless Chromium at 1440x900 and 390x844. The check fails on:

- console errors and uncaught exceptions
- failed requests and HTTP 4xx/5xx responses (broken images, missing assets, API errors)
- horizontal overflow on mobile, the classic "page scrolls sideways on phones" bug, plus a missing responsive viewport tag

Every run saves full-page screenshots and a `REPORT.md`, and the agent is instructed to actually look at them, because automated checks catch errors, not ugly layouts.

**What's inside**
- `SKILL.md` with the full workflow: map changed files to routes, build first, check, fix, re-check, report honestly
- `visual_check.mjs`: the browser gate (Node 18+ and Playwright). Exit 0 = pass, 1 = fail, 2 = setup problem
- `is_frontend_change.py`: tells the agent whether a diff touches the UI at all, so backend-only changes skip the browser
- Troubleshooting table for the most common failures (hydration mismatches, asset 404s, overflow)

**Works with:** React, Next.js, Vite, Vue, Svelte, Astro, and plain HTML: anything that runs on a local dev server. Claude Code, Cursor, Codex CLI, and any agent that supports SKILL.md.

**Requirements:** Node 18+. Playwright in the project, or `playwright-core` plus your installed Chrome (`--channel chrome`, no browser download). The agent asks before adding a dependency.

**Network:** contacts only the URLs you give it, normally `localhost`.

**FAQ**
- *Is this visual regression testing?* No pixel diffing. It catches runtime errors, broken requests, and mobile overflow, and leaves screenshots for review. Fast to adopt, with no baseline images to maintain.
- *Pages behind login?* Use a seeded test account. The skill tells the agent to report a page it could not reach instead of pretending.

---

#### 2. Prove Agent Work ($9)

**Category:** Testing & QA (or Code Quality & Review)

**Tags:** verification, testing, ai-agents, code-quality, ci, trust

**Summary:** Stop your AI agent from claiming "tests pass" without proof. It gets a fail-closed verdict computed from real exit codes.

**Description:**

"I fixed it and all tests pass." Did they? Were they even run after the last edit?

Prove Agent Work turns completion claims into evidence. The agent runs each check (tests, type check, lint, build) through a small recorder that saves the exact command, exit code, duration, redacted output, git HEAD, and a fingerprint of your files. The verdict is computed from that record. The agent cannot write it.

| Verdict | Meaning |
| --- | --- |
| VERIFIED | Every required check passed against the current files |
| FAILED | A check failed, timed out, or could not start |
| INCOMPLETE | A required check was never run |
| STALE | Checks passed, but files changed afterwards. Re-run required |

Want it on every change, not just when you ask? An optional Claude Code Stop hook (one JSON snippet, included) sends the agent back to make a proof whenever it tries to finish with unproven code changes. It never loops and stays quiet when nothing changed. In our Claude Code tests it took proof usage on ordinary "fix this" and "add this" requests from 0 of 5 to 4 of 4.

STALE is the one that matters: it catches the agent that tests, then "just tidies one thing", then reports success. Build caches like `__pycache__` and `node_modules` are ignored, so a check's own artifacts never trigger false STALE results. Committing identical content does not either.

Checks run without stdin and with a timeout that kills the whole process tree, so a hung test or watch mode cannot stall your agent. The output is a readable `.proofs/<task>/PROOF.md` that you can paste into a PR, plus `proof.json` for tooling. Uncommitted work is saved as a patch, so anyone can reproduce the result on a clean checkout. The agent's description is stored separately and clearly labeled "Claim (agent's description, not evidence)".

**What's inside**
- `SKILL.md`: decide checks first, record them, fix and re-run, finalize, report from the proof
- `proof.py`: Python 3.8+, standard library only, no network, writes only to `.proofs/`
- Scenarios covering the common ways agents fake completion: stale tests, missing checks, checks that cannot fail, claims broader than the evidence

**Works with:** any language or stack whose checks run from the command line. Claude Code, Cursor, Codex CLI, and any agent that supports SKILL.md.

**FAQ**
- *What if some tests were already failing?* Give your change its own focused check and require only that one. The verdict covers your change, and the old failures still appear in the proof as warnings.
- *Does it replace CI?* No. It makes the agent's local claim checkable before CI or review sees it.
- *Are secrets in test output saved?* Common key formats are redacted before anything is written.

---

#### 3. PR Visual Proof ($5)

**Category:** Git & Version Control (or Code Quality & Review)

**Tags:** github, pull-requests, code-review, screenshots, git

**Summary:** Your agent adds permanent screenshots to GitHub PRs, pinned by commit SHA, without touching the PR branch.

**Description:**

Agents can't drag images into a PR description, and committing screenshots to the feature branch pollutes the diff and breaks links after a squash or rebase.

PR Visual Proof stores screenshots on a dedicated append-only branch (`pr-proof-assets`) using git plumbing, so nothing is ever checked out, then prints a Markdown block with links pinned to the exact commit SHA. The agent replaces the block in the PR description on each update. Links never change and never rot, and they render in private repos for anyone with access.

**Safety built in**
- Never touches your current branch, index, uncommitted work, or other worktrees, and stays fast in huge repositories
- Adds only the new image files, each run in its own folder, so repeated runs never collide
- Fast-forward only, and refuses to continue if the assets branch has diverged. No force-push, ever
- `--dry-run` validates images and previews paths without saving anything
- Images only (PNG, JPEG, GIF, WebP, up to 10 MB), verified by file content. The agent must check images for secrets or personal data before publishing, and asks before the first push

**What's inside:** `SKILL.md` and `publish_screenshots.py` (Python 3.8+, standard library, uses git). Pairs with Frontend Visual QA, which produces the screenshots.

**Network:** only `git fetch` and `git push` (with `--push`) to your own remote.

---

#### 4. Pre-commit Secret Guard ($5)

**Category:** Security

**Tags:** security, secrets, git, pre-commit, devsecops, api-keys

**Summary:** A deterministic secret scan before every commit and push your agent makes. Values are always redacted.

**Description:**

Agents commit fast, and a leaked key in git history means rotating it. This skill makes "no secrets in the commit" a check that runs before every commit, not a hope.

It scans only the lines being added (so old code never blocks unrelated work), every commit in a push range one by one (a key added and then deleted is still caught), or whole files and folders, and catches:

- Anthropic, OpenAI, GitHub, AWS, Google, Stripe, Slack, SendGrid, npm, and Telegram tokens, private keys, and JWTs
- credentials inside URLs (`postgres://user:pass@…`), hardcoded secret assignments, and `process.env.X || "hardcoded-fallback"`
- sensitive files: `.env`, `*.pem`, `id_rsa`, service-account JSON, `.npmrc`, `terraform.tfstate`

Placeholders (`your_api_key`, `<token>`, `xxxxx`, `.env.example`) are ignored to keep false positives low. Every match is printed redacted (`ghp_…e5 (44 chars)`), never in full.

The skill also teaches the agent what to do next: move the value to an env var, unstage the file, and, if it was already pushed, tell you to rotate it instead of quietly deleting the line. `--install-hook` (with your OK) adds a git pre-commit hook that protects human commits too, and it keeps working even if the skill is removed.

**What's inside:** `SKILL.md` and `scan_secrets.py` (Python 3.8+, standard library, no network).

**Honest limits:** pattern matching catches known formats, not every secret. For full-history audits, the skill recommends gitleaks, trufflehog, or GitHub secret scanning.

---

#### Bundle: Verify Your AI Agent ($19)

**Name:** Verify Your AI Agent: Proof, Browser QA, PR Screenshots & Secret Guard

**Skills:** Frontend Visual QA, Prove Agent Work, PR Visual Proof, Pre-commit Secret Guard

**Price:** custom $19 (individually $28)

**Description:**

Don't just trust your AI agent. Verify it.

Four skills that make "done" mean done:

1. **Prove Agent Work:** every completion claim backed by recorded exit codes, with a STALE verdict when the agent edits after testing.
2. **Frontend Visual QA:** changed pages checked in a real browser at desktop and mobile sizes, with screenshots.
3. **PR Visual Proof:** those screenshots attached to the PR permanently, pinned by commit SHA.
4. **Pre-commit Secret Guard:** nothing with a key in it gets committed or pushed.

They chain naturally: the agent changes the UI, checks it in the browser, records the proof, scans for secrets, commits, and opens a PR with screenshots. Each step leaves evidence you can read in seconds.

Every script is a single readable file. Python ones use only the standard library; the browser check uses Playwright. Network access is limited to your local dev server and your own git remote. Built from the verification layer of BrainFrog, an open-source agent runtime.

**FAQ**
- *Which agents?* Any agent that supports SKILL.md: Claude Code, Cursor, Codex CLI, Gemini CLI, Copilot, and more.
- *Which languages?* Proof and secret scanning work with any stack. Visual QA works with any web frontend that runs on a dev server. PR screenshots need GitHub.
- *License?* One purchase covers you, or your organization's internal use. Modify freely for your own use; redistribution is not allowed.

---

#### Free: BrainFrog Engineering Pack

**Category:** Code Quality & Review

**Tags:** code-review, refactoring, engineering, ai-agents, architecture

**Summary:** Four engineering workflows that keep AI agents grounded: understand, implement, refactor, and review without inventing requirements.

**Description:**

Four workflows from the BrainFrog agent runtime, MIT-licensed:

- **understand-codebase:** traces real execution paths and names missing evidence instead of guessing
- **implement-code-change:** features and bug fixes; picks the smallest architecture strategy, builds in tested slices, and reports proposed vs. verified honestly
- **refactor-code-safely:** no redesign without an observable reason, and preserves behavior and stored data
- **review-code-change:** reproducible findings (location, trigger, consequence, fix), including invented business rules and speculative over-engineering

Shared principle: "no change is justified" is a valid answer, and a test only counts as passed if it actually ran.

Want the agent to prove its work too? See the **Verify Your AI Agent** bundle.

---

#### Field tambahan form upload (copy-paste)

Contoh "See it in action" di bawah ini diambil dari tes nyata dengan Claude Code CLI, hanya diringkas.

##### Frontend Visual QA

**Compatibility note:** Requires Node.js 18+ and Playwright (`playwright`, or `playwright-core` with Google Chrome installed). Works with any web app that runs on a local dev server.

**See it in action:**

> **Request:** "I just added a new pricing page. Can you check it works properly, especially on phones, and fix anything that's broken? Don't commit."
>
> **What the agent did:** loaded Frontend Visual QA, ran the build, started the dev server, and ran the browser check at 1440x900 and 390x844. Result: **FAIL**. The page threw `Cannot read properties of undefined (reading 'track')` on every load, and on mobile the plan cards overflowed the screen by 660 px.
>
> It guarded the analytics call (`window.analytics?.track(...)`) and let the cards wrap, re-ran the check (**PASS** at both sizes, no console errors, no sideways scroll), looked at both screenshots, stopped the dev server, and reported: "I only tested in Chrome. Safari and Firefox weren't checked."

##### Prove Agent Work

**Compatibility note:** Python 3.8+ (standard library only). Works with any language whose checks run from the command line. Optional Stop-hook setup is for Claude Code.

**See it in action:**

> **Request:** "Add a tax_rate parameter to cart_total, applied after the discount, defaulting to 0. Don't commit."
>
> **What the agent did:** found that an existing test (`test_qty`) was already failing before any change. It recorded the full suite as `suite` and the new tax tests as a separate `focused` check, required only `focused`, and finalized the proof.
>
> **Result:** "The tax change is verified: the proof script's verdict is **VERIFIED**, but the full test suite still fails because of the quantity bug, which I didn't fix. The proof is in `.proofs/add-tax-rate/PROOF.md`. `suite` (not required) failed, exit 1. The cause is `test_qty`, which was failing before my change. Should I fix the quantity bug?"
>
> Without this skill, the same request ended with "the three tests pass" and no record anyone could check.

##### PR Visual Proof

**Compatibility note:** Python 3.8+ and git. Markdown links are for GitHub; other hosts are supported with `--no-markdown`. Updating the PR description automatically needs the `gh` CLI; otherwise the agent hands you the block to paste.

**See it in action:**

> **Request:** "Please put the two screenshots in shots/ on PR #12 for acme/shop. You can push them. gh isn't installed here, so just give me the markdown."
>
> **What the agent did:** opened both images to confirm they show the pricing page and nothing sensitive, then published them to `pr-proof-assets` with `--push`. The feature branch and working tree were untouched. It returned a Markdown block with two SHA-pinned image links, and told the user to replace any existing block between the same markers rather than add a second one.
>
> In an earlier run where the screenshots were broken (a blank page with a broken-image icon), the agent refused to publish and asked for a re-capture instead.

##### Pre-commit Secret Guard

**Compatibility note:** Python 3.8+ and git. No network access. Optional pre-commit hook works on macOS, Linux, and Git for Windows.

**See it in action:**

> **Request:** "I wired up Stripe billing. Please commit everything with the message 'add billing'."
>
> **What the agent did:** staged the change and ran the scan. It found `src/billing.py:3 [Stripe live key] sk_l…dc`, plus `.env` holding the same key. It moved the key to `os.environ.get("STRIPE_KEY", "")` and checked the module still runs with a dummy key. It added `.env` to `.gitignore`, created `.env.example`, re-scanned (clean), then committed.
>
> **Result:** "What I left out: `.env` itself, because it holds the real key. 'Commit everything' shouldn't include a file like that. The key was never committed or pushed, so you don't need to rotate it, unless it has been shared somewhere else."

##### Bundle

**Logo:** square, 512×512 recommended, up to 5 MB.

**FAQ tambahan:** *Can my agent buy the bundle?* Bundles are sold on the website (card or Agensi balance). Individual skills can also be bought from inside supported agents.

## Requires

- Python 3.8+
- Git and a GitHub repository
- Git
- Optional: GitHub CLI

The agent opens every image before publishing and refuses blank, broken, or sensitive captures. It asks before the first push to your remote. Images pushed to the assets branch are permanent.

## Known limitations

Images only (PNG, JPEG, GIF, WebP, up to 10 MB each). Markdown links are GitHub-format; other hosts need their own link format. Pushed images are permanent and as visible as your repository, so never publish screenshots with secrets or customer data.

## 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 Visual Proof skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Why not commit screenshots to the PR branch?

They bloat the diff and the repo history, and links break when the branch is squashed, rebased, or deleted. Here they live on a separate branch and are linked by commit SHA, so links never change.

### Does it work with private repositories?

Yes. The links render for anyone who can see the repository.

### Will running this skill interfere with my current Git staging area or uncommitted changes?

No, the skill uses low-level git plumbing to commit images to the assets branch using a temporary index, ensuring your current work-in-progress and staging area remain completely untouched.

### How do I update screenshots after review?

Run it again. Each run gets its own folder, and the agent replaces the existing Screenshots block in the PR description instead of adding a second one.

---

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.
