๐ŸŽฏ

typescript-best-practices

๐ŸŽฏSkill

from 0xbigboss/claude-code

VibeIndex|
What it does
|

Provides TypeScript best practices for type-first development, making illegal states unrepresentable, and runtime validation patterns

Overview

typescript-best-practices is a Claude Code skill that provides TypeScript patterns for type-first development. It enforces practices such as making illegal states unrepresentable, exhaustive handling of union types, and runtime validation, ensuring that TypeScript and JavaScript code is robust and type-safe.

Key Features

  • Type-first development: Encourages designing types before implementing logic, using the type system as a primary design tool to catch errors at compile time.
  • Making illegal states unrepresentable: Guides code structure so that invalid data configurations cannot be expressed through the type system, eliminating entire categories of bugs.
  • Exhaustive handling: Ensures all variants of union types and discriminated unions are handled, preventing missed cases that could cause runtime errors.
  • Runtime validation patterns: Provides patterns for validating data at runtime boundaries (API responses, user input) to bridge the gap between TypeScript's compile-time checks and real-world data.

Who is this for?

This skill is for TypeScript and JavaScript developers who want to write more robust, type-safe code by leveraging advanced TypeScript patterns. It is particularly useful for developers working on applications where data integrity is critical and who want Claude Code to consistently apply type-first principles when reading or writing code.

๐Ÿ“ฆ

Same repository

0xbigboss/claude-code(38 items)

typescript-best-practices

Installation

Vibe Index InstallInstalls to .claude/skills/ - auto-recognized by Claude Code
npx vibeindex add 0xbigboss/claude-code --skill typescript-best-practices
skills.sh Installโš  Installs to .agents/skills/ - may not be auto-recognized by Claude Code
npx skills add 0xbigboss/claude-code --skill typescript-best-practices
Manual InstallCopy SKILL.md content and save to the path below
~/.claude/skills/typescript-best-practices/SKILL.md

SKILL.md

1,839Installs
35
-
Last UpdatedJan 26, 2026

More from this repository10

๐ŸŽฏ
react-best-practices๐ŸŽฏSkill

React best practices skills covering hooks, effects, refs, component design, escape hatches, and anti-patterns for use when reading or writing React components.

๐ŸŽฏ
python-best-practices๐ŸŽฏSkill

Provides Python best practices for type-first development with dataclasses, discriminated unions, NewType, and Protocol patterns

๐ŸŽฏ
web-fetch๐ŸŽฏSkill

Fetches web content with intelligent content extraction, converting HTML pages to clean markdown using curl and html2markdown with CSS selectors for targeted extraction.

๐ŸŽฏ
zig-best-practices๐ŸŽฏSkill

Provides Zig patterns for type-first development with tagged unions, explicit error sets, comptime validation, and memory management best practices.

๐ŸŽฏ
nix-best-practices๐ŸŽฏSkill

Nix best practices skill covering flake structure, overlays, unfree package handling, and binary overlays for working with flake.nix or shell.nix configurations

๐ŸŽฏ
openai-image-gen๐ŸŽฏSkill

React best practices skills covering hooks, effects, refs, component design, escape hatches, and anti-patterns for use when reading or writing React components.

๐ŸŽฏ
tamagui-best-practices๐ŸŽฏSkill

Provides Tamagui patterns for config v4, compiler optimization, styled context, and cross-platform styling for Tamagui-based projects.

๐ŸŽฏ
go-best-practices๐ŸŽฏSkill

Provides Go patterns for type-first development with custom types, interfaces, functional options, and structured error handling.

๐ŸŽฏ
playwright-best-practices๐ŸŽฏSkill

Provides Playwright test patterns for resilient locators, Page Object Models, fixtures, web-first assertions, and network mocking with CLI-optimized output for agent workflows.

๐ŸŽฏ
axe-ios-simulator๐ŸŽฏSkill

iOS Simulator automation using AXe CLI for touch gestures, text input, screenshots, video recording, and accessibility inspection