Agent skill
typescript-strictest-standards
Stars
163
Forks
31
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/typescript-strictest-standards
SKILL.md
priority: critical
TypeScript Strictest Standards
TypeScript 5.x · Strictest typing · No any/object · Generics required · Tests next to source
- Enable ALL strict flags: strict, noUncheckedIndexedAccess, exactOptionalPropertyTypes
- Ban any and object types; use unknown with guards, Record<string, unknown>
- Generics with constraints: <T extends BaseType>, satisfies operator, const assertions
- Tests: .spec.ts next to source files (NOT tests/); vitest, 80%+ coverage
- Functional: pure functions over classes, map/filter/reduce, immutability, readonly
- Nullish coalescing ??, optional chaining ?., type predicates (x is Type)
- Import type for types, organize by feature, path aliases (@/lib/*)
- Biome for linting/formatting, pnpm ≥10.17, pnpm-lock.yaml committed
- React: function components, custom hooks (use*), proper prop typing
- Never: any/object types, test dirs, non-null assertions !, || for defaults
Didn't find tool you were looking for?