mcloud-local — Claude Code skill for local builds
Run a Medusa Cloud build on your machine with mcloud local build. Use the skill to investigate a failed build or test build-variable changes before pushing.
npx skills add medusajs/medusa-agent-skills --skill mcloud-local -a claude-codeWhat mcloud-local does
mcloud-local helps reproduce a Cloud build locally. It can identify a failed deployment, find its commit, and check out that revision in Git. The command reports progress as plain text, so use its exit status to tell whether the build passed; its output is not JSON.
Build the backend by default, or choose the storefront with --type storefront. Test a variable with --var KEY=VALUE, or supply a local file using --env-file .env. Docker caching starts disabled; --docker-cache turns it on. Docker must be installed and running, and the command must run from inside the project's Git repository. This skill covers build failures, not runtime failures; the instructions direct runtime debugging to mcloud logs --deployment <id>.
What it helps with
- reproduce a failed Cloud build locally
- build the backend or storefront
- test a build-variable change without editing code
- identify the step that caused a build to fail
Example prompts for the agent
- Reproduce the failed deployment's build at its commit.
- Build the storefront from
apps/storefrontwithmcloud local build --type storefront --storefront-path apps/storefront. - Test the build with
NODE_ENV=productionusingmcloud local build --var NODE_ENV=production.
How to install mcloud-local
1Skills CLI (Vercel)
npx skills add medusajs/medusa-agent-skills --skill mcloud-local -a claude-code2Manually: put the files in place
~/.claude/skills/mcloud-local/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/mcloud-local/
1Skills CLI (Vercel)
npx skills add medusajs/medusa-agent-skills --skill mcloud-local -a codex2Manually: put the files in place
.agents/skills/mcloud-local/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add medusajs/medusa-agent-skills --skill mcloud-local -a cursor2Manually: put the files in place
.cursor/skills/mcloud-local/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install medusajs/medusa-agent-skills mcloud-local2Manually: put the files in place
.github/skills/mcloud-local/SKILL.md1Skills CLI (Vercel)
npx skills add medusajs/medusa-agent-skills --skill mcloud-local -a gemini-cli2Platform CLI
gemini skills install https://github.com/medusajs/medusa-agent-skills --path plugins/medusa-cloud/skills/mcloud-localManually: put the files in place
.devin/skills/mcloud-local/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add medusajs/medusa-agent-skills --skill mcloud-local -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about mcloud-local
How do I install mcloud-local in Claude Code?
Run npx skills add medusajs/medusa-agent-skills --skill mcloud-local -a claude-code. The skill file is at ~/.claude/skills/mcloud-local/SKILL.md.
What does mcloud-local do?
It runs a Medusa Cloud build on your machine with mcloud local build, helping you reproduce a build failure at the relevant commit.
What do I need to run mcloud-local?
Docker must be installed and running, and you must be inside the project's Git repository. The skill addresses build failures, not runtime failures.