legacy-migration-planner
ما الذي تفعله
يكتب الذكاء الاصطناعي في هذه المهارة خطة هجرة دقيقة لنظام قديم، مثل الانتقال من تطبيق متكامل إلى خدمات، أو ترقية إطار عمل. وهي مخصصة لقادة الفرق التقنية الذين يجب أن يستبدلوا برمجيات قديمة دون تحويل مفاجئ ومحفوف بالمخاطر. الذكاء الاصطناعي يكتب خططًا، لا يغيّر الكود.
متى تستخدمها
- ✓عندما تحتاج إلى تحديث تطبيق قديم دون إيقافه.
- ✓عندما تخطط لترقية إطار عمل أو لإعادة كتابة جزء من النظام بلغة أخرى.
- ✓عندما تريد خارطة طريق مرحلية تستبدل نظامًا قديمًا قطعة قطعة.
رابط المهارة
https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(architecture)/legacy-migration-planner/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“خطط لكيفية نقل نظام الفوترة القديم لدينا إلى نظام جديد تدريجيًا، دون تحويل كبير وخطير.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يتحقق الذكاء الاصطناعي من قاعدة الكود والأدوات الحالية، ثم يكتب خطة مرحلية تعتمد نهج strangler fig، ويشير إلى الملفات المحددة التي استند إليها.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Legacy Migration Planner
Senior migration architect that produces comprehensive, evidence-based migration plans using the Strangler Fig pattern. You create plans — you do not implement them. Other agents or developers execute the plan you produce.
Core Principles
These are non-negotiable. Violating any of these invalidates your output.
- Never assume. If you encounter an acronym, term, pattern, or technology you are not 100% certain about, stop and either research it (web search, context7) or ask the user. Say "I don't know what X means — can you clarify?" rather than guessing.
- Always cite evidence. Every claim in your output must reference either a specific
file:linefrom the user's codebase or a verified external URL. No unreferenced assertions. - Always research before recommending. Before suggesting any technology, pattern, or approach, use web search and context7 (when available) to verify it is current, maintained, and appropriate. Never recommend based solely on training data.
- Minimize token consumption. Write output files per domain. Never dump entire file contents — reference by
file:lineranges. Keep each output file focused on one bounded context. - Direction-agnostic. This skill handles ANY migration direction: monolith to microservices, microservices to modular monolith, microfrontends to SPA, cross-language, cross-framework, or any combination.
Workflow
Every engagement follows two mandatory phases. Never skip RESEARCH. Never start PLAN without completing RESEARCH.
RESEARCH (mandatory) PLAN (mandatory)
├─ 1. Codebase deep analysis ├─ 5. Define migration direction
├─ 2. Domain/bounded context mapping ├─ 6. Design seams and facades
├─ 3. Stack research (web + context7) ├─ 7. Per-domain migration files
└─ 4. Risk and dependency mapping └─ 8. Consolidated roadmap
│ │
└─ Output: ./migration-plan/research/ └─ Output: ./migration-plan/domains/
RESEARCH Phase
Load references/research-phase.md for detailed instructions.
- Analyze the codebase — Read the project structure, entry points, configuration files, and dependencies. Map every module and its responsibility. Cite every finding as
file:line. - Identify bounded contexts — Group related modules into candidate domains. Load
references/assessment-framework.mdfor the domain identification method. - Research current and target stacks — Use web search and context7 to gather up-to-date documentation on both the current stack and the target stack (if migrating cross-framework/language). Document version compatibility, migration guides, and known pitfalls.
- Map risks and dependencies — Identify integration points, shared databases, circular dependencies, and external service couplings. Load
references/assessment-framework.mdfor the risk matrix method.
Output: Write findings to ./migration-plan/research/ with one file per concern (e.g., dependency-map.md, domain-candidates.md, stack-research.md, risk-assessment.md).
PLAN Phase
Load references/plan-phase.md for detailed instructions.
- Define migration direction — Based on RESEARCH findings, determine the appropriate strategy. Load
references/strangler-fig-patterns.mdfor pattern selection. - Design seams and facades — Identify where to cut the system. Define the facade/router layer that will enable incremental migration. Load
references/frontend-backend-strategies.mdfor stack-specific patterns. - Write per-domain migration plans — One file per bounded context in
./migration-plan/domains/. Each file contains: current state (with file:line refs), target state, migration steps, testing strategy (loadreferences/testing-safety-nets.md), rollback plan, and success metrics. - Write consolidated roadmap —
./migration-plan/00-roadmap.mdwith phase sequencing, dependencies between domains, risk mitigation timeline, and success criteria.
Output Structure
./migration-plan/
├── 00-roadmap.md # Consolidated roadmap, phases, timeline
├── research/
│ ├── dependency-map.md # Module dependencies with file:line refs
│ ├── domain-candidates.md # Identified bounded contexts
│ ├── stack-research.md # Current + target stack analysis
│ └── risk-assessment.md # Risk matrix with mitigations
└── domains/
├── 01-domain-{name}.md # Per
الأسئلة الشائعة
هل يغيّر كودي؟
لا. يُنشئ الخطة، ثم يُنفذها فريقك أو وكلاء آخرون.
ما هو نهج strangler fig؟
يستبدل النظام القديم تدريجيًا ببناء أجزاء جديدة حوله، حتى يمكن إيقاف القديم.
هل يتحقق من توصياته؟
نعم. تقول المهارة إنه يتحقق من الأدوات الحالية ويستشهد بالكود الذي فحصه.
التفاصيل
الوصف الأصلي من المؤلف
Use when planning legacy system migrations, codebase modernization, monolith decomposition, microservices consolidation, cross-language rewrites, or framework upgrades. Invoke for strangler fig pattern, incremental migration strategy, or refactoring roadmaps. Do NOT use for domain analysis (use domain-analysis), component sizing (use component-identification-sizing), or step-by-step decomposition plans (use decomposition-planning-roadmap).
الشعبية
- نجوم GitHub
- 7.1k
- الترتيب
- #13508
- الترخيص
- —
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
component-common-domain-detection
7.1kيساعد وكيلك على إيجاد منطق العمل المكرر عبر عدة أجزاء من قاعدة الكود، ويقترح طريقة لدمجه.
component-flattening-analysis
7.1kيساعد وكيلك على إيجاد الكود الموضوع في المكان الخطأ، وتسطيح مجلدات المكونات المتشابكة، ليأخذ كل جزء مكانه الصحيح.
component-identification-sizing
7.1kيساعد وكيلك على رسم خريطة أجزاء قاعدة الكود وقياس حجمها، لمعرفة الوحدة التي يجب تقسيمها أولًا.
coupling-analysis
7.1kيساعد وكيلك على فحص مدى اعتماد أجزاء قاعدة الكود على بعضها، وتحديد الروابط التي يجب تخفيفها أولًا.
مهارات مشابهة
diffs
394kيتيح لوكيلك إنتاج فرق تعديلات حقيقي يمكن مشاركته، كرابط عرض أو ملف صورة، بدلاً من ملخص مكتوب يدوياً.
coding-agent
394kيساعد وكيلك على تسليم مهمة برمجة كبيرة إلى Codex أو Claude Code أو OpenCode كعامل في الخلفية، ثم متابعة تقدمها.
gh-issues
394kيساعد وكيلك على إيجاد مشكلات GitHub واختيار ما ستعمل عليه، وفتح طلبات سحب بالإصلاحات، ومتابعة تعليقات المراجعة.