typescript-refactoring-patterns

Official

Expert TS refactoring patterns for safer code.

Authorautohandai
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It provides practical TypeScript refactoring techniques, including discriminated unions, type guards, branded types, and avoiding over-using casts.

Core Features & Use Cases

  • Discriminated Unions and Type Guards
  • Replace Conditional with Polymorphism
  • Type Guards & Branded Types for validation
  • Quick Wins for TS code quality

Quick Start

Apply these patterns to a TS codebase to improve type safety and maintainability.

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: typescript-refactoring-patterns
Download link: https://github.com/autohandai/community-skills/archive/main.zip#typescript-refactoring-patterns

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 223,000+ vetted skills library on demand.