/grill-and-verify:flow-promisesfrom grill-and-verify
Design a product flow before code exists: hi-fi mocks of each screen, a Quint model of how the user and the world move between them, and promises in the product's words, such as 'you can always skip onboarding', checked by TLC. Each broken promise comes back as a path through the mocks, and the flow changes until each promise holds. The mocks, model, and chart go into the repo as the seed for the build. Use for /flow-promises, or to settle the edge cases of a new feature, flow, or re-architecture before you build it.
Ships in grill-and-verify. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Design the flow before you build it. The mocks show what the user sees. A Quint model says how the user and the world move the flow between those screens. The promises say what the flow guarantees, in words that the reader can judge without the model. TLC checks each promise, and a broken promise comes back as a path that you play through the mocks.
The reader is the person who owns the product decision. The reader agrees to each promise and picks each fix.
Ask the reader for the goal, each way in, each way out, and what the user can lose. Then list what can happen without the user: a request that succeeds, fails, or hangs, a timer, another device or user, the app closing. Most edge cases come from this list. Settle the scope before you mock. On tradeoffs, put what the user experiences first, before what is easy to build.
Make a hi-fi mock of each screen the user can see, including loading, saving, error, empty, and offline. Use the project's design system, its components, and real copy. Put the frames on one design surface: a canvas in the design tool that the team uses, or, when it has none, one HTML page at mocks/index.html beside the flow. references/example/mocks/index.html shows the layout.
state() returns.controls() gives for it, in the same words.../FLOW.svg in an img that stays in view while the frames scroll. In a design tool, place FLOW.svg as an image beside the frames. The first check fills this place.Show the mocks to the reader before you write promises. A wrong screen costs less to fix now.
Read references/quint.md, and start from references/example/. The model has a variable for each thing the user sees, each stored value, and each request in flight. It has one action for each thing the user does and each thing the world does. Name each action as a sentence, such as YouPressSkip or TheSaveFails.
Keep the model as accurate as the flow. Never change the model to fit the chart: do not limit where a world action can happen, fold two actions into one, add a CONSTRAINT, or drop a variable only to bring the state count under the budget of /statechart. A model with thousands of states is fine. To draw it, merge for rendering only, as step 5 says.
Propose the promises that the flow needs, such as "you can skip onboarding from every screen" or "a save that ends after you leave never moves you". Show the reader the list before you check any of them: each promise in the reader's words, and what it rules out. Then stop and wait. The reader keeps, changes, or drops each one, and picks which ones to prove. Do not write a promise into the model or the config, or check it, until the reader picks it. Then write each picked promise in Quint with the reader's sentence above it, and list it in the config.
Never weaken a promise to make it hold. Only the reader changes a promise.
Run:
<skill dir>/scripts/check-docker FLOW.qnt [--config FILE] [--view FILE] [--out DIR]
check-docker runs the check inside the verify-toolbox container (build the image once with the verify-toolbox skill, ../verify-toolbox/build), with Quint, Java, and Pele already in the image. Give the flow, config, view, and --out as paths relative to the folder you run from. To run without Docker instead, use scripts/check; its first run downloads Quint and Pele, and needs the network and Java 21 or later on PATH (it uses mise when Java is older).
The command compiles the Quint model to TLA+ and runs /statechart on it. Then it renders the chart with Pele in the colors of /statechart, and writes FLOW.mmd and FLOW.svg beside the flow. An HTML surface picks up the new chart when you reload it. In a design tool, replace the chart image after each check. Never draw or edit the chart by hand. Follow /statechart for the view, end states, chart size, and the report. When /statechart draws no chart, or draws only the bug paths because the model has more than 500 states, keep the model as it is and draw a merged chart for the design surface:
-dump dot,actionlabels, so that it writes every state and step (<skill dir>/../statechart/scripts/tlc-docker runs TLC inside the toolbox container).scripts/render.mjs.The merged chart keeps every model state and step. It only draws fewer of them. Name each merge in the README and in the hand-off. The check and its report still run on the full model.
For each broken promise:
Repeat until each promise holds, or until the reader accepts a break. Write down each accepted break with its path.
Put these where the team keeps design docs, by default docs/flows/FLOW/:
FLOW.qnt, FLOW.cfg, and the viewFLOW.mmd and FLOW.svg from the last checkREADME.md with each promise in the reader's words and whether it holds, each design change that a path caused with that path, what the model leaves out, and the command that checks it againLeave out the rest of the --out folder.
Give the reader the design surface, and one line for each promise. For the build, each promise becomes an acceptance test, and each path that changed the design becomes a test that replays it, one step for each action. When the code exists, replay the paths as /statechart says. To keep a model in step with the code, use /create-formal-verification-skill.
references/example/mocks/index.html (opens in a new tab)references/example/onboarding.cfg (opens in a new tab)references/example/onboarding.mmd (opens in a new tab)references/example/onboarding.qnt (opens in a new tab)references/example/onboarding.svg (opens in a new tab)references/example/view.mts (opens in a new tab)references/quint.md (opens in a new tab)scripts/check (opens in a new tab)scripts/check-docker (opens in a new tab)scripts/render.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
9 skills in this plugin
/create-formal-verification-skillGenerate a project-local skill that formally verifies the code where a bug costs the most and tests reach the least, in any language, with whichever verification tool fits. Use for /create-formal-verification-skill, "model-check this race", "prove this invariant", or when concurrency, retries, state machines, parsers, or unsafe code need more than tests./create-verification-skillGenerate a project-local verification skill that drives your app the way a user does — any language, framework, or platform. Use for /create-verification-skill, "make a control skill for this repo", or when a project has no scripted way to prove UI/CLI/service behavior./Other plugins' skills for the same job
npx claudepluginhub aranw/grill-and-verify --plugin grill-and-verify