{
  "markdown": "# clanker-discipline\n\nDiscipline AI coding agents against state explosion, grab-bag models, and mutation ambiguity.\n\n## Install\n\n```bash\nnpx skills add gbasin/clanker-discipline --all -g\n```\n\n## What it does\n\nAI coding agents overproduce state — every bug gets one more flag, every feature one more optional field. This skill teaches agents to:\n\n1. **Derive, don't store** — if it can be computed from existing data, don't cache it in a flag\n2. **Make wrong states impossible** — discriminated unions over optional bags, null over sentinels, branded primitives\n3. **Enforce function contracts** — pure functions stay pure; mutate+void or clone+return, never both\n4. **Data over procedure** — if every branch returns the same shape, it's a table, not an if-chain\n\n## Credits\n\nCombines 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.\n\n",
  "bytes": 1089,
  "sha": "108760d66279874f00b65bfdbdd79a39c34d7495e0f298b5c3f70f8d6f3eec9e",
  "repo_slug": "gbasin/clanker-discipline",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/skl_gbasin_clanker_discipline_clanker_discip_5f874bca/readme"
}