What problem does it solve?
It prevents fragile or insecure TypeScript/JavaScript implementations by forcing precise documentation constraints that the code generator can follow and reviewers can verify.
Core Features & Use Cases
- Type Safety Guardrails: Requires explicit types on public APIs, forbids
any, and mandates unknown with narrowing; uses interface for extensible shapes and type for unions.
- React/Svelte Correctness: Enforces stable keys, complete dependency arrays, explicit client/server boundaries, and mandatory loading/error states.
- Validation and Security: Mandates Zod schemas for all inputs and requires secret handling via
process.env with startup fail-fast checks.
- Testing and Review Checks: Requires Playwright for critical E2E flows with safe selectors, plus a structured review checklist for security, type safety, async correctness, and Node.js pitfalls.
- Build & Fix Commands: Provides a standard set of typecheck, lint, prettier, audit, and test commands to keep projects consistent.
Quick Start
Activate the typescript skill to review or generate a TS/JS spec for a React or Next.js codebase and ensure it includes type definitions, Zod validation, security anti-patterns, and Playwright-based critical flow testing.