typescript

Enforces TypeScript strict mode with ESLint, Jest testing, and CI quality gates.

Updated Jan 16, 2026
One-click install
npx skills add https://github.com/dudqks0319-cpu/antigravity-skills --skill typescript-dudqks0319-cpu
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: typescript
Source: https://github.com/dudqks0319-cpu/antigravity-skills/tree/main/typescript
Command: npx skills add https://github.com/dudqks0319-cpu/antigravity-skills --skill typescript-dudqks0319-cpu

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires typescript, eslint, typescript-eslint, jest, prettier, husky, lint-staged, zod.

What problem does it solve? TypeScript projects often suffer from inconsistent type safety, weak linting rules, and missing test coverage, leading to runtime bugs that strict compile-time checks would have caught. ## Core Features & Use Cases - Strict Compiler Configuration: Provides a non-negotiable tsconfig.json with strict mode, noImplicitAny, strictNullChecks, and unused code detection. - Linting and Testing Toolchain: Configures typescript-eslint with strictTypeChecked rules, Jest unit tests with coverage thresholds, and Prettier formatting. - CI and Pre-Commit Automation: Includes GitHub Actions quality gates and Husky pre-commit hooks that run lint, typecheck, and tests on every commit. - Use Case: When starting a new Node.js backend, apply this Skill to scaffold the project structure, enforce discriminated unions and branded types, and block commits that fail type checks. ## Quick Start Set up my TypeScript project with strict mode, ESLint, Jest tests, and pre-commit hooks following the typescript skill guidelines.

Frequently Asked Questions about typescript

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enable strict mode in TypeScript?▼

Enable strict mode by setting "strict": true in tsconfig.json compilerOptions, which activates noImplicitAny, strictNullChecks, and related checks. Add noUnusedLocals, noUnusedParameters, and noImplicitReturns for complete coverage.

How to set up ESLint with TypeScript strict rules?▼

Use typescript-eslint with the strictTypeChecked config in a flat eslint.config.js file. Recommended custom rules include banning explicit any, requiring explicit function return types, and limiting function length to 20 lines.

Should I use Zod or TypeScript interfaces for validation?▼

Use Zod for runtime validation of external data like API responses, since TypeScript types are erased at runtime. Derive static types from Zod schemas with z.infer to keep both in sync.

Why should I avoid the any type in TypeScript?▼

The any type disables all type checking, allowing runtime errors that strict mode is designed to prevent. Use unknown instead and narrow with type guards, or use discriminated unions for structured error handling.

How do I run type checks before every git commit?▼

Install Husky and lint-staged, then configure the pre-commit hook to run eslint --fix, tsc --noEmit, and Jest with --onlyChanged. This blocks commits containing type errors or failing tests.