storefront-best-practi…
ALWAYS use this skill when working on ecommerce storefronts, online stores, shopping sites. Use for ANY storefront component including checkout pages, cart,…
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.
$ npx -y skills add medusajs/medusa-agent-skills --skill using-medusa-cloud --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/using-medusa-cloudContext preview
The summary Claude sees to decide when to auto-load this skill.
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.
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.
Repo: medusajs/medusa-agent-skills
ALWAYS use this skill when working on ecommerce storefronts, online stores, shopping sites. Use for ANY storefront component including checkout pages, cart,…
Load automatically when user asks to learn Medusa development (e.g., "teach me how to build with medusa", "guide me through medusa", "I want to learn medusa").…
Execute mcloud authentication and context commands: login, logout, whoami, use, version, and signup. Use when setting up the CLI, switching accounts, verifying…
Execute mcloud deployments commands to list deployments, retrieve deployment details, and fetch build logs. Use when listing deployments, checking deployment…
Execute mcloud environments commands to list, get, create, delete, redeploy, or trigger builds for Cloud environments. Use when managing environment lifecycle,…
Execute mcloud local build to reproduce a Cloud build on the local machine. Use when debugging a build-failed deployment without pushing to the tracked branch,…