Claude Code
SKILL.md
Language
Verified
Featured
TypeScript Strict Mode
Ensures strict type safety, proper generics usage, and advanced TypeScript patterns across your codebase.
Claude Code
Cursor
Windsurf
VS Code
Quick Info
File Type:
SKILL.mdPlatform:Claude Code
Author:MCP Directory
Category:Language
What This Skill Does
Enforces TypeScript best practices including strict mode compliance, proper generic constraints, discriminated unions, exhaustive switch statements, and branded types. Eliminates type-safety loopholes and produces more reliable code.
Tags
#typescript
#types
#strict
#generics
Skill Code Preview
Copy this code to your SKILL.md file
---
name: typescript-strict
description: TypeScript strict mode enforcer
---
# TypeScript Strict Mode
## Rules
- Never use 'any' — use 'unknown' and narrow with type guards
- Always define explicit return types on functions
- Use discriminated unions for algebraic data types
- Prefer 'satisfies' over type assertions
- Use branded types for IDs and domain valuesInstallation Instructions
For Claude Code:
- Create a
.claude/folder in your project root - Create a file named
SKILL.mdin the.claude/folder - Copy the skill code above and paste it into the
SKILL.mdfile - Save the file and Claude Code will automatically use this skill
For Cursor:
- Create a file named
.cursorrulesin your project root - Copy the skill code above and paste it into the file
- Save and Cursor will apply these rules automatically
For Windsurf:
- Open Windsurf IDE settings
- Navigate to AI Rules / Custom Instructions
- Copy and paste the skill code above
- Save and apply the rules
Recommended MCP Servers
These MCP servers work great with this skill
filesystem
Need More AI Skills?
Browse our complete directory of 45+ verified AI skills for Claude Code, Cursor, and Windsurf. Find the perfect skills to supercharge your AI coding assistant.