Skip to content

apuya/react-basics-ui / .claude/skills/type-driven-development

type-driven-development

Unverified

Encodes invariants in the type system so illegal states cannot be constructed. Picks between newtypes, smart constructors, discriminated unions, and phantom types based on the invariant being protected. Audits code for primitive obsession, boolean blindness, stringly-typed data, partial functions, and validation that should be parsing. Decides what belongs in types (structure, identity, state, ordering) versus tests (behaviour, IO, time). Triggers on "type-driven development", "type first", "make illegal states unrepresentable", "illegal state", "parse don't validate", "smart constructor", "branded type", "newtype", "phantom type", "discriminated union", "sum type", "algebraic data type", "adt", "exhaustiveness", "never type", "refinement type", "primitive obsession", "boolean blindness", "stringly typed", "partial function", "encode invariant", "types as tests", "type safety", "as const", "satisfies".

Indexed versions of this skill
CommitIndexedFilesContent hash
a248a8acurrent2026-11-171 · 16.6 KB37dfcfd06c606f6c…
rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 464kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 464kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 464kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 192kUpdated Claude CodeCodexVerifiedInstall