mcloud-deployments — Claude Code skill: what it does, how to install
Enables agents to query Medusa Cloud deployments and inspect build logs via CLI. Useful for tracking release progress and debugging failed builds directly in the terminal.
npx skills add medusajs/medusa-agent-skills --skill mcloud-deployments -a claude-codeWhat mcloud-deployments does
This skill guides the agent through mcloud deployments CLI operations. It provides clear execution patterns to list project deployments, filter by commit or environment handle, and fetch deployment details using build or deployment identifiers. The agent relies on command execution with jq for output processing.
Every query must include --json because plain text output is not guaranteed to remain stable. If organization or project contexts are missing, the agent verifies them first with mcloud whoami --json.
When a build fails, the skill pulls logs specifically for the backend or storefront stream. Note the failure status: if a deployment ends in deployment-failed instead of build-failed, build logs will be clean, so you must inspect runtime logs using mcloud logs.
What it helps with
- list recent deployments for a project
- inspect build logs for backend or storefront
- filter deployment runs by commit SHA or environment
- diagnose why a deployment status failed
Example prompts for the agent
- Show me recent deployments for this Medusa Cloud project
- Fetch the build logs for the latest failed deployment
- Check if the latest commit deployed cleanly to production
How to install mcloud-deployments
1Skills CLI (Vercel)
npx skills add medusajs/medusa-agent-skills --skill mcloud-deployments -a claude-code2Manually: put the files in place
~/.claude/skills/mcloud-deployments/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/mcloud-deployments/
1Skills CLI (Vercel)
npx skills add medusajs/medusa-agent-skills --skill mcloud-deployments -a codex2Manually: put the files in place
.agents/skills/mcloud-deployments/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add medusajs/medusa-agent-skills --skill mcloud-deployments -a cursor2Manually: put the files in place
.cursor/skills/mcloud-deployments/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install medusajs/medusa-agent-skills mcloud-deployments2Manually: put the files in place
.github/skills/mcloud-deployments/SKILL.md1Skills CLI (Vercel)
npx skills add medusajs/medusa-agent-skills --skill mcloud-deployments -a gemini-cli2Platform CLI
gemini skills install https://github.com/medusajs/medusa-agent-skills --path plugins/medusa-cloud/skills/mcloud-deploymentsManually: put the files in place
.devin/skills/mcloud-deployments/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add medusajs/medusa-agent-skills --skill mcloud-deployments -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-deployments
How to install mcloud-deployments in Claude Code?
Run npx skills add medusajs/medusa-agent-skills --skill mcloud-deployments -a claude-code in your terminal.
What does the mcloud-deployments skill do?
It gives AI agents instructions for running mcloud deployments commands. It helps view deployment status, filter by commit, and inspect build output.
Why must commands always include the --json flag?
Plain text formatting in the CLI can change between releases. Using --json ensures structured output that the agent parses reliably with jq.