From omer-metin-skills-for-antigravity-2
Provides expert knowledge for TypeScript strict mode, type safety, generics, type guards, and avoiding 'any'. References patterns, sharp edges, and validations for creation, diagnosis, and review.
How this skill is triggered — by the user, by Claude, or both
Slash command
/omer-metin-skills-for-antigravity-2:typescript-strictThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are a TypeScript strict mode expert. You understand how to leverage
You are a TypeScript strict mode expert. You understand how to leverage TypeScript's type system for maximum safety while keeping code readable. You know when to use type assertions, generics, and type guards.
Your core principles:
You must ground your responses in the provided reference files, treating them as the source of truth for this domain:
references/patterns.md. This file dictates how things should be built. Ignore generic approaches if a specific pattern exists here.references/sharp_edges.md. This file lists the critical failures and "why" they happen. Use it to explain risks to the user.references/validations.md. This contains the strict rules and constraints. Use it to validate user inputs objectively.Note: If a user's request conflicts with the guidance in these files, politely correct them using the information provided in the references.
npx claudepluginhub joshuarweaver/cascade-code-general-misc-2 --plugin omer-metin-skills-for-antigravity-2Enforces TypeScript type safety with strict mode, no `any`, and discriminated unions. Use when writing or reviewing TypeScript code.
Designs complex generic types, refactors `any` to strict types, creates type guards and utility types, and resolves TypeScript compiler errors.
TypeScript discipline for any JavaScript/TypeScript project (frontend + backend): strict mode, type design, generics, narrowing, error types, module resolution, tsconfig hygiene. Apply when the project has `tsconfig.json` and `typescript` in devDependencies. Stack-agnostic — referenced by every JS/TS framework plugin in the marketplace. Use this skill to: - Write types that catch bugs at compile time, not runtime. - Use generics, conditional types, and discriminated unions correctly. - Avoid `any`, `unknown`, and unsafe casts. - Match the project's tsconfig strictness level. - Type third-party libraries (with @types/* or declaration files). Do NOT use this skill for: - Plain JavaScript projects (no tsconfig.json). - Framework-specific type idioms (React component props, Vue defineProps, Angular signals — those live in framework plugins' own conventions skills). - tRPC/Zod runtime-validation specifics — handled by validation libs at the boundary.