Prove Work Done
ASecurityProve that a PR's work is done before anyone merges it. Turns the PR's claims into a checklist, then backs each claim with evidence from running the real code: before/after probes with negative and positive controls, a mutation check for new tests, before/after screenshots for any change a person can see, each pinned to the head SHA and taken on the deployed test environment where possible. Reports exact command output, a not-proven section, and a merge verdict, and posts the evidence on the ...
- 45 stars
- 0 votes
- 0 copies
- 5 views
- Added December 1, 2026
Works with
Security analysis
100/100Pro scans all 3 files and shows the line behind each finding
npx -y skills add ericmjl/skills --skill prove-work-done --agent claude-codeAre you the author of Prove Work Done?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ericmjl-prove-work-done)---
name: prove-work-done
description: "Prove that a PR's work is done before anyone merges it. Turns the PR's claims into a checklist, then backs each claim with evidence from running the real code: before/after probes with negative and positive controls, a mutation check for new tests, before/after screenshots for any change a person can see, each pinned to the head SHA and taken on the deployed test environment where possible. Reports exact command output, a not-proven section, and a merge verdict, and posts the evidence on the PR when asked. CI green alone is not proof. Use when the user says 'prove to me that it works', 'prove the PR is working', 'prove the work is done', 'show me it working on preview, test, or prod', 'show me screenshots of it working', 'how do I know #N is working', 'are we ready to merge', or 'make sure things work on this PR'. Also run it before reporting a PR as done or merging one, when no proof exists for the current head. Does not review the diff for defects (pr-review) and does not merge (gh-cli)."
license: MIT
---
# Prove the work is done (PR)
A proof run for an open pull request. It turns what the PR says it does into a
short list of claims, backs each claim with evidence from running the real
code, states what is still unproven, and ends with a merge verdict.
## Usage
Use this skill when the user asks you to show that a PR works. Typical asks:
- "Prove to me that it works." "Prove to me the PR is working."
- "Prove to me that the work is done." "Can you prove it?"
- "Show me that it is working on preview." "…on test." "…on prod."
- "Show me screenshots of it working." "Use screenshots."
- "How do I know #N is working?" "Are we ready to merge?"
- "Make sure things work on this PR."
Also run it on your own initiative when you are about to report a PR as done,
or to merge one, and no proof exists for the current head.
Inputs you should accept:
- PR number, URL, or branch. Default: the PR for the current checkout.
- Optional target: preview, test, or prod.
- Optional evidence format, such as screenshots.
## Requirements
- `gh` authenticated (`gh auth status`)
- A checkout at the PR's head commit
- A way to run what changed: the test suite, the app, or the service
- For a deployed proof: the PR's preview URL or deploy access
- For screenshots: a browser you can drive, such as Playwright
- For an environment behind sign-in: a credential from the user
## What it does
Six steps: **pin the claims** → **pin the commit** → **plan the evidence**
→ **run it** → **report** → **post and clean up**.
One question shapes every step: *would this evidence look different if the
work were not done?* "Tests pass" and "CI is green" look the same on a fixed
PR and on a broken one, so they are not proof. Three kinds of evidence do
change when the work is missing, and the run collects them:
- A **before/after pair**: the same probe, run on the base and on the head.
- A **discriminating test**: one that goes red when you put the old code back.
- A **picture of the change**, taken from the real app on the base and again
on the head. Each claim that a person can see on a screen gets one.
Every claim ends the run with evidence that passes this test, or with a
line under "not proven".
## How it works
### Step 1 — Pin what "done" means
Write the claim list before you run anything. Take the claims from:
- The issue's done-when list, when it has one
- The PR body: each behavior it says it adds, fixes, or removes
- The acceptance criteria, each with its ID from the spec
- Review comments that ask for evidence
- When none of these exist: one line per behavior change, read from the diff
Keep one row per claim. Later steps fill in the evidence for each row.
For a slice of a larger item, say which slice. The issue is not done until
the last slice lands, so say so in the report.
### Step 2 — Pin the commit
Record the head SHA and the base branch. Label every piece of evidence with
the head SHA it was taken on. Evidence for an older commit does not cover
the commit that will merge.
```bash
gh pr view <PR> --json url,headRefOid,mergeable,mergeStateStatus,statusCheckRollup \
--jq '{url, headSha: .headRefOid[0:7], mergeable, mergeStateStatus,
checks: [.statusCheckRollup[]? | {name: (.name // .context),
status: (.status // .state), conclusion}]}'
git fetch origin <branch>
git rev-parse HEAD origin/<branch> # the two must match
git status --short # must print nothing
```
- CI must be green on that same SHA.
- Evidence that was taken before the head moved is stale. Take it again.
- Before a merge, read the checks once more. Never merge past a failing
check, even one that the user has not seen.
### Step 3 — Plan the evidence per claim
Evidence comes in levels. Plan the highest level that each claim can reach
before the merge, and report that level.
1. **Local checks pass**: typecheck, lint, unit tests. The same code can fail
once it is deployed, and a test can pass when it checks nothing.
2. **CI is green on the head SHA.** CI checks what it was written to check.
It rarely runs the path that a user takes.
3. **You run the changed path by hand** and observe its output. A local
environment differs from the deployed one.
4. **Before/after**: the same probe on the base and on the head. It is still
local.
5. **The PR's preview deployment**, with realistic data. Its config and
data can differ from prod.
6. **Production, after the merge**, on the data that would trigger the bug.
It comes too late to stop a bad merge. It closes the loop.
Aim for level 5. When the preview cannot reach a path, plan the level 6 check
and list that path under *not proven* until the check runs.
What proof looks like, by kind of change:
- **Fixes a bug.** Reproduce it on the base, then repeat the same steps on
the head. Replay the real failing input. Pull it from history instead of
typing it again. If you cannot reproduce it on the base, say so. The fix is
then unproven.
- **Adds or tightens a gate** (sign-in, validation, a permission). Make three
calls: anonymous, a wrong credential, and the right credential. Quote the
exact error for each. Show that the request is rejected before any data is
read.
- **Adds tests or a contract check.** List each new test beside the claim
that it proves. Then run the mutation check below.
- **Changes a stored value or a default.** Build a before/after table of the
stored value, with one row for each entry point that writes it.
- **Changes the UI, a layout, or copy.** Take before/after screenshots at the
widths that the requirement names, and give a table of DOM facts.
- **Claims no behavior change** (a refactor, a reorder). For each surface
that should not change, show a screenshot or an output hash that is
identical from base to head. For the intended change, show a before/after
pair.
- **Removes code, a table, or a symbol.** Search for every form of the name,
its string values, and its IDs, across every file type. The search must
find nothing that depends on it.
- **Is a docs or design slice.** Show the artifact on the branch, the PR open
and mergeable, and the slice list updated. Say plainly that the feature
itself is not done.
Commands for these are in
[references/evidence-recipes.md](references/evidence-recipes.md).
**Controls.** A claim that something is now blocked or fixed needs two checks
side by side:
- The **negative control**: the case that must still fail.
- The **positive control**: the case that must still pass.
Without the positive control, "everything is rejected" has two readings: the
gate works, or nothing works at all. Compare the result of the positive
control with the real environment. A count of zero rows, where prod has
thousands, means an empty test environment. Report that as a bug too.
**Pictures.** Screenshots are not only for UI changes. For each claim, ask:
*could a person see this difference on a screen?* When the answer is yes, take
a before/after pair in addition to the evidence for its kind above. The pair
adds to that evidence. It does not replace the three calls, the mutation
check, or the quoted output. Claims that qualify, and are easy to miss:
- **A gate.** Open the page as the role that is now blocked. The button, link,
or menu item must be gone. A click that is refused is not enough.
- **A bug fix with a visible symptom.** Show the wrong number, the error
banner, or the broken layout on the base. Show the right one on the head.
- **A changed default.** Show the control in its new position.
- **A changed order, filter, or result set.** Show the same list on both.
- **A removed or a renamed element.** Show where it was, and where it is now.
- **A rendered document.** An email, an invoice, or a PDF that the PR changes.
Render it on both, and compare the images.
The two captures must match in everything but the claim. The recipe lists what
to hold constant. When you cannot capture both sides, give the evidence that
you have and list the missing pair under *not proven*, with the reason.
**Mutation check.** A new test is evidence only if it fails on the old code.
1. Put the old implementation back. Keep the new tests. Run them, and record
which ones fail and what each failure message says.
2. Restore the new implementation. Break, one at a time, each thing that a
test guards. Each break must turn that one test red and name the part that
you broke.
3. Restore everything. Confirm a clean `git status`.
### Step 4 — Run it
- **Exact output.** Quote each command and its literal result: error strings,
counts, IDs, timings. "It worked" is not evidence.
- **The deployed environment.** Prefer the PR's preview to a local stand-in.
Then check that test and prod run the same code path, with only config
values that differ.
- **Look for a way first.** When the preview cannot reach a path (no real
sign-in, no payment), search for a way to reach it before you call it out
of reach. If there is none, list the path under *not proven*, with the
place where it can be proven.
- **The hardest real case.** Choose the data, the role, and the condition
that would expose the bug if it were still there: the row that holds the
leaked string, the strictest role, the tightest viewport.
- **Read-only on production.** Never write to prod to prove something.
Disclose every write to a disposable environment.
- **Screenshots.** Open each image before you show it, and confirm that it
shows the claim. When capture fails, say so and give the DOM facts instead.
- **Local green, CI red.** Do not call it a flake. Download the CI artifact
and look at what CI rendered.
- **Credentials.** Ask the user through the harness's secret-request tool,
one field per request (email, then password). Read the secret inside the
one command that uses it. A value that you paste into a tool argument stays
in the session log. When the only way to sign in is to type the value
through a tool, stop. Give the user the URL, and let them sign in.
- **A bug found is a result.** Report it, and fix it when it is in scope.
- **Never describe a run that did not happen.** "Could not run X" is a
result.
### Step 5 — Report
Lead with the verdict. Then give the evidence.
1. **Verdict.** One line: proven, partly proven, or not proven, and whether
the PR is ready to merge.
2. **What was proven.** One block per claim: a before/after table, or the
command with its literal output. Put images inline, each with a caption
that says which claim it proves.
3. **What the proof found.** Bugs and surprises, including ones outside the
PR.
4. **Not proven.** Each open item, with the reason and the place where it can
be proven. This section is required. When it is empty, say so.
5. **Cleanup.** What you stopped and removed, the `git status` result, and
any side effect left behind.
6. **Where it stands.** The PR URL, the head SHA, the CI state, what waits on
the reviewer, and a URL or a command that the reviewer can run to check
it themselves.
A filled-in example is in
[references/report-example.md](references/report-example.md).
### Step 6 — Post it, then clean up
- **Put the proof on the PR.** When the user asks, post the report as a
comment on the PR, headed with the head SHA. When the proof is long or
visual and the user has not asked, offer it in one line.
- **Images belong in the comment.** Attach them the way a person does (the
upload in the comment box), or commit them where the repo keeps evidence
and embed a raw URL that is pinned to the SHA. Do not add a test or commit
to an asset branch only to carry a screenshot. Follow the repo's rules for
evidence and image formats.
- **Try a second route.** When the first way to deliver fails (a locked
screen, an SSO wall), find a second way before you ask the user to do
anything.
- **Leave nothing running.** Remove probe scripts, stop local servers, close
tabs, restore generated files, delete credential files, and sign out.
Finish with a clean `git status`. Disclose anything that you could not
undo, such as a live session or a changed local env file.
## Rules
- CI green is necessary and never sufficient.
- Every claim gets its own evidence, or its own line under "not proven".
- Label every piece of evidence with the SHA it was taken on.
- Quote output. Do not paraphrase results.
- Every fix has a positive control. Every new test fails on the old code.
- If a person can see the difference, show it: a before/after pair, captured
the same way on both sides.
- Look at every screenshot before you show it.
- Stay read-only on production.
- The proof comes before the merge. If the user says "merge" and no proof
exists for the current head, show the proof first, then merge. Once the
user has accepted proof for this exact head, merging follows the `gh-cli`
skill.
- Never merge past a failing check on the head.
- Do not change the repo in order to deliver evidence.
## When proof was rejected
Each row is a kind of proof that was sent back, and the rule that it produced.
| Proof that was shown | What was missing | Do this instead |
| ------------------------------------ | ----------------------------- | ---------------------------------------------- |
| A local run of the PR's code | The deployed test environment | Prove on the preview |
| "All checks passed" | The user's path, run | Run the behavior and quote its output |
| Screenshots in chat only | A record on the PR | Post the report as a PR comment when asked |
| A new test that carries a screenshot | No repo change was needed | Put the image in the comment |
| DOM facts with no images | Something to look at | Show before/after screenshots |
| A report that ends with open items | A verdict | Say whether it is proven and merge-ready |
| "Preview cannot test that" | A search for a way | Look for a way; else list it as not proven |
| Signing in for the user repeatedly | The user's own eyes | Give the user a URL to check it themselves |
| Email and password in one request | One field per request | Ask for each field separately |
| PNGs in a repo that wants WebP | The repo's image rule | Read the repo's rules for evidence and formats |
## Related skills
- `issue-pr-triage` — ends at an open PR. Run this skill on that PR before
you report it as done.
- `pr-review` — reads the diff for defects. This skill runs the code.
- `gh-cli` — the merge policy, once the user has accepted the proof.
- `debug-github-ci` — when CI is red on the head.
Files in this skill
- SKILL.md
- references/evidence-recipes.md
- references/report-example.md
Attribution
Related skills
View all in code-quality →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.