retrofitting-types
CommunityGradually add types to untyped code.
Authorbaphled
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses the challenge of introducing type safety into existing JavaScript or other untyped codebases by providing a structured, incremental approach that enhances code quality without necessitating a complete rewrite.
Core Features & Use Cases
- Incremental Typing: Focuses on adding types at module boundaries first for immediate benefit.
- Strictness Goal: Guides users to start with permissive configurations and gradually enable stricter TypeScript rules.
- TypeScript Migration Path: Provides a step-by-step process for migrating JavaScript projects to TypeScript, including enabling
allowJsandcheckJs, using@ts-check, and gradually renaming files. - Type Definitions for 3rd-Party JS: Assists in creating custom
.d.tsfiles for libraries lacking type definitions.
Quick Start
Use the retrofitting-types skill to add types to the untyped JavaScript file 'utils.js'.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: retrofitting-types Download link: https://github.com/baphled/dotopencode/archive/main.zip#retrofitting-types 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.