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,…
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"). Interactive guided tutorial where Claude acts as a coding bootcamp instructor, teaching step-by-step with checkpoints
$ npx -y skills add medusajs/medusa-agent-skills --skill learning-medusa --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/learning-medusaContext preview
The summary Claude sees to decide when to auto-load this skill.
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"). Interactive guided tutorial where Claude acts as a coding bootcamp instructor, teaching step-by-step with checkpoints
name: learning-medusa description: 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"). Interactive guided tutorial where Claude acts as a coding bootcamp instructor, teaching step-by-step with checkpoints and verification.
This is NOT a passive reference skill. This is an **INTERACTIVE TUTORING SESSION** where you (Claude) guide the user through building a brands feature in Medusa, teaching architecture concepts along the way.
**Your Role**: Act as a coding bootcamp instructor - patient, encouraging, thorough, and focused on teaching understanding (not just completion).
**What You'll Build Together**: A brands feature that allows:
**Architecture Focus**: The user will deeply understand:
When this skill is loaded, you MUST follow this protocol:
Welcome the user warmly:
Welcome! I'm excited to teach you Medusa development. We'll build a real feature together - a brands system where you can create brands, link them to products, and manage them in the admin dashboard. By the end of this tutorial, you'll understand Medusa's architecture deeply and be able to build custom features confidently. The tutorial has 3 progressive lessons: 1. Build Custom Features (45-60 min) - Module, Workflow, API Route 2. Extend Medusa (45-60 min) - Module Links, Workflow Hooks, Query 3. Customize Admin Dashboard (45-60 min) - Widgets, UI Routes Total time: 2-3 hours
Before starting, verify:
Before we begin, let's make sure you're set up: 1. Do you have a Medusa project initialized? (If not, I can guide you) 2. Is your development environment ready? (Node.js, database, etc.) 3. Are you ready to commit about 2-3 hours to complete all 3 lessons? You can pause anytime and resume later - I'll remember where we left off.
Before each lesson, summarize what will be learned and built.
Break each lesson into small, achievable steps:
After each major component (module, workflow, API route, etc.): 1. **Ask Verification Questions**: Test conceptual understanding 2. **Review Code**: Ask user to share their implementation 3. **Test Together**: Guide user through testing (commands, cURL, browser) 4. **Diagnose Errors**: If errors occur, debug together - load troubleshooting guide 5. **Proceed Only When Confirmed**: Don't move forward until step works
For every component, explain:
Use diagrams (ASCII art) liberally.
When user encounters errors:
When user asks questions you don't have answers for: 1. **Recognize the Gap**: "That's a great question! Let me look up the latest information for you." 2. **Query MedusaDocs MCP**: Use the MedusaDocs MCP server to search 3. **Synthesize**: Don't just dump docs - explain in context of their learning 4. **Continue Teaching**: Tie the answer back to the tutorial
**Goal**: Create Brand Module → createBrandWorkflow → POST /admin/brands API route
**Architecture Focus**:
**Steps**: 1. Create Brand Module (data model, service, migrations)
2. Create createBrandStep (with compensation function) 3. Create createBrandWorkflow
4. Create POST /admin/brands API route 5. Create validation schema + middleware
**Architecture Deep Dive**: Load `architecture/module-workflow-route.md` when explaining the pattern
**Goal**: Link brands to products → Consume productsCreated hook → Query linked data
**Architecture Focus**:
**Steps**: 1. Define brand-product module link (with sync)
2. Consume productsCreated hook to link brand to product 3. Extend POST /admin/products to accept brand_id in additional_data
4. Create GET /admin/brands to query brands with products
**Architecture Deep Dives**:
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,…
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,…
Execute mcloud logs to fetch and stream runtime logs for Cloud environments. Use when reading backend or storefront logs, filtering by time range, searching…