Principle Type System Discipline
Type-system discipline that makes illegal states unrepresentable and parses external data at boundaries.
- CCM score
- 62 of 100
- skills.sh installs
- 13.4K
- GitHub stars
- 5.5K
- last updated
- Nov 30, 2026
Own this skill? Claim it
What it does
- Covers branding semantic primitives, parsing external data at boundaries, and deriving types from authoritative schemas
- Brands primitives that share a type but differ in meaning, validating once at creation
- Treats JSON, RPC payloads, CLI args, config, environment variables, and database rows as untyped until parsed
- Applies when designing types, reviewing function signatures, or writing code in statically-typed languages; TypeScript syntax is covered by the typescript-best-practices skill
Install
$ npx -y skills add backnotprop/pstack --skill principle-type-system-discipline -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
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.
Details
- Repository
- github.com/backnotprop/pstack
- First seen
- Nov 30, 2026
More from backnotprop/pstack
All 44- Swarm13.4K
- Figure It Out13.4K
- Principle Prove It Works13.4K
- Maintain Verification Skill13.4K
- Principle Laziness Protocol13.3K
- Principle Make Operations Idempotent13.3K
- Principle Subtract Before You Add13.3K
- Principle Encode Lessons In Structure13.3K
- Principle Model The Domain13.3K
- Principle Migrate Callers Then Delete Legacy Apis13.3K
- Principle Guard The Context Window13.3K
- Principle Test Behavior Not Implementation13.3K
- Principle Redesign From First Principles13.3K
- Principle Build The Lever13.3K
- Principle Minimize Reader Load13.3K
- Principle Boundary Discipline13.3K
- Principle Exhaust The Design Space13.3K
- Principle Never Block On The Human13.2K
- Automate Me13.2K
- Principle Foundational Thinking13.2K
- Principle Attack The Premise13.2K
- Principle Sequence Verifiable Units13.2K
- Principle Outcome Oriented Execution13.2K
- Principle Separate Before Serializing Shared State13.2K
Similar to Principle Type System Discipline
cavemanjuliusbrussee/caveman646.1K installsUltra-compressed communication mode. Cuts output tokens 65% (measured) by speaking like caveman while keeping full technical accuracy. Supports intensity levels
grill-memattpocock/skills1.6M installsA relentless interview to sharpen a plan or design.
improveshadcn/improve43.4K installsSurvey any codebase as a senior advisor and produce prioritized, self-contained implementation plans for OTHER models/agents to execute. Strictly read-only on s
systematic-debuggingobra/superpowers346.5K installsUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes
find-skillsvercel-labs/skills4.5M installsHelps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express int
hyperframes-cliheygen-com/hyperframes1.7M installsUse the HyperFrames CLI development loop: init, add, catalog, capture, lint, check, snapshot, compare, grade-compare, preview, play, present, beats, keyframes,