Skip to content
Testing
Command

/workflow

Build a feature as a workflow, not an agentic loop — design stages/signals/budgets with the user, front-load contract + invariants, author with polygen, declare effects, prove the anti-loop rules with check-effects, and stand it up under polyrun.

From plugin
polygraph
166 skills5 agents6 commands
> /plugin marketplace add cognitive-fab/polygraph
> /plugin install polygraph@polygraph

Command definition

workflow.md
description: Build a feature as a workflow, not an agentic loop — design stages/signals/budgets with the user, front-load contract + invariants, author with polygen, declare effects, prove the anti-loop rules with check-effects, and stand it up under polyrun.
argument-hint: "<feature description>" [--out <dir>]
allowed-tools: Bash, Read, Write, Glob, Grep

Invoke the `workflow` skill over `$ARGUMENTS` and follow its steps in order.

This is the COMPOSITION command: it drives the whole toolset end-to-end for a NEW feature built the workflows-not-loops way (polygen authors the machine, polyrun's checkers gate the effect composition, polyrun executes, polyvers evolves later). The design conversation in Step 1 — stages along the data flow, every failure answered with either a targeted bend-back or a human escalation, the fuzzy middle scoped to named stages — happens WITH the user before any file is written.

Reference material shipped with the plugin:

  • `${CLAUDE_PLUGIN_ROOT}/examples/workflows-not-loops/MANUAL.md` — the recipe
  • `${CLAUDE_PLUGIN_ROOT}/examples/workflows-not-loops/` — document pipeline

(incl. the polygen bisimulation and the v1→v2 polyvers evolution)

  • `${CLAUDE_PLUGIN_ROOT}/examples/todo-machine/` — an ordinary app (durable

timers replace the cron scan; clickable HTTP shell)

No API key is required end-to-end: machine authoring follows the `polygen` skill's Step 0 choice (scripted with `ANTHROPIC_API_KEY` for the CI-grade, pinned-model run — or keyless in-session authoring gated by the same local checkers), and every checking tier (`check.mjs`, `check-effects`, deploy gate) and polyrun itself never need one. Always state the standard disclosure: exhaustive over the declared domains — a consistency check, not a proof.

Read more
@cognitive-fab
Ships withpolygraph

Your tests check the paths you thought of. Polygraph checks the ones you didn't.

167 skills5 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
16
Star history of cognitive-fab/polygraph on GitHub, a chart by star-history.com

Other commands on polygraph.

polygen

polygen

Command

Run polygen — draft a contract from a feature description, author a verifiable SAM v2 strict-profile module against it,…

polynv

polynv

Command

Run polynv — elicit the invariants for a state machine. Harvest candidates from the contract's vocabulary, traces, and fleet…

polyvers

polyvers

Command

Run polyvers — classify a state-machine version change into compatibility lanes, run the gates those lanes require against fleet…

verify

verify

Command

Run the Polygraph verification loop — generate N transition-function specs from a source file and replay real traces against…

polyviz

polyviz

Command

Render Polygraph verification artifacts as deterministic diagrams (SVG, optional PNG). Renders a fixed catalog — state-machine,…

More commands from other plugins.

bkit

bkit

Command

bkit plugin help - Show all available bkit functions. Workaround for skills autocomplete issue. Use "/bkit" or just type "bkit…

bkit2w606
@popup-studio-ai@popup-studio-aiInstall Command
review

review

Command

Open the Canary session viewer and triage a recorded session.

canary3w496
@0xnyn@0xnynInstall Command