شعار Deprecation And Migration

Deprecation And Migration

المجتمع
pimenov
deprecation-and-migration

يخطط لإيقاف الأنظمة القديمة وواجهات API والميزات والمخططات والأعلام ومهام cron والتكاملات والإعدادات والمكتبات وتدفقات واجهة المستخدم والعمليات التشغيلية، مع ضمان انتقال آمن واستبدالها وإزالتها. استخدمه عند إيقاف الشيفرة القديمة، أو استبدال تنفيذ، أو إزالة واجهة عامة أو داخلية، أو نقل المستهلكين، أو دمج أنظمة مكررة، أو المفاضلة بين الصيانة والإيقاف، أو كتابة إشعارات الإيقاف، أو إثبات انعدام الاستخدام قبل الحذف، أو عندما تكون لقانون Hyrum أو التوافق أو التراجع أو سلامة البيانات أو مخاطر الإنتاج أو التواصل مع المستهلكين أهمية.

نظرة عامة

الناشرpimenov
المستودعcodex-first-skills-pack
اسم المهارةdeprecation-and-migration
النجوم
28
التفريعات
5
الملفات المرفقة
تعليمات فقط
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها pimenov على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Deprecation And Migration في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/pimenov/codex-first-skills-pack/tree/main/skills/deprecation-and-migration
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/pimenov/codex-first-skills-pack.git /tmp/codex-first-skills-pack
mkdir -p .claude/skills
cp -r /tmp/codex-first-skills-pack/skills/deprecation-and-migration .claude/skills/deprecation-and-migration
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Deprecation And Migration في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Deprecation And Migration تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Deprecation And Migration بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Deprecation and Migration

Overview

Deprecation is not deletion. It is the managed transfer of consumers from old behavior to a safer replacement, followed by evidence-backed removal.

Use this skill to avoid two common failures: keeping legacy systems forever because nobody owns the migration, or deleting "unused" behavior that still has hidden consumers.

Relationship To Other Skills

  • Use context-engineering first when the source of truth, owner, live state, or relevant docs are unclear.
  • Use source-driven-development when migration depends on current vendor docs, SDK changes, platform deprecations, version support, or external API behavior.
  • Use api-and-interface-design when the deprecated surface is an API, schema, event, CLI, config format, or module boundary.
  • Use spec-driven-development when the desired replacement behavior or success criteria are unclear.
  • Use planning-and-task-breakdown to turn the migration into waves, issues, owners, gates, and Definition of Done.
  • Use incremental-implementation to migrate one consumer or slice at a time.
  • Use test-driven-development for compatibility tests, migration fixtures, adapter checks, and regression guards.
  • Use doubt-driven-review before irreversible removal, public deprecation deadlines, production cleanup, data migrations, auth changes, or claims that rollback is safe.
  • Use code-review-and-quality before accepting removal diffs.

Do Not Use

  • Do not use to justify cleanup without consumer evidence.
  • Do not remove production, data, secrets, auth, DNS, billing, cron, routing, webhooks, integrations, or public interfaces without explicit approval.
  • Do not assume code is unused because local search found no references.
  • Do not create a migration plan if there is no replacement, owner, or rollback path. Return a no-go instead.
  • Do not turn every tiny private refactor into a formal migration plan.

Core Loop

Work in this order:

  1. INVENTORY
  2. DECISION
  3. REPLACEMENT
  4. MIGRATION PLAN
  5. ROLLOUT
  6. REMOVAL READINESS
  7. HANDOFF

1. Inventory

Identify what is being deprecated and who depends on it.

Capture:

  • Artifact: code path, route, API, schema, feature flag, workflow, cron, integration, library, config, UI, document, or operational process.
  • Owner: team, person, repo, service, project, or "unknown".
  • Current state: active, deprecated, zombie, duplicate, broken, experimental, replaced, or unknown.
  • Consumers: direct callers, imports, database references, events, dashboards, docs, automations, tests, operators, external customers, partners, agents.
  • Evidence sources: rg, dependency graph, logs, metrics, tracing, analytics, GitHub search, Linear/Notion docs, production config, support history, runbooks, live smoke.
  • Risk surfaces: data loss, auth/permission changes, billing, public API, partner integration, SEO, notifications, scheduled jobs, backups, audit trail.

If the owner or consumers are unknown, start read-only discovery and do not propose removal yet.

2. Decision

Choose the correct posture.

Use these outcomes:

  • Maintain: the old system still has unique value or migration cost exceeds maintenance risk.
  • Freeze: stop adding new features while measuring usage and preparing replacement.
  • Advisory deprecation: migration is recommended, no hard removal date yet.
  • Compulsory deprecation: removal has a deadline because risk or cost is high enough.
  • Emergency disablement: immediate safety issue; use incident handling and explicit approval.
  • Remove now: only when zero usage and rollback/evidence are clear.

For each decision, state:

  • why now;
  • who owns the migration;
  • what happens if nothing changes;
  • what evidence would change the decision;
  • what must not be touched.

3. Replacement

Never deprecate critical behavior without a usable target.

Check replacement readiness:

  • covers critical old use cases;
  • preserves required compatibility or explicitly changes behavior;
  • has docs or examples for consumers;
  • has tests or smoke checks;
  • has operational ownership;
  • has observability for migration progress;
  • has rollback or compatibility shim;
  • has known gaps documented.

If the replacement is not ready, output "No-go: replacement not ready" and list the smallest safe next step.

4. Migration Plan

Plan migration around consumers, not around files.

Define:

  • consumer list and priority;
  • migration waves: canary, low-risk, main, stragglers, final removal;
  • compatibility strategy: adapter, dual-write, read-through, feature flag, redirect, alias, shim, versioned API, or manual process;
  • communication: who needs notice, where it lives, what date or condition matters;
  • verification: tests, logs, metrics, search, dashboards, smoke, old-client fixtures;
  • rollback: how to restore old behavior or pause the wave;
  • stop-lines: metrics, errors, consumer objections, missing owner, data mismatch.

Prefer moving one consumer at a time. If the old and new systems run in parallel, define how divergence is detected.

5. Rollout

Migrate incrementally and keep evidence.

During rollout:

  • migrate a small safe consumer first;
  • verify old and new behavior against the contract;
  • watch errors, latency, volume, data parity, and support signals;
  • update docs and notices as reality changes;
  • keep old path available until removal readiness is proven;
  • record what changed and what stayed untouched.

For production-adjacent systems, separate read-only discovery from mutation. A deprecation plan is not approval to execute the removal.

6. Removal Readiness

Removal requires positive evidence, not just lack of local references.

Before deleting:

  • verify zero active usage through appropriate live evidence;
  • search code, configs, docs, tests, dashboards, runbooks, jobs, queues, and deployment settings;
  • check imports and dependency graphs where possible;
  • check logs/metrics over a relevant time window;
  • confirm no external consumer still has access or contractual expectation;
  • confirm backups, rollback, or restore path;
  • define exact files/services/data/config to remove;
  • define exact checks after removal.

If evidence is incomplete, downgrade to advisory deprecation, add instrumentation, or create a follow-up task.

7. Handoff

Store the plan in the smallest durable layer that matches risk:

  • Chat-only: tiny internal cleanup with no consumers and no live risk.
  • Linear issue/document or Work Packet: project execution, waves, approvals, and owners.
  • Repo docs, ADR, migration guide, or runbook: code-owned technical migration.
  • Notion: human/client-facing explanation, operating procedure, or reusable knowledge.
  • local notes: internal sandbox evidence and repeatable checklist.

For user-facing durable prose, write explanations in the user's language. Keep commands, paths, field names, API identifiers, dates, versions, and product names exact.

Deprecation Notice Shape

Use this compact shape when drafting a notice:

text
Deprecation notice:
- Deprecated surface:
- Replacement:
- Status:
- Reason:
- Affected consumers:
- Migration steps:
- Verification:
- Deadline or removal condition:
- Support/owner:
- Rollback/exception path:

Migration Plan Shape

Use this shape when returning a plan:

text
Migration plan:
- Goal:
- Current surface:
- Replacement:
- Consumers:
- Evidence:
- Decision:
- Waves:
- Compatibility strategy:
- Stop-lines:
- Verification:
- Approval gates:
- Removal readiness:
- Next safe step:

Patterns

Adapter

Keep the old interface while routing it to the new implementation. Use when consumers are hard to change quickly.

Feature Flag

Move consumers by cohort or tenant. Use when rollback needs to be fast and behavior can coexist.

Strangler

Route traffic from old to new gradually. Use for services, routes, and workflows where parallel operation is possible.

Dual-Write Or Shadow Read

Compare old and new outputs before switching authority. Use carefully for data systems; define reconciliation and rollback first.

Alias Or Redirect

Preserve old names while pointing to new names. Use for CLI commands, config keys, URLs, or package exports when compatibility matters.

Zombie Code

Zombie code has active consumers but no owner. Do not delete it casually.

Classify it as one of:

  • assign owner and maintain;
  • instrument and measure;
  • wrap with compatibility boundary;
  • migrate consumers;
  • remove after proven zero usage.

If nobody can own the migration, surface that as the blocker.

Common Rationalizations

RationalizationResponse
"Search found no references."Local search is one evidence source, not proof of zero usage. Check runtime/config/docs where relevant.
"It still works."Working unowned code can still create security, upgrade, and onboarding risk. Compare maintenance cost to migration cost.
"Users will migrate themselves."Consumers need tooling, docs, incentives, deadlines, or owned migration work.
"We can keep both forever."Two systems double testing, docs, incident surface, and cognitive load.
"The replacement is better."Better is not enough. It must cover critical use cases or have explicit behavior changes.
"We can rollback if needed."Name the exact rollback step and prove it before removal.

Red Flags

  • Deprecation without owner.
  • Replacement not production-proven for critical use cases.
  • Deadline without migration tooling or support path.
  • Removing public behavior without consumer audit.
  • Active warnings for months with no migration progress.
  • No metric or log that can prove migration completion.
  • Cleanup bundled with unrelated refactor or deploy.
  • Data deletion hidden inside migration.
  • Deprecated system still receiving new features.

Done Check

  • Deprecated surface, owner, and consumers are named.
  • Evidence sources and gaps are explicit.
  • Decision posture is stated: maintain, freeze, advisory, compulsory, emergency, or remove now.
  • Replacement readiness is proven or the plan is marked no-go.
  • Migration waves, stop-lines, and rollback are defined.
  • Removal readiness uses positive evidence over a relevant window.
  • Approval gates are explicit for production, data, auth, public API, or external systems.
  • Final state is recorded in the correct durable layer.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Deprecation And Migration؟

يخطط لإيقاف الأنظمة القديمة وواجهات API والميزات والمخططات والأعلام ومهام cron والتكاملات والإعدادات والمكتبات وتدفقات واجهة المستخدم والعمليات التشغيلية، مع ضمان انتقال آمن واستبدالها وإزالتها. استخدمه عند إيقاف الشيفرة القديمة، أو استبدال تنفيذ، أو إزالة واجهة عامة أو داخلية، أو نقل المستهلكين، أو دمج أنظمة مكررة، أو المفاضلة بين الصيانة والإيقاف، أو كتابة إشعارات الإيقاف، أو إثبات انعدام الاستخدام قبل الحذف، أو عندما تكون لقانون Hyrum أو التوافق أو التراجع أو سلامة البيانات أو مخاطر الإنتاج أو التواصل مع المستهلكين أهمية.

لماذا تستخدم Deprecation And Migration على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Deprecation And Migration عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Deprecation And Migration في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/pimenov/codex-first-skills-pack/tree/main/skills/deprecation-and-migration. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Deprecation And Migration؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Deprecation And Migration؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Deprecation And Migration معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Deprecation And Migration مجانية؟

نشرها pimenov على GitHub. راجع المستودع للاطلاع على شروط الترخيص. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇