typescript-pedantry
CommunityWrite robust, type-safe TypeScript code.
Authoroborchers
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill enforces strict TypeScript best practices, preventing common bugs related to type safety, runtime validation, and code maintainability.
Core Features & Use Cases
- Strict Type Safety: Enforces
strict: trueintsconfig.jsonand promotes discriminated unions over unsafe type assertions. - Runtime Validation: Integrates Zod for validating data at system boundaries, ensuring type safety even with external inputs.
- Code Maintainability: Guides on using barrel exports,
as const, and template literal types for cleaner, more robust code. - Use Case: When refactoring a JavaScript codebase to TypeScript, or when encountering runtime errors due to type mismatches, this Skill provides the rules and patterns to write truly type-safe TypeScript.
Quick Start
Apply the typescript-pedantry skill to ensure all TypeScript code adheres to strict type-checking rules and uses discriminated unions for variant types.
Dependency Matrix
Required Modules
None requiredComponents
scriptsreferences
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: typescript-pedantry Download link: https://github.com/oborchers/fractional-cto/archive/main.zip#typescript-pedantry Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.