What problem does it solve?
It prevents style drift and inconsistent patterns across a codebase by enforcing a shared standard for naming, TypeScript strictness, React structure, and Tailwind class organization.
Core Features & Use Cases
- Readable-by-default conventions: Descriptive English naming, linear flow (Validate → Process → Return), and shallow nesting limits to keep code reviewable at scale.
- TypeScript strict-mode guardrails: No
any, safe error handling with discriminated unions, explicit return types for public APIs, and preference for type and exhaustive narrowing.
- React + Tailwind structure rules: Keep components focused on UI, move logic into custom hooks, co-locate related files, and use
cn() to keep conditional Tailwind classes readable.
- Documentation and review checklist: JSDoc requirements for exported functions and a pre-PR checklist to reduce regressions and missed conventions.
Quick Start
Use the code-style skill to review or refactor the file you are working on so it matches the project’s naming, strict TypeScript, React separation-of-concerns, and Tailwind cn() patterns.