/principle:principle-type-system-disciplinefrom principle
Guides enforcing domain distinctions through the type system: variants with payloads, exhaustive matching, distinct semantic types, and strengthening partial functions.
Ships in principle. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Make the compiler enforce the domain distinctions that prevent real errors.
Model alternatives as variants with required payloads, not contradictory flags and optional fields. Use exhaustive matching so new variants create compiler obligations.
Separate semantic primitives where confusion causes errors, such as UserId and InvoiceId at a risky API. Validate their construction. Strengthen types where a function is otherwise partial: head needs a non-empty sequence; sum remains total on ordinary sequences, including empty ones. Avoid wrappers that protect no meaningful invariant.
Derive types from the authoritative schema where one exists. Narrow, validate or refine the model instead of casting uncertainty away. Check rejected invalid inputs, intended runtime behaviour and compile-time rejection of wrong combinations. Static types do not substitute for runtime boundary validation.
Distinct from: principle-parse-at-the-boundary (untrusted or persisted data enters, or state is used after suspension), principle-model-the-domain (choosing legal states, transitions and ownership, with or without a type system).
Done: matching on variants is exhaustive; semantic types are distinct where confusion costs; partial functions get stronger inputs; no cast hides uncertainty.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub mintuz/skills --plugin principle54 skills in this plugin
/principle-attack-the-premiseWHEN repeated fixes sharing an assumption fail the same check; NOT for a first unexplained failure or a settled mechanical edit; tests the shared premise before another fix./principle-build-the-leverWHEN repetitive work or a difficult check benefits from a rerunnable tool; NOT when an existing command or a direct small edit already suffices; builds the smallest useful lever./principle-capture-the-baselineWHEN about to change something whose result you will verify or compare; NOT for read-only investigation or syncing a git base; records pre-change evidence so the check reads old value versus new value.Other plugins' skills for the same job