.claude/skills/migration-guide/SKILL.md
Plan and execute migration from Mercur 1.x to 2.0. Classifies project difficulty, reads relevant migration docs, and follows stop conditions.
npx skillsauth add mercurjs/mercur migration-guideInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill when:
Before any action, read:
docs/migrations/mercur-1.x-to-2.0/README.md — entry point, version check, package/directory mapping, approachRead references/decision-tree.md in this skill directory, then:
package.json — note @mercurjs/b2c-core version to determine 1.x versionapps/admin/) — search there when scanning for custom dashboard pagesBased on classification, read from docs/migrations/mercur-1.x-to-2.0/:
| Document | Starter | Light Custom | Heavy Custom | |----------|---------|-------------|-------------| | README.md | Required | Required | Required | | dashboards.md | Skim | Required | Required |
medusa-config.ts (plugins, modules, providers)bunx @mercurjs/cli@latest add <block>)Stop and ask the user when:
@mercurjs/core.migration/ or any private test directoriesdocumentation
Analyze a Mercur 1.x project and guide migration to 2.0. Self-contained — works without access to the mercur monorepo.
development
Review code changes for contract compliance, type safety, and regression risk. Use after completing any non-trivial implementation, before merging PRs, or when asked to review code quality across any mercur package.
tools
Use Mercur CLI commands correctly inside a project created from the Mercur basic starter. Use when choosing between `create`, `init`, `add`, `search`, `view`, and `diff`.
tools
Discover, evaluate, install, and verify Mercur blocks in the basic starter using `blocks.json` aliases and CLI workflows.