cli-architecturelisted
Install: claude install-skill Anselmoo/werkstoff
# CLI Architecture Doctrine
This is the **only** place the plugin defines "production-grade." Every paradigm
skill loads this before generating anything, and the `cli-scaffold-verifier`
agent checks generated scaffolds against it. Paradigm skills and per-language
reference files **reference** these rules; they never restate them. (The repo
self-check `scripts/check_doctrine_isolation.py` fails the build if a paradigm
skill duplicates the contract or re-enumerates the pillars.)
The numeric bounds and enumerations below are mirrored in
`scripts/constants.py`, which asserts them at import time. That module — not this
prose — is the enforcement. This document explains the intent; the scripts refuse
violations.
## The Five Pillars
Every generated CLI, regardless of language, must satisfy all five. The
`cli-scaffold-verifier` maps each finding back to one pillar.
1. **UX / discoverability.** `--help` prints a structured help block, and the
CLI ships shell completions through a first-party mechanism where one exists.
2. **Backend / core separation.** Business logic lives in a core module/library
with **zero** CLI-framework imports; the entry point is a thin wrapper.
3. **Stability.** A frozen exit-code contract, NO_COLOR support, fail-fast
non-interactive behavior, and a snapshot-tested `--help`.
4. **Idiomatic distribution.** Real packaging metadata for the one idiomatic
distribution channel of that ecosystem — never a "zip the files" fallback.
5. **Unix composabil