Clanker Discipline — Development skill for Claude Code
An agent skill designed to discipline coding agents against state explosion, grab-bag models, and mutation ambiguity.
How to install Clanker Discipline
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open gbasin/clanker-discipline and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Clanker Discipline does
An agent skill designed to discipline coding agents against state explosion, grab-bag models, and mutation ambiguity.
Alternatives in Development
- Cipher — An opensource memory layer specifically designed for coding agents 3.6k ★
- Discipline — Toggle discipline mode — auto-invoke verification, brainstorming-before-coding, and review checks 2.8k ★
- Ii Researcher — II-Researcher: a new open-source framework designed to aid building search / research agents 505 ★
README
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:
- Derive, don't store — if it can be computed from existing data, don't cache it in a flag
- Make wrong states impossible — discriminated unions over optional bags, null over sentinels, branded primitives
- Enforce function contracts — pure functions stay pure; mutate+void or clone+return, never both
- Data over procedure — if every branch returns the same shape, it's a table, not an if-chain
Credits
Combines ideas from [theswerd/aicode](https://github.com/theswerd/aicode) ([self-documenting code](https://github.com/theswerd/aicode/blob/main/skills/self-documenting-code/SKILL.md)) and [Tommy D. Rossi's event sourcing post](https://x.com/__morse/status/2032107422525907273) on combating agent state explosion.
Related Skills
Authoring Against State Rules
Always-on. Investigation-as-deliverable discipline for code, config, and commands whose runtime behavior depen
Blast Radius Bench
A benchmark for agentic coding-tool judgment under ambiguity: does the agent confirm before touching ambiguous
Nia
Nia is a context-augmentation layer for agents, primarily designed for coding agents. It provides them with an
Fixo CLI
Fixo CLI is a terminal-based autonomous coding assistant designed to execute complex programming tasks directl
Swarm Pi Code Plugin
connects Claude Code and Codex to a bounded Pi coding worker for repository-grounded analysis, planning, revie
Tilth
A local-first garden almanac & planner — but really an experiment in agent-first, no-hand-coding development:
Related Agents
Brigade Fi Kimi Implementer
Mutation-capable coding worker selected by the active sidecar route.
Depth Agent: State Trace Analysis
You are a depth agent performing targeted follow-up analysis on state mutation patterns and constraint enforce
Legacy State Auditor
Version adversary - finds where current code mishandles persisted state that only a PAST version (or external