.claude/skills/mercur-blocks/SKILL.md
Discover, evaluate, install, and verify Mercur blocks safely using `blocks.json` aliases and Mercur CLI workflows. Use when adding or updating blocks in a Mercur project.
npx skillsauth add mercurjs/mercur mercur-blocksInstall 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:
Start with:
blocks.jsonsearch, view, add, or diffblocks.json alias modelIn the basic starter, aliases route block files into:
api -> packages/api/srcadmin -> apps/admin/srcvendor -> apps/vendor/srcAlways reason about a block by alias destination, not just by the block name.
api, admin, vendor?packages/api/medusa-config.ts need module registration or options?npx @mercurjs/cli@canary search --query <keyword>
npx @mercurjs/cli@canary view <block>
npx @mercurjs/cli@canary add <block>
npx @mercurjs/cli@canary diff <block>
medusa-config.ts or env setup stale after installdiffWhen summarizing a block task:
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`.