Gary Basin 6d933da346 Update install command to target all agents
Use --all -g so the skill installs to every supported agent, not just the default.
2026-03-23 12:06:37 -04:00

clanker-discipline

Discipline AI coding agents against state explosion, grab-bag models, and mutation ambiguity.

Install

npx skills add gbasin/clanker-discipline --all -g

What it does

AI coding agents overproduce state — every bug gets one more flag, every feature one more optional field. This skill teaches agents to:

  1. Derive, don't store — if it can be computed from existing data, don't cache it in a flag
  2. Make wrong states impossible — discriminated unions over optional bags, null over sentinels, branded primitives
  3. Enforce function contracts — pure functions stay pure; mutate+void or clone+return, never both
  4. Data over procedure — if every branch returns the same shape, it's a table, not an if-chain

Credits

Combines ideas from theswerd/aicode (self-documenting code) and Tommy D. Rossi's event sourcing post on combating agent state explosion.

S
Description
Catches state bloat, grab-bag models, and mutation ambiguity from AI coding agents. Use when reviewing state types, boolean flags, optional-field models, or…
Readme 76 KiB
Languages
Markdown 100%