AcademyRulesDevelopment

Medusa rules for Cursor

Development teams building commerce backends with Medusa who want Cursor to follow the framework's conventions.

  • Recommendedour rating
  • 40,892repository stars
  • CC0-1.0licence
  • 4 months agolast update
mkdir -p .cursor/rules && curl -fsSL https://raw.githubusercontent.com/PatrickJS/awesome-cursorrules/main/rules/medusa.mdc -o .cursor/rules/medusa.mdc
medusa.mdc

Loading the file...

What it does

A rules file for Cursor that guides the AI when it writes code for Medusa projects in TypeScript. It covers how to define workflows and steps, data models, services and error handling, so generated code follows Medusa conventions.

Use cases

  1. 01Create a Medusa workflow with steps for a new API feature
  2. 02Define a data model with the right naming and fields
  3. 03Write a service that extends MedusaService

Questions about
Medusa rules for Cursor.

What is Medusa rules for Cursor used for?

Development teams building commerce backends with Medusa who want Cursor to follow the framework's conventions. A rules file for Cursor that guides the AI when it writes code for Medusa projects in TypeScript. It covers how to define workflows and steps, data models, services and error handling, so generated code follows Medusa conventions.

How do I install Medusa rules for Cursor?

Run this in your terminal: mkdir -p .cursor/rules && curl -fsSL https://raw.githubusercontent.com/PatrickJS/awesome-cursorrules/main/rules/medusa.mdc -o .cursor/rules/medusa.mdc

Is Medusa rules for Cursor open source?

Yes. The code is on GitHub (PatrickJS/awesome-cursorrules) under the CC0-1.0 licence.

Is Medusa rules for Cursor safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.