TypeScript specialist for strict typing, React/Next.js patterns, schema validation, and type-safe API workflows. Use when implementing or refactoring TypeScript codebases.
Resources
2Install
npx skillscat add ven0m0/claude-config/moai-lang-typescript Install via the SkillsCat registry.
SKILL.md
TypeScript Development (Lean)
When to use
.ts,.tsx,tsconfig.json- React/Next.js code paths
- API clients/servers requiring strict typing
Defaults
- Keep
strict: true. - Prefer inferred types unless explicit types improve readability.
- Validate untrusted input with schemas (for example Zod).
- Use discriminated unions instead of boolean mode flags.
Quick workflow
- Confirm type boundaries (input/output contracts).
- Implement smallest typed change.
- Add/update tests.
- Run type check + lint + test.
Commands
- Install/run (Bun-compatible repos):
bun install,bun run <script> - Type check:
bunx tsc --noEmitornpx tsc --noEmit - Tests:
bun testor project test script
Implementation checklist
- No
anyunless documented and justified. - Exhaustive branching for tagged unions.
- Public types exported from stable module boundaries.
- Runtime validation for API and form payloads.
Validation checklist
tsc --noEmitpasses.- Lint passes.
- Tests pass for changed behavior.
- Build output unchanged unless intended.
References
reference.md- type and architecture patternsexamples.md- compact TS/React examples../AGENT_SKILL_SPEC.md- shared Anthropic/Copilot alignment