Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

prove-work-done

БесплатноБез исполняемых скриптовНе проверен

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…

ericmjlот ericmjl★ 45 звёзд на GitHub

Об этом скилле

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.

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 unp
Полный SKILL.md на GitHub

Установить prove-work-done в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/evidence-recipes.mdreferences/report-example.md

FAQ

Что делает скилл prove-work-done?

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

Как установить скилл prove-work-done?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл prove-work-done запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить prove-work-done с