Registry / pproenca

pproenca/dot-skills/migrate-js-to-modern-typescript

Migrating a JavaScript codebase to TypeScript — converting .js files to .ts, adding types to existing JS, or tightening a loosely-typed TS project toward strict mode. Covers tsconfig and allowJs strategy, incremental strict-flag ratcheting (noImplicitAny, strictNullChecks, noUncheckedIndexedAccess), typing public surfaces, replacing `any` and unsafe casts with `unknown` and narrowing, validating runtime boundaries (JSON, env, API responses), converting CommonJS to ESM and prototypes to classes,

Agent skill · version 0.0.0-master.1794325646.gcf93c57 · from pproenca/dot-skills

Install

npx yarkr-cli add skill:pproenca/dot-skills/migrate-js-to-modern-typescript

Without Node.js, on macOS and Linux (curl or wget):

curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:pproenca/dot-skills/migrate-js-to-modern-typescript
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:pproenca/dot-skills/migrate-js-to-modern-typescript

On Windows, in PowerShell:

irm https://yarkr.com/install.ps1 | iex; yarkr add skill:pproenca/dot-skills/migrate-js-to-modern-typescript

Works with Claude Code, Codex, opencode, Cursor, any harness over MCP.