Clanker Discipline - Setup Guide¶
Source: gbasin/clanker-discipline via skills.sh - 7.5K combined installs across 1 indexed listing; first seen 2026-12-01 (Dec 1 morning sweep)
GitHub: gbasin/clanker-discipline, 22 stars, no LICENSE file, branch main, last pushed 2026-03-23, not archived. The single skill lives in SKILL.md at the repo root of a two-file repository (README.md and SKILL.md).
Category: Coding Discipline - state modeling and mutation rules for coding agents
Quality Tier: 🟢 Green. 1 of 1 skill sampled: 3 Pass, 0 Warn, 0 Fail verdicts across the three scanners; the repo carries no LICENSE file.
gbasin/clanker-discipline publishes a single skill that disciplines AI coding agents against three failure modes the README names: state explosion, grab-bag models, and mutation ambiguity. The skill encodes four rules: derive rather than store, make wrong states impossible, enforce function contracts, and prefer data over procedure.
The repo is minimal, just a SKILL.md and a README.md at the root, with 22 GitHub stars and no LICENSE file. Its credits attribute the ideas to the self-documenting-code skill from theswerd/aicode and a post on event sourcing against agent state explosion.
Installation¶
npx skills add gbasin/clanker-discipline --all -g
This installs the skill globally for all your agents via skills.sh.
What It Provides¶
| Skill | Installs | Use For |
|---|---|---|
| clanker-discipline | 7,495 | Disciplining coding agents against state explosion, grab-bag models and mutation ambiguity |
The single indexed listing appears in the table above.
Why This Matters for Hermes Agents¶
clanker-discipline targets a failure mode every coding agent exhibits: accumulating optional flags and sentinel fields until the model is a grab-bag of half-states. Its four rules are small but general: derive values instead of caching them, model illegal states as impossible via discriminated unions, keep pure functions pure and mutations explicit, and replace if-chains with tables. For a Hermes agent builder this is a compact specification for review and generation alike, usable as a style contract to hand a coding subagent before it edits a schema. It pairs naturally with the self-documenting-code idea it credits, since derived state and explicit contracts make code that explains itself. The whole skill is one SKILL.md, which makes it a good reference for how much discipline can be carried in a very small package.
Usage¶
| You say | What happens |
|---|---|
| "Add a status field to this model" | The skill steers toward a discriminated union so illegal states cannot be represented |
| "Cache this derived value in a flag" | The skill pushes the agent to compute it from existing data instead of storing it |
| "Rewrite this function" | The skill enforces pure-function contracts: mutate and void, or clone and return, not both |
| "Handle each of these five cases" | The skill reframes a branching if-chain as a table when every branch returns the same shape |
| "Review this schema for drift" | The skill flags optional bags and sentinels as state-explosion risks |
Verification¶
After install, confirm the skill registered with skills.sh:
npx skills list
Review the SKILL.md before you rely on it:
curl -sL https://raw.githubusercontent.com/gbasin/clanker-discipline/main/SKILL.md
The repo is two files at the root: SKILL.md and README.md.
Security¶
skills.sh verdicts for sampled skills (verified 2026-12-01) - re-check the security pages on skills.sh before production use:
| Skill | Gen Agent Trust Hub | Socket | Snyk |
|---|---|---|---|
| clanker-discipline | Pass | Pass | Pass |
The single sampled skill returned Pass from all three scanners. The repo carries no LICENSE file, so confirm licensing before production use or redistribution.
Integration with CorpusIQ¶
CorpusIQ is the connector layer that lets AI assistants read the systems a business already runs on - accounting, payments, CRM, email, files and analytics - and answer with the source named. It is read-only by design: it retrieves data and never writes to, or acts in, a connected system, which is what makes it safe to point at live accounts.
This page is part of the CorpusIQ directory, the reference we maintain for the MCP server and agent-skill ecosystem. Run alongside CorpusIQ, a third-party server like this one can be combined with a company's own business data in a single answer.
Limitations¶
- Snapshot data, verified 2026-12-01: 7,495 combined installs across 1 indexed listing; 22 GitHub stars; no license; last pushed 2026-03-23. Counts drift over time.
- No LICENSE file: treat as source-available and confirm before redistribution or embedding.
- It is a methodology skill (advice that shapes how an agent writes code), not executable tooling.
- Lightly adopted (22 stars) and last pushed in March 2026; install counts are skills.sh metrics.
- A single skill, so coverage is narrow: state modeling and mutation discipline only, no broader workflow.
Related¶
- codebase-design - Deep Module Design Vocabulary Setup
- Review Loop Skill - Continuous Code Review Discipline Setup
- Riekelt Principal Engineer - Engineering Discipline Suite Setup
Skills Catalog | Skills Marketplace
Pro Tips¶
- Use it as a review checklist, not just a generator: run the four rules against any new schema or state change.
- Pair it with a self-documenting-code skill so derived state and explicit contracts keep the code readable.
- Enforce the rules at the type level where the language allows: discriminated unions and branded primitives.
- Prefer null over sentinels and tables over if-chains for every branch that returns the same shape.
- The repo has no LICENSE file; confirm licensing before redistributing or embedding it.
← Skills Catalog | Skills Marketplace → Powered by CorpusIQ