From billy-milligan
Provides advanced TypeScript patterns for type design with discriminated unions and branded types, Zod runtime validation, Result-based error handling, and monorepo configuration with Turborepo/Nx/pnpm.
How this skill is triggered — by the user, by Claude, or both
Slash command
/billy-milligan:typescript-patternsThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
- **Strict mode always**: `strict: true` catches entire classes of bugs at compile time.
strict: true catches entire classes of bugs at compile time.Result<T, E> is explicit; throw is invisible.UserId and OrderId should not be interchangeable.satisfies over as: satisfies validates without widening; as silences errors.references/type-patterns.md — Discriminated unions, template literals, conditional/mapped types, inferreferences/runtime-validation.md — Zod, Valibot schema-first with type inferencereferences/error-handling.md — Result type, typed errors, neverthrowreferences/monorepo-patterns.md — Turborepo, Nx, pnpm workspaces, build cachingnpx claudepluginhub rnavarych/alpha-engineer --plugin billy-milliganGuides TypeScript code with pedantic best practices: strict tsconfig flags like noUncheckedIndexedAccess, discriminated unions over assertions, Zod runtime validation, barrel exports, as const, ESLint rules.
Models state machines, discriminated unions, Result/Option types, and branded types in TypeScript for type-safe domain modeling.
TypeScript deep-dive skill covering type-level programming, performance optimization, monorepo patterns, and migration strategies. Also redirects to specialized subagents for bundler/module/type issues.