writing-typescript

Community

Build robust TypeScript applications with strict confidence.

Authoralexei-led
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill enforces strict typing and modern patterns to eliminate runtime errors and messy code, helping you build scalable TypeScript and React applications that are easy to maintain and refactor.

Core Features & Use Cases

  • Type-Safe Patterns: Use discriminated unions for state, exhaustive switches, and the Result type for explicit error handling.
  • React & Full-Stack Guidance: Implement type-safe React components, hooks, and data-fetching logic with TanStack Query and Zod.
  • Use Case: Imagine you're modeling a data-fetching hook. Use this Skill to implement it using a discriminated union ('idle' | 'loading' | 'success' | 'error') instead of error-prone boolean flags, ensuring all states are handled.

Quick Start

Use the writing-typescript skill to convert this set of boolean state flags (isLoading, isError, data) into a single discriminated union type and update the component logic accordingly.

Dependency Matrix

Required Modules

None required

Components

references

💻 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: writing-typescript
Download link: https://github.com/alexei-led/claude-code-config/archive/main.zip#writing-typescript

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.