← ClaudeAtlas

typescript-patternslisted

TypeScript patterns, strictness flags, type-safety anti-patterns, and review checklist covering any vs unknown, satisfies operator, branded types, discriminated unions, generic constraints, and module boundaries. Use whenever the project contains `.ts` or `.tsx` files, `tsconfig.json`, `tsconfig.base.json`, or `typescript` in `package.json` dependencies, OR the user asks about TypeScript, types, type errors, type narrowing, generics, tsconfig, or any work in a `.ts` or `.tsx` file, even if "TypeScript" is not mentioned by name.
ku5ic/dotfiles · ★ 0 · Data & Documents · score 72
Install: claude install-skill ku5ic/dotfiles
# TypeScript patterns Default assumption: a TypeScript project with `strict` mode enabled. If `strict` is off, that itself is a finding. ## Severity rubric - `failure`: a concrete defect or violation that should not ship. - `warning`: a smell or pattern that compounds with other findings. - `info`: a hardening opportunity or note, not a defect. ## Reference files | File | Covers | | ---------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | | [reference/strictness.md](reference/strictness.md) | Strictness flags, tsconfig review, incremental migration patterns | | [reference/type-expressions.md](reference/type-expressions.md) | `unknown` vs `any`, `satisfies`, discriminated unions, branded types, generic constraints, common patterns | | [reference/narrowing.md](reference/narrowing.md) | `typeof` / `in` / `instanceof`, predicates, exhaustiveness, `assertNever` | | [reference/module-boundaries.md](reference/module-boundaries.md) | `import type`, project references, circular imports, barrel-file anti-pattern | | [reference/anti-patterns.md](reference/anti-patterns.md)