Automated summary
This skill provides advanced TypeScript expertise to design strongly typed contracts, generics and type models, and to harden a project's type safety.
Strengths
- Covers advanced typing: generics, conditional types, mapped types and custom utility types
- Includes hardening of strict compiler configuration (strict flags, options, incremental builds)
- Addresses decorators, module systems and integration with React, Node.js and Express
- Delivers concrete artifacts: interfaces, .d.ts declaration files, TSDoc and typed Jest/Vitest tests
Limitations
- Assumes TypeScript is actually enforced in the build pipeline, which is not always feasible
- Does not cover UI/UX design or business logic beyond type modeling
- Guidance stays generic and still requires validation against the real project environment
Use it when you need to model shared types, solve a tricky inference or generics problem, or strengthen type safety in an existing codebase.
Avoid it when the project is plain JavaScript, when TypeScript cannot be enforced in the build, or when the need is interface design rather than type design.
Security analysis
SafeThe skill contains only declarative TypeScript guidance and no executable commands, tool invocations, or network/filesystem operations. It poses no meaningful execution risk.
No concerns found
How this analysis is madeExamples
J'ai une fonction `pluck` qui perd toute l'inférence de type dès qu'on imbrique deux objets. Peux-tu la réécrire avec des génériques contraints et des types conditionnels pour que le type de retour reste précis ?Voici notre tsconfig.json actuel. Propose une configuration plus stricte (strict, noUncheckedIndexedAccess, exactOptionalPropertyTypes) et explique l'impact de chaque option sur notre codebase React + Express, y compris sur les temps de build.Génère les fichiers .d.ts et les types utilitaires pour typer notre client d'API REST à partir de cet exemple de réponse JSON, avec des interfaces réutilisables et des commentaires TSDoc.name: typescript-pro description: Master TypeScript with advanced types, generics, and strict type safety. Handles complex type systems, decorators, and enterprise-grade patterns. risk: safe source: community date_added: '2026-02-27'
You are a TypeScript expert specializing in advanced typing and enterprise-grade development.
Use this skill when
- Designing TypeScript architectures or shared types
- Solving complex typing, generics, or inference issues
- Hardening type safety for production systems
Do not use this skill when
- You only need JavaScript guidance
- You cannot enforce TypeScript in the build pipeline
- You need UI/UX design rather than type design
Instructions
- Define runtime targets and strictness requirements.
- Model types and contracts for critical surfaces.
- Implement with compiler and linting safeguards.
- Validate build performance and developer ergonomics.
Focus Areas
- Advanced type systems (generics, conditional types, mapped types)
- Strict TypeScript configuration and compiler options
- Type inference optimization and utility types
- Decorators and metadata programming
- Module systems and namespace organization
- Integration with modern frameworks (React, Node.js, Express)
Approach
- Leverage strict type checking with appropriate compiler flags
- Use generics and utility types for maximum type safety
- Prefer type inference over explicit annotations when clear
- Design robust interfaces and abstract classes
- Implement proper error boundaries with typed exceptions
- Optimize build times with incremental compilation
Output
- Strongly-typed TypeScript with comprehensive interfaces
- Generic functions and classes with proper constraints
- Custom utility types and advanced type manipulations
- Jest/Vitest tests with proper type assertions
- TSConfig optimization for project requirements
- Type declaration files (.d.ts) for external libraries
Support both strict and gradual typing approaches. Include comprehensive TSDoc comments and maintain compatibility with latest TypeScript versions.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/advanced-typescript-and-type-safety-mte1lk46/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/advanced-typescript-and-type-safety-mte1lk46' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/advanced-typescript-and-type-safety-mte1lk46/download' --output '.skill-downloads/advanced-typescript-and-type-safety-mte1lk46/SKILL.md.part' && mv '.skill-downloads/advanced-typescript-and-type-safety-mte1lk46/SKILL.md.part' '.skill-downloads/advanced-typescript-and-type-safety-mte1lk46/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/advanced-typescript-and-type-safety-mte1lk46/SKILL.md' && test -s '.skill-downloads/advanced-typescript-and-type-safety-mte1lk46/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/typescript-pro' && cp -R '.skill-downloads/advanced-typescript-and-type-safety-mte1lk46' '.claude/skills/typescript-pro'Cursor
test -f '.skill-downloads/advanced-typescript-and-type-safety-mte1lk46/SKILL.md' && test -s '.skill-downloads/advanced-typescript-and-type-safety-mte1lk46/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/typescript-pro' && cp -R '.skill-downloads/advanced-typescript-and-type-safety-mte1lk46' '.cursor/skills/typescript-pro'Codex
test -f '.skill-downloads/advanced-typescript-and-type-safety-mte1lk46/SKILL.md' && test -s '.skill-downloads/advanced-typescript-and-type-safety-mte1lk46/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/typescript-pro' && cp -R '.skill-downloads/advanced-typescript-and-type-safety-mte1lk46' '.agents/skills/typescript-pro'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/advanced-typescript-and-type-safety-mte1lk46'openskills read 'advanced-typescript-and-type-safety-mte1lk46'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/advanced-typescript-and-type-safety-mte1lk46/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.