What problem does it solve?
This Skill enforces rigorous TypeScript type safety within the Mokumo project, eliminating any types, designing complex generics, creating type guards, resolving compiler errors, and ensuring adherence to Zod-first type conventions.
Core Features & Use Cases
- Eliminates
any: Replaces any types with precise, inferred, or explicitly defined types.
- Generics & Type Guards: Designs and implements complex generic types and robust type guards.
- Zod & Drizzle Integration: Enforces Mokumo's convention of using Zod for domain entities and Drizzle for infrastructure types.
- Compiler Error Resolution: Fixes
tsc --noEmit failures by addressing unsound inference, missing constraints, or boundary issues.
- Use Case: When encountering TypeScript errors, introducing new generic types, writing Zod schemas, working with Drizzle row types, designing port interfaces, or when
tsc --noEmit fails.
Quick Start
Use the typescript-safety skill to resolve the current TypeScript errors in the project.