dry-types

Community

Derive types from a single source of truth.

Authorluyi985
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Duplicated type definitions lead to inconsistencies, maintenance burden, and bugs. This skill shows how to derive types from a single source of truth using TypeScript's type operations and generics, so types stay in sync automatically.

Core Features & Use Cases

  • Derive types from base definitions using extends, Pick, Partial, and keyof to create related variants (e.g., optional versions, subsets, or derived types).
  • Promote base + extensions, input/output types, and mapped/utility types to reduce drift across interfaces and data structures.
  • Real-world scenarios include keeping User, Form, and API response types aligned without duplicating fields.

Quick Start

Create or identify a base interface and derive a new type with Partial and Pick to produce an update model.

Dependency Matrix

Required Modules

None required

Components

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: dry-types
Download link: https://github.com/luyi985/lyi-bash/archive/main.zip#dry-types

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.