Run typecheck, tests, lint, and browser or UI verification. Triggers "proof of work", "is this review-ready", "prove it is green", "QA this in the browser", "smoke-test localhost", or "use Browsee".
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Proof Of Work?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/darkroomengineering-proof-of-work)
---
name: proof-of-work
description: Run typecheck, tests, lint, and browser or UI verification. Triggers "proof of work", "is this review-ready", "prove it is green", "QA this in the browser", "smoke-test localhost", or "use Browsee".
---
# Proof of Work
The Amdahl-shrink move from the Orchestration Tax: human review is the serial bottleneck, so don't spend it confirming what a machine can verify. An agent's diff is **review-ready** only when the machine-verifiable battery is green — types, tests, lint (and a screenshot for UI). What a machine can prove shouldn't cost a human's attention.
For browser QA, read [the Browsee guide](references/browsee.md) when Browsee is installed or connected. It also covers authorized browser workflows such as signed-in tabs. For a browser-only request, use the guide directly and run the checks relevant to the request.
## The gate
Run the battery on the current working tree:
```bash
PROOF_RUNNER="${CODEX_HOME:-$HOME/.codex}/darkroom/source/src/scripts/proof.ts"
[ -f "$PROOF_RUNNER" ] || PROOF_RUNNER="$HOME/.claude/src/scripts/proof.ts"
bun "$PROOF_RUNNER"
```
This is the portable installed runner — it works in any repo. (`bun run proof` is a shortcut that only exists inside the cc-settings repo itself; don't reach for it in a consumer project.) It detects `typecheck` / `test` / `lint` from the project's `package.json`, runs them cheapest-first, and prints one verdict:
- exit 0 → `review-ready ✓`
- exit 1 → `NOT review-ready ✗` — fix the failing gate before a human looks
Projects can opt into **advisory** probes by depending on the tool — the gate then runs the project's pinned binary: **react-doctor** (React render/quality score, telemetry off) and/or **deslop** (framework-agnostic cross-file dead-code count). Advisory results are reported but never flip the verdict — deterministic signals alongside the hard gates, not blockers. Silent for projects that don't depend on them.
For browser UI changes, attach a screenshot as visual proof. Use Browsee MCP in the calling session when connected and appropriate. The Claude `tester` agent can use its pinned Chrome DevTools MCP for isolated browser runs.
### App verification skill
A web project can carry its own verification skill at
`.claude/skills/verify-app/SKILL.md`. It gives the launch command, URL and
readiness signal, a doctor check, a feature map with one entry per key flow
(route, steps, expected result), where evidence goes, and how to clean up.
- **It exists:** for a UI or feature change, use it instead of a lone
screenshot. Run its Doctor, Launch, then drive every feature-map flow the
diff touches, save its Evidence, and run its Cleanup even after a failure.
Report each flow as passed, failed, or not run, with the evidence path.
- **It does not exist:** say so, and offer to generate one. With a yes, fill
`references/verify-app-template.md` from the project's `package.json`
scripts and its routes (`app/**/page.tsx` for Next.js, `app/routes` for
React Router), write it to `.claude/skills/verify-app/SKILL.md`, and run it
once before relying on it. Until then, fall back to the screenshot.
- **Upkeep:** when a diff adds or changes a route or a key flow, update the
feature map in the same PR and drive the changed entry once. A map that lags
the app proves the old app.
What it proves is narrow: the mapped flows work in a local build, in the
browser it drove, with local data. It says nothing about unmapped routes,
production data or auth, third-party services, or how the page looks at other
breakpoints. A generated skill is written from reading code, so its steps stay
unconfirmed until a run passes them. Say which flows ran and which did not.
For a native macOS app, run and capture it on a virtual display with the `offscreen` tool, never by driving the user's real cursor, keyboard, or focus. Read `references/offscreen.md` first; it gives the tool's installed path.
## Standalone Codex semantic probe
Follow the [native agent workflow](../README.md#native-agent-workflow) to create a fresh read-only `reviewer`.
Treat findings as advisory beside the mechanical verdict and skip the Claude
bridge branch below.
For browser proof, follow the [Codex MCP guidance](../README.md#mcp-servers) and use Browsee as described above when
it fits the task. Use native screenshot tooling when appropriate and report
what remains unverified.
## Advisory: cross-model semantic probe (when the Codex bridge is available)
The mechanical battery proves the diff is *self-consistent* — it compiles, tests pass, lint is clean. It cannot prove the diff is *correct*: a bug that typechecks and passes the tests you wrote sails straight through. When the Codex bridge is available, add a semantic probe from a different model family on top of the mechanical gate:
```bash
bun "$HOME/.claude/src/scripts/codex-run.ts" review
```
Treat it exactly like react-doctor and deslop: **advisory — reported alongside the verdict, never flips it.** A green mechanical gate stays review-ready even if Codex raises a finding; surface the finding for the human to weigh, don't block on it. The bridge is gated and fails open — silent when Codex isn't installed, authed, or has quota.
Keep it **out of the proof runner itself.** That gate is cheapest-first and runs constantly; a remote model call would make every proof slow. Run it as the one cross-model review per PR, `/land`, or direct push to the default branch (see `CLAUDE-FULL.md` "Claude and Codex routing"), or when the user asks. Do not repeat it on each diff-producing task, and skip it if a Codex review already covered this diff.
## The contract
- A diff-producing agent (implementer, maestro, deslopper) **attaches a proof report before handing back**. "Done" without green proof is not done.
- The human/reviewer spends the lock on judgment — architecture, intent, edge cases — not on re-running what the gate already proved.
- Pairs with the review-queue: backpressure (`the review-queue branch of tool-cadence.ts`) limits how many *unproven* diffs pile up; this gate makes each one cheaper to close.
## When NOT to gate
Pure-research or read-only agent output (explore) has no diff to prove — proof-of-work is for changes, not findings.