.claude/skills/mercur-cli/SKILL.md
Use Mercur CLI commands correctly for project setup, block discovery, block installation, and starter maintenance. Use when working with `create`, `init`, `add`, `search`, `view`, or `diff`.
npx skillsauth add mercurjs/mercur mercur-cliInstall 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:
blocks.jsoncreate — create a new Mercur project from a templateinit — create blocks.json in an existing projectsearch — search block names and descriptionsview — inspect a block before adding itadd — install one or more blocks into a projectdiff — compare installed block files with the registry versionblocks.json lives.npm.npx @mercurjs/cli@canary create my-mercur --template basic
npx @mercurjs/cli@canary init
npx @mercurjs/cli@canary search --query review
npx @mercurjs/cli@canary view reviews
npx @mercurjs/cli@canary add reviews
npx @mercurjs/cli@canary diff reviews
addAlways inspect what changed:
blocks.json aliasesmedusa-config.ts needs a module or config updatesearch or viewadd outside the project rootWhen using the CLI in a task summary:
documentation
Analyze a Mercur 1.x project and guide migration to 2.0. Self-contained — works without access to the mercur monorepo.
documentation
Plan and execute migration from Mercur 1.x to 2.0. Classifies project difficulty, reads relevant migration docs, and follows stop conditions.
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`.