Agent Skills for Medusa
Medusa provides agent skills that help developers and non-technical shop owners build stores, get development help, and learn Medusa interactively. Use them as plugins in Claude Code, or copy them into other AI tools that support custom skills.
Deployment and Management Skills#
To have your AI agent deploy, manage, and debug your Medusa projects, install the medusa-cloud plugin. Its skills teach your agent to use the Cloud CLI:
Then, ask your agent to manage your projects and environments. For example:
Why did my latest deployment fail? Check its build logs.
Add the STRIPE_API_KEY environment variable to my Production environment.
Medusa Development Assistance Skills#
For help building features with Medusa, install the medusa-dev plugin:
Then, ask your agent to build Medusa features, fix bugs, and more. It uses the plugin's skills to write accurate Medusa code. For example:
Implement a product reviews feature. Authenticated customers can add reviews. Admin users can view and approve or reject reviews from the dashboard
Create a wishlist feature where customers can save products. I need API routes for adding/removing items and retrieving the wishlist.
Add a widget to the product detail page in the admin that allows managing related products. Admin users should be able to select which products are related using a searchable table.
Help me integrate the custom reviews API into my Next.js storefront. Show product reviews on the product detail page with pagination.
Available Commands#
The plugin also provides the following commands as skills:
Command | Description |
|---|---|
| Run database migrations for the Medusa project. |
| Generate migrations for a custom module. |
| Create an admin user with the specified email and password. |
Ecommerce Storefront Best Practices#
The ecommerce-storefront plugin's storefront-best-practices skill helps you build storefronts for any ecommerce platform, including Medusa, with any frontend framework, such as Next.js or Tanstack Start. Install it with:
Then, prompt your agent to change your storefront or build one from scratch. For example:
Build a Next.js ecommerce storefront that uses Medusa as the backend. The storefront should have product listing, product detail, cart, and checkout pages.
Add a megamenu to the storefront's header that displays product categories and subcategories. The menu should be responsive and work well on mobile devices.
Interactive Learning#
If you're new to Medusa, install the learn-medusa plugin or its skill to learn the basics interactively:
Then, start the learning experience with this prompt:
You learn Medusa concepts step by step by building a brands feature, similar to the Brands tutorial. You:
- Create a Brand Module with API routes to manage brands.
- Link brands to products to associate products with brands.
- Customize the Medusa Admin dashboard to manage brands.
By the end, you understand Medusa's architecture and how to build custom features.