[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CV0J421JZ91KXF6EQ2ETGA":3,"skill-same:01M7CV0J421JZ91KXF6EQ2ETGA":46},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M7CV0J421JZ91KXF6EQ2ETGA","mercur-cli",null,"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`.","amoai-tech\u002Fmdeai","amoai-tech","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F320616881?v=4","01M7CTJYGWP82J2HHMQC5NN9JP","amo","01M7CTJYHE5YQRGQSDJES3Z0QE",2,"MIT","https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002Fcommerce\u002Fmercur\u002F.claude\u002Fskills\u002Fmercur-cli\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: mercur-cli\ndescription: 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`.\n---\n\n# Mercur CLI\n\nUse this skill when:\n- creating a new Mercur project\n- initializing `blocks.json`\n- searching, viewing, adding, or diffing blocks\n- deciding whether a command should run from the project root or a workspace\n\n## Command map\n\n- `create` — create a new Mercur project\n- `init` — create `blocks.json` in an existing project\n- `search` — search the registry\n- `view` — inspect a block before installation\n- `add` — install a block\n- `diff` — compare local installed block files against the registry\n\n## Where commands run\n\n- Run Mercur CLI registry commands (`search`, `view`, `add`, `diff`) from the **project root** where `blocks.json` lives.\n- Run `medusa` commands (`db:generate`, `db:migrate`) from `packages\u002Fapi` using `bunx medusa`.\n- Run admin or vendor verification from `apps\u002Fadmin` or `apps\u002Fvendor`.\n\n## Common flows\n\n### Discover and inspect a block\n\n```bash\nnpx @mercurjs\u002Fcli@latest search --query \u003Ckeyword>\nnpx @mercurjs\u002Fcli@latest view \u003Cblock-name>\n```\n\n### Add a block\n\n```bash\nnpx @mercurjs\u002Fcli@latest add \u003Cblock-name>\n```\n\n**Important:** When CLI asks to overwrite `middlewares.ts`, always decline (`n`) and merge manually.\n\n### Check local drift\n\n```bash\nnpx @mercurjs\u002Fcli@latest diff \u003Cblock-name>\n```\n\n## After `add`\n\nFollow the block docs output, but verify everything against the actual installed files:\n\n1. **Middleware**: Read the actual middleware file to get the correct export name and path. Add the import and spread to `src\u002Fapi\u002Fmiddlewares.ts`.\n2. **medusa-config.ts**: Add modules, providers, plugin options, or env-driven config as docs specify.\n3. **Migrations**: If the block added a module with models, run `bunx medusa db:generate \u003Cmodule>` and `bunx medusa db:migrate` from `packages\u002Fapi`.\n4. **Dependencies**: If the dev server fails with \"Cannot find module\", install the missing dependency with `bun add \u003Cpackage>` in the correct workspace.\n5. **Env vars**: Add any required environment variables to `.env`.\n6. **Validation**: Run the dev server and check for startup errors before moving on.\n\n## Known CLI behaviors\n\n- CLI may prompt \"You need to create a blocks.json\" even when it exists — this happens when running from the wrong directory.\n- CLI's `add` outputs the block docs after installation — read them carefully but verify against installed files.\n- CLI may install files from one block that overlap with another block (shared files). Declining overwrites preserves existing work.\n- The `search` command with `--query \"\"` returns all available blocks.\n\n## Avoid\n\n- running registry commands outside the project root\n- guessing block names without `search` or `view`\n- accepting `middlewares.ts` overwrite from CLI\n- assuming an installed block only changed one workspace\n- trusting block docs blindly for import paths or dependencies\n- skipping dev server validation after installing a block\n","# Mercur CLI\n\nUse this skill when:\n- creating a new Mercur project\n- initializing `blocks.json`\n- searching, viewing, adding, or diffing blocks\n- deciding whether a command should run from the project root or a workspace\n\n## Command map\n\n- `create` — create a new Mercur project\n- `init` — create `blocks.json` in an existing project\n- `search` — search the registry\n- `view` — inspect a block before installation\n- `add` — install a block\n- `diff` — compare local installed block files against the registry\n\n## Where commands run\n\n- Run Mercur CLI registry commands (`search`, `view`, `add`, `diff`) from the **project root** where `blocks.json` lives.\n- Run `medusa` commands (`db:generate`, `db:migrate`) from `packages\u002Fapi` using `bunx medusa`.\n- Run admin or vendor verification from `apps\u002Fadmin` or `apps\u002Fvendor`.\n\n## Common flows\n\n### Discover and inspect a block\n\n```bash\nnpx @mercurjs\u002Fcli@latest search --query \u003Ckeyword>\nnpx @mercurjs\u002Fcli@latest view \u003Cblock-name>\n```\n\n### Add a block\n\n```bash\nnpx @mercurjs\u002Fcli@latest add \u003Cblock-name>\n```\n\n**Important:** When CLI asks to overwrite `middlewares.ts`, always decline (`n`) and merge manually.\n\n### Check local drift\n\n```bash\nnpx @mercurjs\u002Fcli@latest diff \u003Cblock-name>\n```\n\n## After `add`\n\nFollow the block docs output, but verify everything against the actual installed files:\n\n1. **Middleware**: Read the actual middleware file to get the correct export name and path. Add the import and spread to `src\u002Fapi\u002Fmiddlewares.ts`.\n2. **medusa-config.ts**: Add modules, providers, plugin options, or env-driven config as docs specify.\n3. **Migrations**: If the block added a module with models, run `bunx medusa db:generate \u003Cmodule>` and `bunx medusa db:migrate` from `packages\u002Fapi`.\n4. **Dependencies**: If the dev server fails with \"Cannot find module\", install the missing dependency with `bun add \u003Cpackage>` in the correct workspace.\n5. **Env vars**: Add any required environment variables to `.env`.\n6. **Validation**: Run the dev server and check for startup errors before moving on.\n\n## Known CLI behaviors\n\n- CLI may prompt \"You need to create a blocks.json\" even when it exists — this happens when running from the wrong directory.\n- CLI's `add` outputs the block docs after installation — read them carefully but verify against installed files.\n- CLI may install files from one block that overlap with another block (shared files). Declining overwrites preserves existing work.\n- The `search` command with `--query \"\"` returns all available blocks.\n\n## Avoid\n\n- running registry commands outside the project root\n- guessing block names without `search` or `view`\n- accepting `middlewares.ts` overwrite from CLI\n- assuming an installed block only changed one workspace\n- trusting block docs blindly for import paths or dependencies\n- skipping dev server validation after installing a block\n",{"name":5,"description":7},"main","9955f6a8aa5de3c14fea562c7e6b72973366ba3c","commerce\u002Fmercur\u002F.claude\u002Fskills\u002Fmercur-cli",1,"https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai","https:\u002F\u002Fmdeai-psi.vercel.app","https:\u002F\u002Fgithub.com\u002Famoai-tech","2026-11-13 03:54:16",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add amoai-tech\u002Fmdeai --skill mercur-cli",{"tool":38,"command":39},"bunx","bunx skills add amoai-tech\u002Fmdeai --skill mercur-cli",{"tool":41,"command":42},"pnpm","pnpm dlx skills add amoai-tech\u002Fmdeai --skill mercur-cli","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002Fcommerce\u002Fmercur\u002F.claude\u002Fskills\u002Fmercur-cli\u002FSKILL.md",true,[],[47,54,61,68,75,82],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M7CV3D59CQX8N178NN3W5DEQ","mde-pr-review-supabase","Use when reviewing MDE Supabase SQL, Auth and RLS changes in a pull request.","https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002Fscripts\u002Fpr-agent\u002Fskills\u002Fsupabase\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7CV39XR1SPH7C4FNXAXMM36","mde-pr-review-stripe","Use when reviewing MDE Stripe payments and webhooks changes in a pull request.","https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002Fscripts\u002Fpr-agent\u002Fskills\u002Fstripe\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7CV37HHNM5A144SEX2VE05N","mde-pr-review-nextjs","Use when reviewing MDE Next.js App Router changes in a pull request.","https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002Fscripts\u002Fpr-agent\u002Fskills\u002Fnextjs\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7CV34C1M5STTKHX5CGVN3VS","mde-pr-review-mastra","Use when reviewing MDE Mastra agent, tool and workflow changes in a pull request.","https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002Fscripts\u002Fpr-agent\u002Fskills\u002Fmastra\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7CV31A37VPRRASAVGE8K8SN","mde-pr-review-maps","Use when reviewing MDE Google Maps and Places changes in a pull request.","https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002Fscripts\u002Fpr-agent\u002Fskills\u002Fmaps\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7CV2Y70DQJ1VXFHS732CSQ4","mde-pr-review-copilotkit","Use when reviewing MDE CopilotKit and AG-UI changes in a pull request.","https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002Fscripts\u002Fpr-agent\u002Fskills\u002Fcopilotkit\u002FSKILL.md",[],[]]