
Principle Type System Discipline
Strict type discipline that makes illegal states unrepresentable, brands primitives, and parses external data at boundaries.
- CCM score
- 58 of 100
- skills.sh installs
- 6.2K
- GitHub stars
- 19.4K
- last updated
- Nov 25, 2026
Own this skill? Claim it
What it does
- Covers three core rules: branding semantic primitives, parsing untyped external data at boundaries, and deriving types from authoritative schemas
- Requires that arguments sharing a primitive type but meaning different things each get their own type, validated once at creation
- Treats JSON, RPC payloads, CLI args, config, environment variables, and database rows as untyped until a parse function returns the typed model
- Points TypeScript syntax questions to the separate typescript-best-practices skill
Install
$ npx -y skills add cursor/plugins --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/cursor/plugins
- First seen
- Nov 25, 2026
More from cursor/plugins
All 93- Create Verification Skill6.1K
- Principle Boundary Discipline6K
- Interrogate6K
- Principle Laziness Protocol5.9K
- Principle Redesign From First Principles5.9K
- Principle Build The Lever5.8K
- Principle Subtract Before You Add5.8K
- Principle Foundational Thinking5.8K
- Principle Minimize Reader Load5.8K
- Poteto Mode5.8K
- Principle Make Operations Idempotent5.7K
- Principle Exhaust The Design Space5.7K
- Principle Experience First5.7K
- Principle Separate Before Serializing Shared State5.7K
- Show Me Your Work5.7K
- Principle Model The Domain5.7K
- Principle Never Block On The Human5.7K
- Principle Migrate Callers Then Delete Legacy Apis5.6K
- Maintain Verification Skill5.6K
- Principle Outcome Oriented Execution5.6K
- Principle Sequence Verifiable Units5.6K
- Figure It Out5.3K
- Setup Pstack5.3K
- Reflect5.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,