invariant-hunter-ts
CommunityTighten TS invariants and reduce casts.
Software Engineering#typescript#type-safety#invariants#discriminated-unions#optional-chaining#type-assertions#runtime-guards
Authorskyosev
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Audit TypeScript types for weak invariants — unnecessary casts, loose optionality, defensive ?./?? masking missing guarantees, leaky discriminated unions, and runtime checks the type system should enforce.
Core Features & Use Cases
- Tightening a domain model after prototyping
- Reducing
asassertions and type casts across a codebase - Reviewing discriminated unions for completeness, drift, or ergonomics
- Establishing a type-safety baseline before refactoring
Quick Start
Audit TypeScript code to enforce invariants at construction boundaries and minimize runtime checks.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: invariant-hunter-ts Download link: https://github.com/skyosev/agent-skills/archive/main.zip#invariant-hunter-ts Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.