ts-best-practices

Community

Type-safe TypeScript guidelines for robust code.

Authorpoteto
Version1.0.0
Installs0

System Documentation

What problem does it solve?

TypeScript type safety guidelines help teams write more reliable code by enforcing explicit type handling, safer casts, and stronger contracts across modules.

Core Features & Use Cases

  • Enforces discriminated unions, precise type narrowing, and robust type guards to prevent runtime type errors.
  • Guides safer handling of external data, API responses, and boundary validation to reduce nulls and unknowns.
  • Use Case: When evolving a public API or complex domain model, apply the patterns to keep types expressive and maintainable.

Quick Start

Audit a TypeScript file for unsafe casts and add proper guards and discriminated unions for stronger type safety.

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: ts-best-practices
Download link: https://github.com/poteto/noodle/archive/main.zip#ts-best-practices

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.