/gabbe-coding:formal-spec-lightweightfrom gabbe-coding
Models concurrency, protocols, state machines, money flow, or authorization in TLA+, Quint, Alloy, or P. Checks invariants exhaustively within bounds and converts counterexamples into tests.
Ships in gabbe-coding. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Model the design, not the code, in a few dozen lines; let a checker search all behaviours within small bounds; keep the model next to the design; derive tests from it. Brief: agents/templates/architecture/FORMAL_SPEC_BRIEF_TEMPLATE.md. Selection help: agents/guides/principles/modeling-methods.md.
Concurrency, retries and ordering, distributed protocols, state machines with irreversible steps, money, authorisation rules. It does not pay for plain CRUD, UI, or logic a property test already covers.
| Tool | Install | Check |
|---|---|---|
| Quint | npm i @informalsystems/quint -g | quint typecheck m.qnt; quint run m.qnt --invariant=inv (random simulation); quint verify m.qnt --invariant=inv (Apalache, bounded) |
| TLA+ (TLC) | download tla2tools.jar from github.com/tlaplus/tlaplus/releases (Java 11+) | java -jar tla2tools.jar -help lists options; -dumpTrace json out.json writes an error trace |
| Alloy 6 | org.alloytools.alloy.dist.jar from alloytools.org | open it in the Analyzer, then run check commands with a stated scope |
| P | p from p-org.github.io/P (see its install page) | p compile, then p check -tc <testcase> -s 100 explores 100 schedules; a bug writes a .schedule file |
pbt-strategy.skill.md, RuleBasedStateMachine). Done when each invariant has a code-level test or a written reason why not.docs/ or project/models/) with the exact check command in a comment. Re-run it whenever the design changes.The model file beside the design with its check command, the filled brief, each counterexample kept as a test scenario, and the derived tests.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
formal-methods, model-checking, tla+, quint, alloy, p-language, design-modeling
30 skills in this plugin
/agent-trajectory-evalScore an agent's run by its tool calls and state transitions, not only its final answer: tool and parameter F1, in-order match, legal transitions, pass^k. Use when you evaluate how an agent reached an answer or need a reliability figure over repeated runs./artisan-commandsRun Laravel Artisan commands safely: check the project and environment, run the command, verify the result. Use when the user asks to scaffold a controller or model, run migrations or manage a Laravel app with php artisan./browser-tddWrite Playwright tests that check a UI in a real browser (DOM, computed styles, scroll, screenshots) before the code. Use when a UI task is about layout, sticky or fixed elements, modals, animations or anything that only works when it renders correctly.npx claudepluginhub andreibesleaga/gabbe --plugin gabbe-codingOther plugins' skills for the same job