From type-migrator
Converts a JavaScript file to TypeScript with proper type annotations, including interface definitions, import/export syntax, and strict mode configuration.
How this command is triggered — by the user, by Claude, or both
Slash command
/type-migrator:migrate-fileThe summary Claude sees in its command listing — used to decide when to auto-load this command
# /migrate-file - Migrate JS to TypeScript Convert a JavaScript file to TypeScript with proper type annotations. ## Steps 1. Read the target JavaScript file and understand its structure 2. Rename the file from .js to .ts (or .jsx to .tsx for React components) 3. Add TypeScript configuration if tsconfig.json does not exist 4. Infer types from usage patterns: variable assignments, function parameters, return values 5. Add explicit type annotations to function parameters and return types 6. Convert require/module.exports to import/export syntax 7. Add interface definitions for object shapes...
Convert a JavaScript file to TypeScript with proper type annotations.
any types with specific types wherever inferable5plugins reuse this command
First indexed Mar 30, 2026
npx claudepluginhub smarks26/awesome-claude-code-toolkit --plugin type-migrator/migrate-fileConverts a JavaScript file to TypeScript with proper type annotations, including interface definitions, import/export syntax, and strict mode configuration.
/migrate-to-typescriptMigrates a JavaScript project to TypeScript with full type definitions, build system integration, and testing setup.
/tighten-typesTightens weak or missing type annotations in a given source file — replaces `any`, broad types, missing return types, and unsafe casts with precise types, while fixing downstream errors.
/convertConverts between data formats, languages, and schemas (JSON↔TypeScript, SQL↔Prisma, OpenAPI→SDK, GraphQL→TS, CSV↔YAML↔JSON). Accepts file input or paste, plus flags for strictness, optionality, and output.