💬 Framework Migration Legacy Modernize
Framework Migration Legacy Modernize の移行を支援するSkill。メール・Slack等のやりとりをする人向け。
📺 まず動画で見る(YouTube)
▶ 【最新版】Claude(クロード)完全解説!20以上の便利機能をこの動画1本で全て解説 ↗
※ jpskill.com 編集部が参考用に選んだ動画です。動画の内容と Skill の挙動は厳密には一致しないことがあります。
📜 元の英語説明(参考)
Orchestrate a comprehensive legacy system modernization using the strangler fig pattern, enabling gradual replacement of outdated components while maintaining continuous business operations through ex
🇯🇵 日本人クリエイター向け解説
Framework Migration Legacy Modernize の移行を支援するSkill。メール・Slack等のやりとりをする人向け。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o framework-migration-legacy-modernize.zip https://jpskill.com/download/2885.zip && unzip -o framework-migration-legacy-modernize.zip && rm framework-migration-legacy-modernize.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/2885.zip -OutFile "$d\framework-migration-legacy-modernize.zip"; Expand-Archive "$d\framework-migration-legacy-modernize.zip" -DestinationPath $d -Force; ri "$d\framework-migration-legacy-modernize.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
framework-migration-legacy-modernize.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
framework-migration-legacy-modernizeフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-17
- 取得日時
- 2026-05-17
- 同梱ファイル
- 1
💬 こう話しかけるだけ — サンプルプロンプト
- › Framework Migration Legacy Mod で、お客様への返信文を作って
- › Framework Migration Legacy Mod を使って、社内向けアナウンスを書いて
- › Framework Migration Legacy Mod で、メールテンプレートを整備して
これをClaude Code に貼るだけで、このSkillが自動発動します。
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
レガシーコードのモダナイゼーションワークフロー
ストランギュラー・フィグ・パターンを活用し、専門エージェントの連携を通じて、レガシーシステムの包括的なモダナイゼーションをオーケストレーションします。これにより、ビジネスの継続的な運用を維持しながら、時代遅れのコンポーネントを段階的に置き換えることが可能になります。
[補足: ストランギュラー・フィグ・パターンは、熱帯のイチジクの木が宿主を徐々に包み込み、置き換えていく様子にちなんで名付けられ、リスクを管理したレガシーモダナイゼーションのゴールドスタンダードとされています。このワークフローは、新しい機能がレガシーコンポーネントを段階的に置き換え、移行中に両システムが共存できるようにする体系的なアプローチを実装しています。評価、テスト、セキュリティ、実装に特化したエージェントをオーケストレーションすることで、各移行フェーズが次のフェーズに進む前に検証されることを保証し、中断を最小限に抑えながらモダナイゼーションの速度を最大化します。]
このスキルを使用する場面
- レガシーコードのモダナイゼーションワークフローのタスクやワークフローに取り組んでいる場合
- レガシーコードのモダナイゼーションワークフローに関するガイダンス、ベストプラクティス、またはチェックリストが必要な場合
このスキルを使用しない場面
- タスクがレガシーコードのモダナイゼーションワークフローと無関係な場合
- この範囲外の異なるドメインやツールが必要な場合
指示
- 目標、制約、必要な入力を明確にしてください。
- 関連するベストプラクティスを適用し、結果を検証してください。
- 実用的な手順と検証を提供してください。
- 詳細な例が必要な場合は、
resources/implementation-playbook.mdを開いてください。
フェーズ1:レガシー評価とリスク分析
1. 包括的なレガシーシステム分析
- subagent_type="legacy-modernizer"のTaskツールを使用します。
- プロンプト:「$ARGUMENTSにあるレガシーコードベースを分析してください。古い依存関係、非推奨のAPI、セキュリティ脆弱性、パフォーマンスのボトルネック、アーキテクチャのアンチパターンを含む技術的負債のインベントリを文書化してください。コンポーネントの複雑度スコア(1-10)、依存関係マッピング、データベース結合分析を含むモダナイゼーション準備レポートを生成してください。クイックウィンと複雑なリファクタリングのターゲットを特定してください。」
- 期待される出力:リスクマトリックスとモダナイゼーションの優先順位を含む詳細な評価レポート
2. 依存関係と統合のマッピング
- subagent_type="architect-review"のTaskツールを使用します。
- プロンプト:「レガシー評価レポートに基づいて、内部モジュール依存関係、外部サービス統合、共有データベーススキーマ、クロスシステムデータフローを示す包括的な依存関係グラフを作成してください。移行中にファサードパターンまたはアダプター層が必要となる統合ポイントを特定してください。解決が必要な循環依存関係と密結合を強調表示してください。」
- 以前のコンテキスト:レガシー評価レポート、コンポーネントの複雑度スコア
- 期待される出力:視覚的な依存関係マップと統合ポイントカタログ
3. ビジネスインパクトとリスク評価
- subagent_type="business-analytics::business-analyst"のTaskツールを使用します。
- プロンプト:「特定された各コンポーネントをモダナイズすることのビジネスインパクトを評価してください。ビジネスの重要性(収益への影響)、ユーザーのトラフィックパターン、データの機密性、規制要件、フォールバックの複雑さを考慮したリスク評価マトリックスを作成してください。重み付けスコアリングシステム(ビジネス価値 × 0.4)+(技術的リスク × 0.3)+(クイックウィンの可能性 × 0.3)を使用してコンポーネントを優先順位付けしてください。各コンポーネントのロールバック戦略を定義してください。」
- 以前のコンテキスト:コンポーネントインベントリ、依存関係マッピング
- 期待される出力:リスク軽減戦略を含む優先順位付けされた移行ロードマップ
フェーズ2:テストカバレッジの確立
1. レガシーコードのテストカバレッジ分析
- subagent_type="unit-testing::test-automator"のTaskツールを使用します。
- プロンプト:「$ARGUMENTSにあるレガシーコンポーネントの既存のテストカバレッジを分析してください。カバレッジツールを使用して、テストされていないコードパス、不足している統合テスト、および存在しないエンドツーエンドシナリオを特定してください。カバレッジが40%未満のコンポーネントについては、機能を変更せずに現在の動作をキャプチャする特性化テストを生成してください。安全なリファクタリングのためのテストハーネスを作成してください。」
- 期待される出力:テストカバレッジレポートと特性化テストスイート
2. 契約テストの実装
- subagent_type="unit-testing::test-automator"のTaskツールを使用します。
- プロンプト:「依存関係マッピングで特定されたすべての統合ポイントに対して契約テストを実装してください。API、メッセージキューの相互作用、およびデータベーススキーマのコンシューマー駆動型契約を作成してください。CI/CDパイプラインで契約検証を設定してください。モダナイズされたコンポーネントがSLAを維持することを確認するために、応答時間とスループットのパフォーマンスベースラインを生成してください。」
- 以前のコンテキスト:統合ポイントカタログ、既存のテストカバレッジ
- 期待される出力:パフォーマンスベースラインを含む契約テストスイート
3. テストデータ管理戦略
- subagent_type="data-engineering::data-engineer"のTaskツールを使用します。
- プロンプト:「並行システム運用のためのテストデータ管理戦略を設計してください。エッジケース用のデータ生成スクリプトを作成し、機密情報のためのデータマスキングを実装し、テストデータベースの更新手順を確立してください。移行中にレガシーコンポーネントとモダナイズされたコンポーネント間のデータ整合性を監視する設定を行ってください。」
- 以前のコンテキスト:データベーススキーマ、テスト要件
- 期待される出力:テストデータパイプラインと整合性監視
フェーズ3:段階的な移行の実装
1. ストランギュラー・フィグ・インフラストラクチャのセットアップ
- subagent_type="backend-development::backend-architect"のTaskツールを使用します。
- プロンプト:「トラフィックルーティングのためのAPIゲートウェイを備えたストランギュラー・フィグ・インフラストラクチャを実装してください。環境変数または機能管理サービスを使用して、段階的なロールアウトのための機能フラグを設定してください。URLパターン、ヘッダー、またはユーザーセグメントに基づいてリクエストルーティングルールを持つプロキシ層を設定してください。回復力のためのサーキットブレーカーとフォールバックメカニズムを実装してください。デュアルシステム監視のためのオブザーバビリティダッシュボードを作成してください。」
- 期待される出力:APIゲートウェイ構成、機能フラグシステム、監視ダッシュボード
2. コンポーネントのモダナイゼーション - 第一波
- subagent_type="python-development::python-pro"または"golang-pro"(ターゲットスタックに基づく)のTaskツールを使用します。
- プロンプト:「第一波のモダナイゼーションを
(原文がここで切り詰められています)
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Legacy Code Modernization Workflow
Orchestrate a comprehensive legacy system modernization using the strangler fig pattern, enabling gradual replacement of outdated components while maintaining continuous business operations through expert agent coordination.
[Extended thinking: The strangler fig pattern, named after the tropical fig tree that gradually envelops and replaces its host, represents the gold standard for risk-managed legacy modernization. This workflow implements a systematic approach where new functionality gradually replaces legacy components, allowing both systems to coexist during transition. By orchestrating specialized agents for assessment, testing, security, and implementation, we ensure each migration phase is validated before proceeding, minimizing disruption while maximizing modernization velocity.]
Use this skill when
- Working on legacy code modernization workflow tasks or workflows
- Needing guidance, best practices, or checklists for legacy code modernization workflow
Do not use this skill when
- The task is unrelated to legacy code modernization workflow
- You need a different domain or tool outside this scope
Instructions
- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
- If detailed examples are required, open
resources/implementation-playbook.md.
Phase 1: Legacy Assessment and Risk Analysis
1. Comprehensive Legacy System Analysis
- Use Task tool with subagent_type="legacy-modernizer"
- Prompt: "Analyze the legacy codebase at $ARGUMENTS. Document technical debt inventory including: outdated dependencies, deprecated APIs, security vulnerabilities, performance bottlenecks, and architectural anti-patterns. Generate a modernization readiness report with component complexity scores (1-10), dependency mapping, and database coupling analysis. Identify quick wins vs complex refactoring targets."
- Expected output: Detailed assessment report with risk matrix and modernization priorities
2. Dependency and Integration Mapping
- Use Task tool with subagent_type="architect-review"
- Prompt: "Based on the legacy assessment report, create a comprehensive dependency graph showing: internal module dependencies, external service integrations, shared database schemas, and cross-system data flows. Identify integration points that will require facade patterns or adapter layers during migration. Highlight circular dependencies and tight coupling that need resolution."
- Context from previous: Legacy assessment report, component complexity scores
- Expected output: Visual dependency map and integration point catalog
3. Business Impact and Risk Assessment
- Use Task tool with subagent_type="business-analytics::business-analyst"
- Prompt: "Evaluate business impact of modernizing each component identified. Create risk assessment matrix considering: business criticality (revenue impact), user traffic patterns, data sensitivity, regulatory requirements, and fallback complexity. Prioritize components using a weighted scoring system: (Business Value × 0.4) + (Technical Risk × 0.3) + (Quick Win Potential × 0.3). Define rollback strategies for each component."
- Context from previous: Component inventory, dependency mapping
- Expected output: Prioritized migration roadmap with risk mitigation strategies
Phase 2: Test Coverage Establishment
1. Legacy Code Test Coverage Analysis
- Use Task tool with subagent_type="unit-testing::test-automator"
- Prompt: "Analyze existing test coverage for legacy components at $ARGUMENTS. Use coverage tools to identify untested code paths, missing integration tests, and absent end-to-end scenarios. For components with <40% coverage, generate characterization tests that capture current behavior without modifying functionality. Create test harness for safe refactoring."
- Expected output: Test coverage report and characterization test suite
2. Contract Testing Implementation
- Use Task tool with subagent_type="unit-testing::test-automator"
- Prompt: "Implement contract tests for all integration points identified in dependency mapping. Create consumer-driven contracts for APIs, message queue interactions, and database schemas. Set up contract verification in CI/CD pipeline. Generate performance baselines for response times and throughput to validate modernized components maintain SLAs."
- Context from previous: Integration point catalog, existing test coverage
- Expected output: Contract test suite with performance baselines
3. Test Data Management Strategy
- Use Task tool with subagent_type="data-engineering::data-engineer"
- Prompt: "Design test data management strategy for parallel system operation. Create data generation scripts for edge cases, implement data masking for sensitive information, and establish test database refresh procedures. Set up monitoring for data consistency between legacy and modernized components during migration."
- Context from previous: Database schemas, test requirements
- Expected output: Test data pipeline and consistency monitoring
Phase 3: Incremental Migration Implementation
1. Strangler Fig Infrastructure Setup
- Use Task tool with subagent_type="backend-development::backend-architect"
- Prompt: "Implement strangler fig infrastructure with API gateway for traffic routing. Configure feature flags for gradual rollout using environment variables or feature management service. Set up proxy layer with request routing rules based on: URL patterns, headers, or user segments. Implement circuit breakers and fallback mechanisms for resilience. Create observability dashboard for dual-system monitoring."
- Expected output: API gateway configuration, feature flag system, monitoring dashboard
2. Component Modernization - First Wave
- Use Task tool with subagent_type="python-development::python-pro" or "golang-pro" (based on target stack)
- Prompt: "Modernize first-wave components (quick wins identified in assessment). For each component: extract business logic from legacy code, implement using modern patterns (dependency injection, SOLID principles), ensure backward compatibility through adapter patterns, maintain data consistency with event sourcing or dual writes. Follow 12-factor app principles. Components to modernize: [list from prioritized roadmap]"
- Context from previous: Characterization tests, contract tests, infrastructure setup
- Expected output: Modernized components with adapters
3. Security Hardening
- Use Task tool with subagent_type="security-scanning::security-auditor"
- Prompt: "Audit modernized components for security vulnerabilities. Implement security improvements including: OAuth 2.0/JWT authentication, role-based access control, input validation and sanitization, SQL injection prevention, XSS protection, and secrets management. Verify OWASP top 10 compliance. Configure security headers and implement rate limiting."
- Context from previous: Modernized component code
- Expected output: Security audit report and hardened components
Phase 4: Performance Validation and Optimization
1. Performance Testing and Optimization
- Use Task tool with subagent_type="application-performance::performance-engineer"
- Prompt: "Conduct performance testing comparing legacy vs modernized components. Run load tests simulating production traffic patterns, measure response times, throughput, and resource utilization. Identify performance regressions and optimize: database queries with indexing, caching strategies (Redis/Memcached), connection pooling, and async processing where applicable. Validate against SLA requirements."
- Context from previous: Performance baselines, modernized components
- Expected output: Performance test results and optimization recommendations
2. Progressive Rollout and Monitoring
- Use Task tool with subagent_type="deployment-strategies::deployment-engineer"
- Prompt: "Implement progressive rollout strategy using feature flags. Start with 5% traffic to modernized components, monitor error rates, latency, and business metrics. Define automatic rollback triggers: error rate >1%, latency >2x baseline, or business metric degradation. Create runbook for traffic shifting: 5% → 25% → 50% → 100% with 24-hour observation periods."
- Context from previous: Feature flag configuration, monitoring dashboard
- Expected output: Rollout plan with automated safeguards
Phase 5: Migration Completion and Documentation
1. Legacy Component Decommissioning
- Use Task tool with subagent_type="legacy-modernizer"
- Prompt: "Plan safe decommissioning of replaced legacy components. Verify no remaining dependencies through traffic analysis (minimum 30 days at 0% traffic). Archive legacy code with documentation of original functionality. Update CI/CD pipelines to remove legacy builds. Clean up unused database tables and remove deprecated API endpoints. Document any retained legacy components with sunset timeline."
- Context from previous: Traffic routing data, modernization status
- Expected output: Decommissioning checklist and timeline
2. Documentation and Knowledge Transfer
- Use Task tool with subagent_type="documentation-generation::docs-architect"
- Prompt: "Create comprehensive modernization documentation including: architectural diagrams (before/after), API documentation with migration guides, runbooks for dual-system operation, troubleshooting guides for common issues, and lessons learned report. Generate developer onboarding guide for modernized system. Document technical decisions and trade-offs made during migration."
- Context from previous: All migration artifacts and decisions
- Expected output: Complete modernization documentation package
Configuration Options
- --parallel-systems: Keep both systems running indefinitely (for gradual migration)
- --big-bang: Full cutover after validation (higher risk, faster completion)
- --by-feature: Migrate complete features rather than technical components
- --database-first: Prioritize database modernization before application layer
- --api-first: Modernize API layer while maintaining legacy backend
Success Criteria
- All high-priority components modernized with >80% test coverage
- Zero unplanned downtime during migration
- Performance metrics maintained or improved (P95 latency within 110% of baseline)
- Security vulnerabilities reduced by >90%
- Technical debt score improved by >60%
- Successful operation for 30 days post-migration without rollbacks
- Complete documentation enabling new developer onboarding in <1 week
Target: $ARGUMENTS
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.