/grill-and-verify:grill-and-verifyfrom grill-and-verify
Task-preparation pipeline that stress-tests a plan or feature idea, then turns the settled understanding into a formal model, checks it with a model checker, draws the state flow with bug paths, and puts it all on a live visual board. Use for /grill-and-verify, when preparing a task or plan of action, or when a feature design or re-architecture needs to be verified before building.
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.
None: SKILL.md is the whole skill.
Turn a task, plan, or feature idea into a verified design you can build from: every decision interrogated, every promise the system makes checked against a formal model, every broken promise visible as a path through the states, and the whole thing on a living board you can watch take shape.
The pipeline has six stages. Each stage ends at a decision that belongs to the user; do not start the next stage until the current one is settled. The formal check comes before generating reusable project-local skills. Skill generation is the final work stage, and only happens after the verification has produced a useful result and behaved as intended.
grill-me ──▶ model & check ──▶ statechart ──▶ board ──▶ validate ──▶ package skills + hand off
(settle the (formal model (diagram + (living (useful, (only after validation; verified plan,
decisions) and promises) bug paths) board) trustworthy?) skills are last) tests, next steps)
Each stage names a sibling skill in this plugin. Load and follow its
SKILL.md; the paths below are relative to this skill's directory. Load only
the skill for the active stage, just before entering it; do not preload every
sibling skill.
As soon as the task scope is clear, create or identify one concise
WORKFLOW_STATUS.md beside the workflow's working artifacts. For a pre-code
flow, keep it with the flow seed; for existing code, keep it in the temporary
model/report workspace. Do not turn it into a transcript or commit it by
default. Keep detailed models, charts, and checker output in their own files
and reference those paths from the status file.
Use the six stage names and announce the current phase when entering it and
when it changes. At a phase boundary, tell the user only: what completed, the
gate result, the next phase/action, and anything waiting on them. Use statuses
IN PROGRESS, WAITING FOR USER, BLOCKED, DONE, or SKIPPED. Do not emit
repetitive progress narration for every tool call. Do not move to the next
phase until the current phase's gate is satisfied.
Keep WORKFLOW_STATUS.md to a compact current snapshot, not a running diary.
It should record the one-sentence scope, current phase/status, settled
user decisions, promises and their current status, unresolved findings or
user decisions, artifact paths, and one concrete next action. Preserve the
user's exact promise wording, but link to full reports instead of copying
them. Update it after meaningful decisions, check results, and phase changes.
If the context is getting large, save this checkpoint first, then use the
harness's compaction/resume mechanism if available. On resume, read this file
and the referenced active artifacts; do not reconstruct the whole history or
rerun completed checks without a reason. Never reduce verification coverage
or omit an important assumption just to save context.
The model checker runs inside the verify-toolbox Docker container. Before
the first check, confirm the image exists:
docker image inspect verify-toolbox:latest >/dev/null 2>&1 \
|| ../verify-toolbox/build
Load and follow ../grill-me/SKILL.md. Interview the user in rounds until
the design tree's frontier is empty. During the rounds, two questions always
belong on the tree for this pipeline:
Keep the settled decisions and promises in a running list — they are the input to stage 2.
Pick the branch by whether the code exists:
../flow-promises/SKILL.md. Its Quint model, mocks, and promises
ARE the formal verification model. Run its check with
scripts/check-docker.../create-formal-verification-skill/SKILL.md, but do not generate its
project-local skill yet. Build and run the formal verification in a
temporary working area first. TLA+ is the default for orderings and state
machines. Package the verified check as a reusable project-local skill only
in stage 6.Both branches end the same way: a model, a config, and rules in the user's words — each rule either holds or breaks, with a counterexample path for every break. Never weaken a rule to make it hold; the user changes promises, not you.
Load and follow ../statechart/SKILL.md. Run its check with
scripts/statechart-docker (or it already ran as part of flow-promises).
You get chart.mmd + report.md: the state flow as the user reads it, each
state that breaks a rule marked, and the shortest path to each break. Show
the chart as a Mermaid block in the conversation, and render it to SVG with
scripts/render-docker for the board.
If this harness has a live-visual-board skill (pi: show-me), load and
follow it, and update the board after every check round, not only at the
end. The board shows, from top to bottom:
Without such a skill, present the same five sections inline in the conversation and write them to a markdown file beside the design seed.
Before creating reusable skills, make sure the formal verification did what was intended:
create-formal-verification-skill requires).A useful result includes either an actionable finding that changed the design or code, or confirmation of an important promise with a check that has shown it can fail when that promise is violated. If the check did not run, did not catch the intended break, or cannot be trusted to represent the system, fix that first; do not package a reusable skill yet.
This is the final work stage. Only package skills for checks that passed the stage 5 gate, and only where a reusable skill applies:
../create-formal-verification-skill/SKILL.md to turn the already validated
property and check into a project-local skill. Keep the target and promise
consistent with the verified result, and prove the generated skill against
a deliberately broken variant as its instructions require.../create-verification-skill/SKILL.md when a
reusable, user-facing app-driving check is useful. It must be run end to
end and leave evidence, as that skill requires. Do not create it for a
pre-code design; defer it until the app can actually be driven.Then hand off in plain words: what was verified, with which tool and bounds,
what the model leaves out, the result of the validation gate, any skills
created (or why not), and the command that re-checks the formal result. Each
promise becomes an acceptance test; each path that changed the design
becomes a test that replays it, one step per action. After later changes
that skip the checks, maintain-formal-verification-skill and
maintain-verification-skill bring the verification back in line and say
whether each failure is drift or a bug.
Enter at any stage: grill-me alone to stress-test thinking, statechart alone to show a bug as a path through states, flow-promises alone to settle edge cases before a build. This skill is the full preparation loop; each piece stands on its own.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
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./flow-promisesDesign 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./grill-meGrill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases (/grill-me, grill me, stress-test this plan)./maintain-formal-verification-skillBring a project's formal verification back in line with the code after the code changes: find the commits that touched verified code, update the model, harness, or properties to describe the code as it is now, rerun, and say whether each failure is drift in the verification or a bug in the code. Use for /maintain-formal-verification-skill, "is the model still true to the code", or after merges and refactors that touched verified code without rechecking it./maintain-verification-skillPeriodic pass that keeps a project's verification skill and feature map honest: parallel source readers per feature, one live session driving every feature, at most one PR of proven corrections. Use for /maintain-verification-skill or "audit the verify skill".npx claudepluginhub aranw/grill-and-verify --plugin grill-and-verify