Communitygithub.com

flow-proof

Record proof that a change works, such as a fix, a feature, or a before/after for a pull request, using the flow-capture base skill under strict honesty rules. A real recording against a real server, claims backed by passing assertions, the same spec on base and head rendered side by side, and provenance on every frame. Use when the user wants proof for a PR, "show that the fix works", "before and after", or evidence for a reviewer.

What is flow-proof?

flow-proof is a Claude Code agent skill that record proof that a change works, such as a fix, a feature, or a before/after for a pull request, using the flow-capture base skill under strict honesty rules. A real recording against a real server, claims backed by passing assertions, the same spec on base and head rendered side by side, and provenance on every frame. Use when the user wants proof for a PR, "show that the fix works", "before and after", or evidence for a reviewer.

Works with✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/M-Subhan1/skills/tree/HEAD/flow-proof

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Flow proof

Proof has to survive a sceptical reviewer. It uses flow-capture for the mechanics; this skill only adds what it takes for a recording to count as proof. Read flow-capture's SKILL.md first.

What counts as proof

A recording is proof only if all of these hold:

  1. It's a recording. Render with --mode video. Slides are never proof; they show endpoints that someone picked.
  2. The server is real. No route.fulfill, no mocked API, no data edited in the page. The header shows "N responses mocked or cached" when the app didn't serve a document, fetch or XHR. In proof that count should be 0. If it isn't, say why in the PR, for example a known cached response. The check doesn't cover WebSockets, EventSource, scripts or images, so don't mock those either.
  3. Every claim is asserted. Each caption that states a result is a flow.verify whose assertion checks that result. A claim without an assertion is decoration. Cut it or assert it.
  4. The code under test is the code shown. Provenance records the git state of the directory the spec runs from. Make sure the app server serves that same checkout, not a dev server running from a different worktree or branch. If the header shows "+ uncommitted changes" or "+ N untracked files", commit first or explain it in the PR.
  5. Nothing is staged by hand. No page.evaluate to set state and no steps out of order. Setup that the flow doesn't show, such as seeding data or signing in, happens before createFlowCapture, and the PR says what it was.

Before/after for a fix

  1. Write one flow spec that walks the user-visible path to the bug. It should end with a verify that fails on the base and passes on the head.
    • On the base, the bug makes the assertion fail, so record the base with that final verify replaced by a shot of the same state, labelled with what goes wrong ("Totals still show the old value").
    • Keep the step count identical on both sides; --compare syncs by step.
  2. Record on the base, the merge base of the branch with its target, and on the head. Use separate checkouts, each serving its own app server, with separate FLOW_OUT folders (<ticket>-before, <ticket>-after).
  3. Render:
    uv run stitch.py <ticket>-before --compare <ticket>-after --labels Before,After --gif
    
    The default --motion subtle is right for proof. Don't use --no-header; provenance is part of the evidence.
  4. Attach the MP4 and the summary.md screenshots to the PR. The MP4 is the evidence, because its header text is readable. The GIF is only a preview, since its provenance text shrinks to a few pixels. The summary's ✓ marks show which steps were asserted.
  5. Use a fresh FLOW_OUT for each side. A capture clears its own folder, so a failed base run can't be mixed with an old passing one.

Proof of a feature

A single recording on the head, ending in a verify of the outcome the feature promises. Render with --mode video.

Before sharing

  • Watch the whole video at normal speed. A reviewer will.
  • Check the header: the right branch and commit, 0 mocked responses, and the recording date.
  • Check that every result caption has a ✓.
  • If the video exposes something unrelated that is broken, mention it rather than re-recording around it.

Individual skills in this repo

This repo contains 1 individual skill — each has its own dedicated page.

Related Skills