What problem does it solve? TypeScript and JavaScript codebases often accumulate inconsistent patterns: any leakage, mutation-heavy code, enum misuse, and callback-style async that hides errors. This Skill gives the AI a concrete, enforceable rulebook so generated and reviewed code follows modern idiomatic conventions instead of Java-in-TypeScript habits. ## Core Features & Use Cases - Type Safety Rules: Enforces strict: true, unknown over any, discriminated unions, satisfies, as const, branded types, and boundary validation for runtime data. - Async and Functional Patterns: Standardizes async/await, Promise.all/allSettled/race, AbortController cancellation, and declarative map/filter/reduce pipelines over imperative mutation. - Style and Anti-Pattern Guards: Covers naming conventions, const-by-default, ===, ?? over ||, named exports, #field privacy, and a table of anti-patterns with remedies. - Use Case: When asking the AI to refactor a legacy JavaScript module or review a pull request, it applies these rules to replace enums with as const objects, convert .then() chains to async/await, and eliminate any types with proper narrowing. ## Quick Start Ask the AI to review or write TypeScript code in your project and it will apply these idiomatic conventions automatically.