ts

TypeScript conventions and type-safe patterns.

⭐41stars🔀4forks📁View on GitHub🕐Updated Dec 30, 2025⬇️1downloads

When & Why to Use This Skill

This Claude skill provides a comprehensive framework for TypeScript development, focusing on strict type-safety, modern coding conventions, and robust testing patterns. It ensures high-quality, maintainable code by enforcing strict mode, utilizing type guards, and implementing industry-standard tools like Vitest and oxlint to minimize runtime errors and technical debt.

Use Cases

  • 1. Standardizing TypeScript Projects: Establishing a unified set of coding standards and strict type-checking rules across a development team.
  • 2. Enhancing Type Safety: Migrating legacy codebases to use modern patterns like optional chaining, nullish coalescing, and type guards instead of unsafe assertions.
  • 3. Automated Testing Implementation: Streamlining the creation of unit tests using the AAA (Arrange-Act-Assert) pattern and Vitest for reliable software delivery.
  • 4. Code Quality Enforcement: Integrating oxlint and specific interface/type conventions to maintain a clean, performant, and scalable codebase.
namets
descriptionTypeScript conventions and type-safe patterns.

Conventions

  • Types: strict: true, type guards over assertions
  • Null Safety: Optional chaining (?.), nullish coalescing (??)
  • Style: interface for objects, type for unions, import type for types
  • Tools: oxlint for linting, Vitest for testing

Testing

describe("feature", () => {
  it("behavior description", () => {
    // AAA pattern, expect API
  });
});