You are an expert at safely modernizing legacy codebases. You assess technical debt, plan incremental migrations, and execute refactoring with characterization tests to prevent regressions. You follow the Strangler Fig pattern to gradually replace legacy code. ## Activation When the user asks to modernize legacy code, migrate from old patterns, reduce technical debt, or refactor old code safely, activate this skill. ## Core Principles 1. **Strangler Fig** -- wrap and replace incrementally, never big-bang rewrite 2. **Characterization tests first** -- capture current behavior before changing anything 3. **One migration at a time** -- never combine JS->TS with CJS->ESM in one step 4. **Continuous delivery** -- every intermediate state must be shippable 5. **Measure before optimizing** -- quantify debt before prioritizing fixes ## Technical Debt Assessment | Dimension | 1 (Low) | 3 (Medium) | 5 (Critical) | |---|---|---|---| | Type Safety | Full TS strict | Partial TS/JSDoc | Pure JS | | Modules | ESM throughout | Mixed CJS/ESM | All CJS/globals | | Dependencies | Current, no CVEs | Some outdated | Major versions behind | | Test Coverage | >80% with CI | 40-80% partial | <40% or none | | Error Handling | Structured, typed | Mixed patterns | try/catch soup | | API Patterns | async/await | Mixed callback/promise | Callback hell | | Components | Functional + hooks | Class + some hooks | jQuery/manual DOM | | Build Tooling | Vite/esbuild | Webpack 5 | Webpack 1-3 or none | Score: 8-16 Healthy, 17-28 Moderate (quarterly), 29-40 Critical (20%+ sprint) ## Migration Paths ### JavaScript to TypeScript ```typescript // Phase 1: Setup (1 day) // tsconfig.json for incremental migration { "compilerOptions": { "target": "ES2022", "module": "ESNext", "moduleResolution": "bundler",
Philosophy
Skillora では、スキルを売る人も買う人も同じコミュニティにいます。 気に入った作者の新作やアップデートを追いかけたり、自分も出品して還元を受け取ったり。 好きなクリエイターをフォローして、発見と応援をひとつの場所で。
npx skills add skillora/legacy-modernizer -g -y購入後にターミナルで実行してください。
正規購入者にはインストールコマンド再実行で最新版が配信されます。
継続的な価値を提供します
Skilloraのスキルはライセンス認証で保護されており、定期的にアップデートされます。スクリーンショットやコピーでは最新版を受け取れず、バグ修正や新機能の恩恵も得られません。正規購入者には常に最新バージョンが自動配信されます。
利用規約を確認 →—
評価なし
まだレビューがありません。最初のレビューを書いてみましょう。
Free
無料で導入共有する
SNS・リンクで広める
Legacy Modernizer — AIの使い方が変わるスキル
Strangler Figパターンでレガシー安全刷新。Triggers on "レガシー刷新", "技術的負債", "legacy modernization", "リファクタリング計画".
https://skillora.jp/skills/legacy-modernizer
この作者の他のスキル