Logo van Gdd Migrate Context

Gdd Migrate Context

Community
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.

Overzicht

Uitgeverhegemonart
Repositoryget-design-done
Skillnaamgdd-migrate-context
Sterren
3
Forks
1
Meegeleverde bestanden
Alleen instructies
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door hegemonart op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Gdd Migrate Context in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/hegemonart/get-design-done/tree/main/scripts/skill-templates/migrate-context
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

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
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Gdd Migrate Context in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Gdd Migrate Context automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Gdd Migrate Context niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

{{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

Veelgestelde vragen

Wat doet de AI-skill 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...

Waarom Gdd Migrate Context gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Gdd Migrate Context bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Gdd Migrate Context in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/hegemonart/get-design-done/tree/main/scripts/skill-templates/migrate-context. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Gdd Migrate Context gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Gdd Migrate Context gebruiken?

Zoveel als je wilt. Je kunt Gdd Migrate Context gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Gdd Migrate Context gratis?

Ja. Deze skill is door hegemonart op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇