skill-lang-typescript

Enforce strict TypeScript compiler options and safe typing patterns.

4|Updated Mar 31, 2026
One-click install
npx skills add https://github.com/ryan-nguyen-01/agent-platform --skill skill-lang-typescript
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: skill-lang-typescript
Source: https://github.com/ryan-nguyen-01/agent-platform/tree/main/.claude/skills/skill-lang-typescript
Command: npx skills add https://github.com/ryan-nguyen-01/agent-platform --skill skill-lang-typescript

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

TypeScript code quality can degrade without consistent patterns; this guide consolidates best practices to improve safety, readability, and maintainability in production code.

Core Features & Use Cases

  • Enforce strict compiler configurations (strict mode, noImplicitAny, strictNullChecks, noUnusedLocals, noUnusedParameters, exactOptionalPropertyTypes)
  • Define clear type usage patterns using interfaces for objects and type aliases for unions/intersections, while avoiding any
  • Address Async patterns and error handling with explicit types and robust error classes
  • Choose appropriate TypeScript utility types (Partial, Required, Pick, Omit, Record, Readonly, NonNullable, ReturnType, Parameters)
  • Promote consistent import/export conventions and prevent common anti-patterns

Quick Start

Adopt strict typing and pattern guidelines across your codebase to start improving safety today.

Frequently Asked Questions about skill-lang-typescript

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What TypeScript compiler options should I enable for production strict mode?

Production strict mode requires enabling strict, noImplicitAny, strictNullChecks, noUnusedLocals, noUnusedParameters, and exactOptionalPropertyTypes to enforce type safety and eliminate implicit any errors.

How do I choose between TypeScript interfaces and type aliases for my project?

Use TypeScript interfaces for defining object shapes and type aliases for unions or intersections to ensure clear type usage patterns, improve readability, and avoid any throughout your codebase.

What are common TypeScript anti-patterns to avoid in production code?

Common TypeScript anti-patterns include using any types, inconsistent import and export conventions, improper async error handling, and neglecting utility types like Partial, Pick, Omit, and Record.

How do I handle async patterns and error handling safely in TypeScript?

Handle async patterns safely by using explicit return types, avoiding any, and implementing robust error classes to catch and manage runtime exceptions effectively in your TypeScript code.

When should I use TypeScript utility types like Partial, Required, and Readonly?

Use TypeScript utility types like Partial, Required, Pick, Omit, Record, Readonly, NonNullable, ReturnType, and Parameters to transform existing types safely without duplicating type definitions.

Can I apply these TypeScript best practices to both frontend and backend projects?

Yes, these TypeScript best practices apply across frontend, backend, and library projects, guiding compiler configurations, type definitions, and consistent pattern choices for production-ready code.