<< All versions

Skill v1.0.1

currentAutomated scan100/100
negoro26/pstack-omp/principle-type-system-discipline

+1 new

──Details
PublishedNovember 26, 2026 at 07:53 PM
Content Hashsha256:9cd1ce345bc9d666...
Git SHAfd9c1d50a726
Bump Typepatch
Compare with v1.0.0
──Files
Files (1 file, 1.0 KB)
SKILL.md1.0 KBactive
SKILL.md · 18 lines · 1.0 KB

name: principle-type-system-discipline description: "Apply when designing types, reviewing a function signature, or writing code in any statically-typed language. Make illegal states unrepresentable, brand semantic primitives, parse external data at boundaries, exhaust variants, derive from authoritative schemas." disable-model-invocation: true metadata: version: "1.0.1"


Type System Discipline

Make the compiler reject impossible states, mismatched primitives, and unhandled variants.

  • Brand semantic primitives. If two arguments share a primitive type but mean different things, give each its own type. Validate once at creation.
  • External data is untyped until parsed. JSON, RPC payloads, CLI args, config, environment variables, and database rows go through a parse function at the boundary that returns the typed model.
  • Derive types from authoritative schemas. When a schema file owns a shape, derive the type from it instead of hand-rolling a parallel one.

For TypeScript syntax, see the typescript-best-practices skill.

← v1.0.0All versions