valid-state-types
CommunityDesign types that always represent valid states.
Authorluyi985
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Types that allow invalid state combinations lead to bugs and hard-to-maintain code. This skill promotes designing types that enforce valid states from the start.
Core Features & Use Cases
- Enforces valid state representations with discriminated unions
- Encourages grouping of related fields to prevent partial states
- Applies to models with interdependent statuses and complex state machines
Quick Start
Design discriminated unions to ensure only valid states can be represented in your type definitions
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: valid-state-types Download link: https://github.com/luyi985/lyi-bash/archive/main.zip#valid-state-types 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 471,000+ vetted skills library on demand.