create-medusa-plugin

Generate custom MedusaJS v2 plugins with models, modules, API routes, and workflows.

Updated Jan 19, 2026
One-click install
npx skills add https://github.com/yuriolive/learning-infra --skill create-medusa-plugin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-medusa-plugin
Source: https://github.com/yuriolive/learning-infra/tree/main/.agent/skills/shared/create-medusa-plugin
Command: npx skills add https://github.com/yuriolive/learning-infra --skill create-medusa-plugin

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the creation of custom MedusaJS v2 plugins, ensuring adherence to established patterns, project structure, and best practices, thereby accelerating development and improving maintainability.

Core Features & Use Cases

  • Boilerplate Generation: Automates the setup of plugin structure, including models, modules, API routes, and workflows.
  • Pattern Enforcement: Guides users to follow established patterns for data persistence (MikroORM), service implementation, API route definition (Zod validation), and workflow orchestration.
  • Use Case: When integrating a new third-party service (e.g., a payment gateway or an ERP system) with a MedusaJS e-commerce store, this Skill provides a robust starting point for building the necessary plugin.

Quick Start

Use the create-medusa-plugin skill to generate a new plugin for integrating with the 'stripe' payment service.

Frequently Asked Questions about create-medusa-plugin

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a custom MedusaJS v2 plugin for a third-party integration?

To create a MedusaJS v2 plugin, this Skill generates a structured workflow with code templates for models, modules, API routes, and workflows to accelerate third-party service integration. It ensures adherence to project-specific coding standards and best practices.

What is the best way to structure a MedusaJS plugin using MikroORM for data persistence?

The best way to structure a MedusaJS plugin is by using generated boilerplate that enforces established patterns for MikroORM data persistence, service implementation, and workflow orchestration. This approach improves maintainability and streamlines project setup.

Can I use Zod validation when defining API routes in a MedusaJS plugin?

Yes, you can use Zod validation when defining API routes in a MedusaJS plugin. The Skill guides users to follow established patterns for API route definition and workflow orchestration to ensure robust endpoint validation.

Does MedusaJS v2 plugin development support workflow orchestration and custom modules?

MedusaJS v2 plugin development supports workflow orchestration and custom modules through automated boilerplate generation. The Skill provides structured code templates that facilitate defining modules and orchestrating complex workflows.

When do I need a boilerplate generator for MedusaJS plugin development?

You need a boilerplate generator for MedusaJS plugin development when integrating a new service like a payment gateway or ERP system. It provides a robust starting point by automating setup for models, modules, and workflows.

Why should I use a structured workflow for TypeScript MedusaJS plugin development?

You should use a structured workflow for TypeScript MedusaJS plugin development to ensure adherence to established patterns and best practices. This approach accelerates development and significantly improves long-term maintainability.