Zard Migration logo

Zard Migration

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

Overview

Publisherzard-ui
Repositoryzardui
Skill namezard-migration
Stars
1.2K
Forks
97
Bundled files
2
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by zard-ui on GitHub. Read the source before you install it.

Installation

Install the Zard Migration AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/zard-ui/zardui/tree/master/skills/zard-migration
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Zard Migration in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Zard Migration on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Zard Migration is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Zard Migration AI skill do?

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

Why use Zard Migration on TypingMind?

Because you install it once and use it with any model. Zard Migration is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Zard Migration in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/zard-ui/zardui/tree/master/skills/zard-migration. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Zard Migration?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Zard Migration?

As many as you like. As long as a model supports skills, you can use Zard Migration with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Zard Migration AI skill free?

Yes. It is published on GitHub by zard-ui under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇