شعار Gdd Migrate Context

Gdd Migrate Context

المجتمع
hegemonart
gdd-migrate-context

Migrates a pre-Phase-52 project from the flat .design/map/*.md mapper notes to the typed DesignContext graph at .design/context-graph.json. Reads the old map notes, runs the deterministic extract-*.mjs passes to build mapper fragments, merges them with merge-fragments.mjs, validates the result with validate-design-context.cjs, and flags every low-confidence transform for human review before anything is trusted. Read-first and reversible; --dry-run previews the plan without writing. Use when upgrading a project to the DesignContext graph and .design/map/*.md still holds the only structured design notes. Activates for requests involving migrating design maps, building the context graph from old notes, or DesignContext graph migration.

نظرة عامة

الناشرhegemonart
المستودعget-design-done
اسم المهارةgdd-migrate-context
النجوم
3
التفريعات
1
الملفات المرفقة
تعليمات فقط
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/hegemonart/get-design-done/tree/main/scripts/skill-templates/migrate-context
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hegemonart/get-design-done.git /tmp/get-design-done
mkdir -p .claude/skills
cp -r /tmp/get-design-done/scripts/skill-templates/migrate-context .claude/skills/gdd-migrate-context
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

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

يُحمّل النموذج مهارة Gdd Migrate Context تلقائيًا بمجرد ورود طلب ذي صلة بها.

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

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

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

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

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

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

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

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

{{command_prefix}}migrate-context

Closes the pre-graph gap: before Phase 52 a project recorded its structured design knowledge as flat .design/map/*.md mapper notes (token map, component taxonomy, motion map, a11y map, visual-hierarchy map). Phase 52 introduced the typed DesignContext graph at .design/context-graph.json. This skill carries a project across that boundary: it reads the old map notes, rebuilds the graph deterministically from source, validates it, and surfaces anything it could not transform with confidence so a human can confirm it. It never trusts a low-confidence guess silently.

Contracts: ../../reference/design-context-schema.md (the Node / Edge / Fragment / Graph shapes) and ../../reference/design-context-tag-vocab.md (the controlled tags[] vocabulary).

Invocation

CommandBehavior
{{command_prefix}}migrate-contextRun the full migration: read old maps, extract fragments, merge, validate, then report the low-confidence items for review.
{{command_prefix}}migrate-context --dry-runPreview only. Print the migration plan and what each step would write, change nothing on disk.

Step 1 - Detect the pre-52 state

Read the project layout before touching anything.

  1. List .design/map/*.md. These are the pre-52 mapper notes (for example token-map.md, component-taxonomy.md, motion-map.md, a11y-map.md, visual-hierarchy.md). If the directory is absent or empty, there is nothing to migrate: print No .design/map/*.md notes found; nothing to migrate. and stop.
  2. Check whether .design/context-graph.json already exists. If it does, this is a re-run: keep the existing graph as a backup reference and report that the migration will rebuild it. Do not delete it.
  3. In --dry-run, print the file list and the planned outputs (.design/fragments/<mapper>.json per mapper, then .design/context-graph.json) and stop before Step 2.

Step 2 - Rebuild fragments deterministically

The graph topology comes from the source tree, not from prose. Run each deterministic extractor over the configured source roots (default src/; read source_roots from .design/STATE.md if present). Each extractor is pure, dependency-free, and prints a schema-valid Fragment to stdout.

bash
mkdir -p .design/fragments
for mapper in tokens components motion a11y visual-hierarchy; do
  node "${CLAUDE_PLUGIN_ROOT:-.}/scripts/lib/design-context/extract-${mapper}.mjs" src/ \
    > ".design/fragments/extract-${mapper}.json"
done

The extractors fill id / type / name / subtype / tags / complexity and every edge they can prove; they leave each node summary empty for the summary pass. Use the old .design/map/*.md notes as the source of the human-authored summary text and any tags the extractor could not infer: for each node whose name matches a map entry, copy that note's one-line description into the node summary and add any vocabulary tags it implies. This is the only place prose feeds the graph.

Step 3 - Merge into the canonical graph

Merge the fragments into the single graph. The merger dedupes nodes by id, unions tags, prefers a non-stub summary over the empty stub, and keeps an edge only when both endpoints resolve to a node in some fragment. Dropped dangling edges are reported on stderr as could-not-fix: lines.

bash
node "${CLAUDE_PLUGIN_ROOT:-.}/scripts/lib/design-context/merge-fragments.mjs" \
  .design/fragments --out .design/context-graph.json

Capture the stderr could-not-fix: lines. Each one is a transform the merge could not complete (a map note referenced an entity the extractor never found in source). These are low-confidence items for Step 5, not silent drops.

Step 4 - Validate

Validate the merged graph. The validator checks structure, referential integrity (no dangling edges), unique ids, non-stub summaries (soft warning), and the controlled tag vocabulary (soft warning).

bash
node "${CLAUDE_PLUGIN_ROOT:-.}/scripts/validate-design-context.cjs" .design/context-graph.json

Exit 0 is clean, 1 is warnings only (stub summaries or unknown tags to tidy later), 2 is a hard error (a dangling edge or duplicate id) that must be fixed before the graph is trusted. On exit 2, do not present the graph as migrated: report the errors and stop so a human can resolve them.

Step 5 - Flag low-confidence transforms

Collect everything that needs human eyes and present it as one review list rather than applying it:

  • every could-not-fix: line from the merge (an unresolved or dropped edge);
  • every node still carrying an empty summary after Step 2 (a map note had no matching entity, or no note existed);
  • every validator WARN (stub summary, tag outside the controlled vocabulary).

Print the list with a clear heading and ask the user to confirm or correct each item. Do not auto-resolve a low-confidence transform: a wrong edge or a mislabeled node poisons every later graph query.

Step 6 - Deprecate the old map notes

The flat .design/map/*.md notes stay readable for one minor version so nothing breaks mid-upgrade. Add a one-line deprecation banner to the top of each migrated map note (do not delete the file):

text
> Deprecated: superseded by the DesignContext graph (.design/context-graph.json) as of Phase 52.
> Read-only for one minor version; regenerate the graph with {{command_prefix}}migrate-context.

In --dry-run, describe this banner instead of writing it. Announce that the next minor version may remove the .design/map/*.md notes, and that the graph is now the source of truth.

Do Not

  • Do not trust a low-confidence transform silently. Every could-not-fix: line and every stub goes on the Step 5 review list.
  • Do not delete .design/map/*.md. Add the deprecation banner and keep the notes for one minor version.
  • Do not hand-edit .design/context-graph.json to force validation green. Fix the fragment or the source, then re-merge.
  • Do not edit the extractors, the merger, or the validator. This skill only calls them.

MIGRATE-CONTEXT COMPLETE

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

ماذا تفعل مهارة الذكاء الاصطناعي Gdd Migrate Context؟

Migrates a pre-Phase-52 project from the flat .design/map/*.md mapper notes to the typed DesignContext graph at .design/context-graph.json. Reads the old map notes, runs the deterministic extract-*.mjs passes to build mapper fragments, merges them with merge-fragments.mjs, validates the result with validate-design-context.cjs, and flags every low-confidence transform for human review before anything is trusted. Read-first and reversible; --dry-run previews the plan without writing. Use when upgrading a project to the DesignContext graph and .design/map/*.md still holds the only structured d...

لماذا تستخدم Gdd Migrate Context على TypingMind؟

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

كيف أثبّت Gdd Migrate Context في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/hegemonart/get-design-done/tree/main/scripts/skill-templates/migrate-context. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Gdd Migrate Context؟

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

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Gdd Migrate Context؟

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

هل مهارة الذكاء الاصطناعي Gdd Migrate Context مجانية؟

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

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

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

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

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

عرض الكل

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

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