The TypeScript Refactor skill equips Claude Code to systematically migrate JavaScript and Next.js projects to strict TypeScript while maintaining code stability. Supporting both active file-by-file refactoring and non-destructive type audits, it guides developers through enabling strict tsconfig options, replacing implicit any usages with narrow types, inferring React prop types, and safely handling Next.js server and client component distinctions. It is ideal for teams modernizing legacy React codebases, standardizing enterprise type systems, or conducting pre-migration assessments without introducing runtime regressions.
주요 기능
01Strict type inference with explicit return types and avoidance of implicit any
02Baseline and post-migration verification using compiler-level tsc validation
03Leaf-first incremental module renaming and conversion for React and Next.js
04Safe integration with ts-morph codemods for scalable, large-repo conversions
050 GitHub stars
06Dual-mode execution offering complete file migration or non-destructive type audits
사용 사례
01Migrating legacy React or Next.js codebases from JavaScript to strict TypeScript
02Auditing repositories to identify missing return types, unsafe casts, and untyped modules
03Strengthening tsconfig configurations to pass strict noImplicitAny without breaking builds