
Description
clanker-discipline is an agent skill that catches state bloat, grab-bag models and mutation ambiguity in code written by AI coding agents. It applies when you write or review state types, data models and functions that manage application state. Its first rule is to derive rather than store. Every boolean you add doubles the theoretical state space, so when a value can be derived from data you already have, do not store it. The best source to derive from is an event stream, a log of what happened. The skill tells the agent to refactor fully when it finds violations, reshaping types and restructuring functions, because a bigger diff now is better than layered workarounds that compound later. The skill includes a before-and-after example, in which an agent invented four cached flags to show a footer only when an assistant finished naturally. The aim is clean, maintainable code rather than minimal diffs.…
Highlights
- Derive state instead of storing flags
- Catches grab-bag models and mutation ambiguity
- Refactors fully rather than patching
- Before-and-after examples
Ratings & Reviews
No ratings yet
Be the first to rate clanker-discipline.
People also visit
clanker-discipline FAQ
What problems does it catch?
State bloat, grab-bag models and mutation ambiguity from AI coding agents.
What is the first rule?
Derive, do not store. A value that can be derived from existing data should not be a stored flag.
Does it want minimal diffs?
No. The skill says a bigger diff now is better than layered workarounds.
When does it apply?
When writing or reviewing state types, data models, boolean flags and functions that manage state.
How do I install it?
Run npx skills add https://github.com/gbasin/clanker-discipline --skill clanker-discipline.
What do the security audits show?
Gen Agent Trust Hub Pass, Socket Pass and Snyk Pass.
What are the best clanker-discipline alternatives?
Popular alternatives to clanker-discipline include principle-model-the-domain, clean-code-guard and clean-code. See all clanker-discipline alternatives



















