ts

TypeScript conventions and type-safe patterns.

$ インストール

git clone https://github.com/lambdalisue/dotfiles /tmp/dotfiles && cp -r /tmp/dotfiles/home/claude/skills/ts ~/.claude/skills/dotfiles

// tip: Run this command in your terminal to install the skill


name: ts description: TypeScript 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
  });
});