typescript-best-practices

Guide TypeScript project configuration and code review for type safety.

1|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/Thomashighbaugh/opencode --skill typescript-best-practices-thomashighbaugh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript-best-practices
Source: https://github.com/Thomashighbaugh/opencode/tree/main/skills/typescript-best-practices
Command: npx skills add https://github.com/Thomashighbaugh/opencode --skill typescript-best-practices-thomashighbaugh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guides developers in applying TypeScript best practices to improve type safety, code organization, and maintainability. Use this skill when configuring TypeScript projects, deciding on typing strategies, writing async code, or reviewing TypeScript code quality.

Core Features & Use Cases

  • Comprehensive guidance on typing strategies, code organization, and maintainability.
  • Clear examples and common mistakes with practical refactor suggestions.
  • Use Case: Integrate best practices into project scaffolding, review sessions, and code reviews to elevate TypeScript quality.

Quick Start

Review the TypeScript project and implement best-practice patterns for type safety, code organization, and maintainability.

Frequently Asked Questions about typescript-best-practices

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

FAQPage Schema
What's the best way to choose between interface and type alias in TypeScript?

Choosing between an interface and a type alias in TypeScript depends on extension and declaration merging needs. This skill guides developers through typing strategies, explaining when to use each approach to ensure code organization and maintainability.

How do I configure a new TypeScript project for better type safety?

To configure a new TypeScript project for type safety, apply best practices for compiler options and typing strategies. This skill provides guidance on scaffolding projects and implementing patterns that prevent runtime errors and improve maintainability.

What are common TypeScript async/await mistakes and how do I fix them?

Common TypeScript async/await mistakes often involve improper promise typing and unhandled rejections. This skill illustrates recommended async patterns, highlights common mistakes, and provides practical refactor suggestions to ensure type-safe asynchronous code.

How do I review TypeScript code quality across modules?

Reviewing TypeScript code quality across modules involves checking type safety, code organization, and adherence to best practices. This skill guides developers through code review sessions by identifying common mistakes and suggesting progressive disclosure patterns.

When should I apply progressive disclosure patterns in TypeScript code organization?

Progressive disclosure patterns in TypeScript code organization should be applied when structuring complex modules to improve maintainability. This skill outlines key principles for code organization, ensuring type safety while keeping interfaces clean and manageable.