typescript-best-practices

Community

Safe, scalable TS patterns for everyday coding.

AuthorKJR020
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Provides enterprise-grade TypeScript patterns and practices to improve type safety, security, and maintainable code. Use when writing TS, performing code reviews, or implementing robust error handling.

Core Features & Use Cases

  • Type Imports (CRITICAL): Always use type imports for TypeScript types to improve build performance and clarity.
  • Security Rules: Never expose sensitive data; use type guards and input validation to enforce safety.
  • Code Structure & Async Patterns: Early returns, modular composition, and disciplined async/Promise patterns.
  • Use Cases: Adopt these patterns when starting new TS projects or auditing existing code for quality and safety.

Quick Start

Install or apply these patterns in your project by following the examples and templates in this skill. Start by replacing regular imports with import type for your TypeScript types, enforce early returns, and add a small set of guard clauses to validate inputs.

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-best-practices
Download link: https://github.com/KJR020/dotfiles/archive/main.zip#typescript-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 471,000+ vetted skills library on demand.