typescript-type-discipline
CommunityEnforce named types for cleaner TypeScript.
Authorbuchananwill
Version1.0.0
Installs0
System Documentation
What problem does it solve?
When working in TypeScript, inline object shapes and ad hoc type definitions lead to drift, duplication, and hard-to-maintain code. This Skill prescribes using named, exported types and interfaces to unify typing across the codebase, improving readability and refactor safety.
Core Features & Use Cases
- Enforce that every type used in function signatures, component props, and API responses is a named, exported type or interface.
- Remap and reuse types instead of duplicating fields by deriving types with TypeScript utilities like Pick, Omit, and Partial.
- Guidance on where to define types (dedicated module files, or co-located with implementation) and on naming conventions to ensure discoverability and consistency.
Quick Start
Apply this rule by replacing all inline object types with named exported interfaces and using type transformations (Pick, Omit, Partial) where needed.
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: typescript-type-discipline Download link: https://github.com/buchananwill/ue-claude-scaffold/archive/main.zip#typescript-type-discipline 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.