/gabbe-coding:design-by-contractfrom gabbe-coding
Writes runnable preconditions, postconditions, and invariants at module boundaries using icontract, deal, JML, or guard clauses. Useful for enforcing contracts in public interfaces.
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.
None: SKILL.md is the whole skill.
Every public function at a module boundary says what it requires from the caller (precondition), what it guarantees (postcondition), and what stays true for its data (invariant). The statement is code that runs in tests and, where cheap, in production, so a broken promise fails at its source.
| Language | Option | Notes |
|---|---|---|
| Python | icontract (pip install icontract) | @icontract.require(lambda x: x > 0), @icontract.ensure(lambda result, x: result > x), @icontract.invariant(lambda self: self.x > 0); a breach raises icontract.errors.ViolationError |
| Python | deal (pip install 'deal[all]') | @deal.post, @deal.pure; deal.cases(f) makes a test from the contract; python3 -m deal lint and python3 -m deal test |
| Java | JML, checked by OpenJML | OpenJML does runtime assertion checking and static verification; take its commands from openjml.org/documentation |
| Any other | guard clause at entry, assertion at exit, invariant method called after each mutator | plain assert or an explicit throw; no library needed |
pbt-strategy.skill.md).Contract code beside each boundary function, one test per clause, and a note in the plan stating which checks stay on in production.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub andreibesleaga/gabbe --plugin gabbe-coding30 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.Other plugins' skills for the same job