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,…
Execute mcloud environments commands to list, get, create, delete, redeploy, or trigger builds for Cloud environments. Use when managing environment lifecycle, redeploying after variable changes, or starting new builds from source.
$ npx -y skills add medusajs/medusa-agent-skills --skill mcloud-environments --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/mcloud-environmentsContext preview
The summary Claude sees to decide when to auto-load this skill.
Execute mcloud environments commands to list, get, create, delete, redeploy, or trigger builds for Cloud environments. Use when managing environment lifecycle, redeploying after variable changes, or starting new builds from source.
name: mcloud-environments description: Execute mcloud environments commands to list, get, create, delete, redeploy, or trigger builds for Cloud environments. Use when managing environment lifecycle, redeploying after variable changes, or starting new builds from source. allowed-tools: Bash(mcloud environments*), Bash(mcloud use*), Bash(jq*)
Execute `mcloud environments` commands to manage environment lifecycle and deployments.
List all environments in a project.
mcloud environments list --organization <org-id> --project <project-id-or-handle> --json
**Options:**
Retrieve a single environment by its ID or handle.
mcloud environments get <environment-id-or-handle> --organization <org-id> --project <project-id-or-handle> --json
**Arguments:**
**Options:**
Create a new long-lived environment.
mcloud environments create \ --organization <org-id> \ --project <project-id-or-handle> \ --name "Staging" \ --branch develop \ --json
**Options:**
Delete an environment. **Cannot delete production environments.**
mcloud environments delete <environment-id-or-handle> \ --organization <org-id> \ --project <project-id-or-handle> \ --yes
**Arguments:**
**Options:**
Re-run an existing build for the active deployment. Use when the fix is environment-side (variable change, infra issue) — does NOT start a new build.
mcloud environments redeploy <environment-id-or-handle> \ --organization <org-id> \ --project <project-id-or-handle> \ --json
**Arguments:**
**Options:**
> Requires the environment to have an active deployment. If it doesn't, use `trigger-build` first.
Start a new build from the tracked branch. Use when the fix is committed code — creates a new deployment.
mcloud environments trigger-build <environment-id-or-handle> \ --organization <org-id> \ --project <project-id-or-handle> \ --json
**Arguments:**
**Options:**
| Command | When to use | |---------|-------------| | `redeploy` | Fix is environment-side (variable change, infra config) — reruns existing build | | `trigger-build` | Fix is in source code on the tracked branch — starts a new build |
# List all environments
mcloud environments list --json
# Get environment details and check type before deleting
mcloud environments get staging --json | jq '{id, name, type, status}'
# Create a new environment tracking the develop branch
mcloud environments create --name "Staging" --branch develop --json
# Delete a non-production environment
mcloud environments delete staging --yes
# Redeploy after a variable change
mcloud environments redeploy production --json
# Trigger a fresh build from source
mcloud environments trigger-build production --json
# Find environment handles by name
mcloud environments list --json \
| jq -r '.[] | select(.name == "Production") | .handle'
# Verify new build started
mcloud deployments list --environment production --limit 5 --json \
| jq '.[] | {id, backend_status, updated_at}'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 local build to reproduce a Cloud build on the local machine. Use when debugging a build-failed deployment without pushing to the tracked branch,…
Execute mcloud logs to fetch and stream runtime logs for Cloud environments. Use when reading backend or storefront logs, filtering by time range, searching…