Logo di Zard Migration

Zard Migration

OrganizzazionePopolare
zard-ui
zard-migration

Migrates a project whose installed zard/ui component source predates the current registry — components are copied into the project by zard-cli, so nothing upgrades them on its own. Applies when a project's zard/ui source uses a name the current registry no longer publishes (`divider`, `loader`, `radio`, `progress-bar`, `toast`, `menu`, `form`, `tree`, `layout`, `segmented`), when a component's shape doesn't match its current documentation (card, pagination, input-group), or when asked to "migrate to the latest zard-ui", "upgrade this project's zard components", or "why doesn't zard-cli add match what's already here". Not for a fresh install — that's the `zard` skill.

Panoramica

Pubblicato dazard-ui
Repositoryzardui
Nome della skillzard-migration
Stelle
1.2K
Fork
97
File inclusi
2
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 2

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da zard-ui su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Zard Migration in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/zard-ui/zardui/tree/master/skills/zard-migration
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/zard-ui/zardui.git /tmp/zardui
mkdir -p .claude/skills
cp -r /tmp/zardui/skills/zard-migration .claude/skills/zard-migration
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Zard Migration in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Zard Migration non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Zard Migration non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

zard-migration

Migrates a project's installed zard/ui component source to match the current registry.

Why this is invoked explicitly

The zard skill is user-invocable: false — it engages passively, on any zard/ui work. This one is user-invocable: true: overwriting installed component files is consequential and worth a deliberate ask ("migrate this project to the latest zard-ui"), not something that should fire silently the moment an assistant notices an old selector while doing unrelated work.

Read ../zard/SKILL.md first if this project has not been worked on this session — it covers components.json, the CLI, the registry and the MCP server, all of which this guide assumes.

What you will lose

zard-cli add <name> --overwrite replaces the local files wholesale. Any edit made inside a component's own files — a tweaked class, an added input, a changed template — is discarded, silently, file by file. Edits kept in the theme CSS, in a new CVA variant, or in a wrapper component survive, because those files are not part of the registry item.

Never run --overwrite without the user's explicit approval, and diff before you overwrite: read the installed file and the registry's current version (get-component over MCP, or the published https://zardui.com/docs/components/<name>.md) before deciding whether the local copy has changes worth keeping.

1. Detect what version this project is on

There is no version field in components.json — a project on the current registry and a project two years behind both look identical at that level. The signal is in the installed files themselves.

Fast check: does anything installed no longer exist in the registry?

List the components directory (aliases.components in components.json) and compare its folder names against apps/web/public/r/registry.json (or list-components over MCP). A folder whose name is not a current registry item — divider, loader, radio, progress-bar, toast, menu, form, tree, layout, segmented — is source from before that name was renamed, split, or removed. See renames.md for the full table.

Slower check: does an installed component's shape match its current docs?

A folder can share today's name and still be out of date — card, pagination and input-group were not renamed, they were recomposed: the files are still called card.component.ts, but what they export changed shape. Compare the installed file against get-component-docs / the component's published Markdown. See recompositions.md for the concrete before/after of each.

Concrete markers, if a fast grep is more useful than reading file by file

Found in the projectMeans
@import '<core>/css/tailwind' in the global CSS (instead of .../css/zard)Predates the core → core + utilities split (927f8232)
A bare, unscoped ::-webkit-scrollbar { ... } block appended to the global CSSPredates the opt-in scrollbar-thin utility (6c9e21ce)
ZardButtonGroupDividerComponent / z-button-group-divider anywherePredates the button-group divider → separator rename (93391360)
A toast directory, or ZardToastComponent / z-toast / z-toasterPredates the toast → sonner rename (1fd63f15)
textarea[z-input] on a <textarea> (instead of textarea[z-textarea])Predates the textarea split (70bc9b0a)
No card.imports.ts next to card.component.tsPredates the card recomposition (73b544f5)
<z-input-group [zAddonBefore]="…" [zAddonAfter]="…"> (inputs, not z-input-group-addon children)Predates the input-group recomposition (d2245133)
zType/zSize on toggle-group without zItems/zValue/zOrientationPredates the toggle-group prop rename (66df83b3)

None of these are exhaustive on their own — a project can be a mix, migrated partway by hand at some point. Check every installed component, not just the ones a marker flags.

2. What changed

  • renames.md — every breaking rename and removal, old name → new name → what to edit in your own source, each sourced to the commit that made it.
  • recompositions.md — card, pagination and input-group, which kept their name but changed shape, with the real before/after markup from this repository's own history. Also the core/utils/utilities split and the scrollbar migration.

3. Migrate safely — an ordered, resumable procedure

Each step is safe to stop after and safe to resume from a fresh session — nothing here depends on in-memory state, only on the project's files and components.json.

  1. Audit what is installed. Read components.json for aliases.components and aliases.blocks, then list both directories. For each folder, check it against registry.json (renames.md if the name itself is gone) and against its current docs (recompositions.md if the name survived but the shape may not have).
  2. Diff before you overwrite. For every component that needs updating, read the installed file and the current registry source side by side. Note anything in the installed file that is not in the registry version — that is a local customisation, and --overwrite is about to discard it.
  3. Re-add from the registry. npx zard-cli add <name> --overwrite (substitute the project's package runner — see ../zard/SKILL.md). One component at a time is easier to reconcile than --all; batch only once the pattern is familiar. A renamed component is added under its new name (zard-cli add separator, not divider) — the old folder is not removed automatically, delete it once nothing imports from it.
  4. Reconcile local edits. Reapply whatever step 2 found worth keeping — as a CVA variant, a theme token, or a wrapper component where possible, so the next migration doesn't repeat this one.
  5. Fix imports and selectors. Update every consumer that imported the old class name or used the old selector — the compiler will find the imports (ZardButtonGroupDividerComponent no longer exists), but a renamed selector used only in a template (<hr z-divider> → <z-separator>) fails silently at render, not at compile time. Grep the old selector across the project, not just the component folder.
  6. Fix the global CSS import, if it still says @import '<core>/css/tailwind' — change it to @import '<core>/css/zard'. See recompositions.md.
  7. Verify the build. Typecheck, then run the app and exercise every migrated component — a renamed CVA variant key or a removed input surfaces as a runtime class that never applies, not a compile error.

Re-running this procedure is safe: step 1 finds nothing left to do once every installed component matches the registry.

Reference

  • renames.md — the rename table
  • recompositions.md — card, pagination, input-group, the core/utils/utilities split, and the scrollbar migration
  • ../zard/SKILL.md — components.json, the CLI, the registry, the MCP server

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Zard Migration?

Migrates a project whose installed zard/ui component source predates the current registry — components are copied into the project by zard-cli, so nothing upgrades them on its own. Applies when a project's zard/ui source uses a name the current registry no longer publishes (`divider`, `loader`, `radio`, `progress-bar`, `toast`, `menu`, `form`, `tree`, `layout`, `segmented`), when a component's shape doesn't match its current documentation (card, pagination, input-group), or when asked to "migrate to the latest zard-ui", "upgrade this project's zard components", or "why doesn't zard-cli add...

Perché usare Zard Migration su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Zard Migration è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Zard Migration in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/zard-ui/zardui/tree/master/skills/zard-migration. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Zard Migration?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Zard Migration?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Zard Migration: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Zard Migration è gratuita?

Sì. È pubblicata su GitHub da zard-ui con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇