storefront-best-practi…
ALWAYS use this skill when working on ecommerce storefronts, online stores, shopping sites. Use for ANY storefront component…
Manages Medusa Cloud resources through the Cloud CLI (mcloud). Use when deploying, debugging deployments, managing environments, environment variables, or any Medusa Cloud operation. CRITICAL for mcloud commands, deployment failures, build logs, Cloud setup, and CI/CD workflows.
Claude Code
$ npx -y skills add medusajs/medusa-agent-skills --skill using-medusa-cloud --agent claude-code
Codex
$ npx skills add medusajs/medusa-agent-skills --skill using-medusa-cloud -a codex -y
Cursor
$ npx skills add medusajs/medusa-agent-skills --skill using-medusa-cloud -a cursor -y
Gemini CLI
$ npx skills add medusajs/medusa-agent-skills --skill using-medusa-cloud -a gemini-cli -y
GitHub Copilot
$ npx skills add medusajs/medusa-agent-skills --skill using-medusa-cloud -a github-copilot -y
OpenCode
$ npx skills add medusajs/medusa-agent-skills --skill using-medusa-cloud -a opencode -y
Windsurf
$ npx skills add medusajs/medusa-agent-skills --skill using-medusa-cloud -a windsurf -y
name: using-medusa-cloud description: Manages Medusa Cloud resources through the Cloud CLI (mcloud). Use when deploying, debugging deployments, managing environments, environment variables, or any Medusa Cloud operation. CRITICAL for mcloud commands, deployment failures, build logs, Cloud setup, and CI/CD workflows.
Operational guide for AI agents managing Medusa Cloud infrastructure through the `mcloud` CLI. Covers setup, deployments, debugging, environments, and variables.
**Load these references based on what you're doing:**
**Minimum requirement:** Load at least one reference file before executing multi-step workflows.
Always verify auth and scope before mutating state:
mcloud whoami --json | jq -e '.auth.kind != "none" and .organization.id != null'
Exit code `0` = authenticated and scoped. Non-zero = stop and ask the user.
mcloud use \ --organization org_123 \ --project proj_123 \ --environment production
> **CRITICAL:** `mcloud use` without flags is interactive and fails in CI/Docker/piped input. Always pass flags.
Route on `backend_status` (or `storefront_status`):
| Status | Meaning | Logs to check | |--------|---------|---------------| | `build-failed` | Build step failed | `mcloud deployments build-logs <id>` | | `deployment-failed` | Runtime crashed after build | `mcloud logs --deployment <id>` | | `timed-out` | Exceeded time budget | Both: build-logs first, then runtime logs |
| Command | When to use | |---------|-------------| | `mcloud environments redeploy <env>` | Fix is environment-side (variable change, infra) — reruns existing build | | `mcloud environments trigger-build <env>` | Fix is in source code on the tracked branch — starts new build |
setup.md - CLI installation, authentication, context setup debugging-deployments.md - Build/deployment failure recipes and log analysis environments-and-variables.md - Environment lifecycle and variable management
A collection of skills composed as Claude Code plugins for building Medusa applications with best practices and architectural patterns. These skills can be used with any agent, as explained in the Usage with Other Agents section.
ALWAYS use this skill when working on ecommerce storefronts, online stores, shopping sites. Use for ANY storefront component…
Load automatically when user asks to learn Medusa development (e.g., "teach me how to build with medusa", "guide me through…
Execute mcloud authentication and context commands: login, logout, whoami, use, version, and signup. Use when setting up the CLI,…
Execute mcloud deployments commands to list deployments, retrieve deployment details, and fetch build logs. Use when listing…
Execute mcloud environments commands to list, get, create, delete, redeploy, or trigger builds for Cloud environments. Use when…
Execute mcloud local build to reproduce a Cloud build on the local machine. Use when debugging a build-failed deployment without…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.