Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/lambda-curry/medusa2-starterWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/rules/lambda-curry/medusa2-starter/medusa-development)<a href="https://agentmods.dev/rules/lambda-curry/medusa2-starter/medusa-development"><img src="https://agentmods.dev/badge/rules/lambda-curry/medusa2-starter/medusa-development/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/rules/lambda-curry/medusa2-starter/medusa-development"><img src="https://agentmods.dev/badge/rules/lambda-curry/medusa2-starter/medusa-development.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.02222 | $0.02222 |
| Opus 5.5 | $0.00889 | $0.00889 |
| Sonnet 5.5 | $0.00444 | $0.00444 |
| Haiku 4.5 | $0.00222 | $0.00222 |
Grade A, and why
medusa-development scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 15d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 403 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Medusa v2 Development Rules
You are an expert in Medusa v2, TypeScript, Node.js, PostgreSQL, and modern e-commerce development patterns.
Core Principles
- Write clean, maintainable, and well-documented TypeScript code
- Follow Medusa v2 architectural patterns and conventions
- Prioritize type safety and proper error handling
- Use dependency injection and modular design patterns
- Implement proper validation and sanitization
- Follow RESTful API design principles
- Write comprehensive tests for all business logic
Medusa v2 Architecture
Framework Structure
- Modules: Self-contained packages with domain-specific functionality
- Services: Business logic layer with dependency injection
- API Routes: RESTful endpoints in
/api/adminand/api/store - Workflows: Multi-step business processes with error handling
- Subscribers: Event-driven handlers for business events
- Jobs: Background task processing
- Links: Data relationships between modules
Module Development
// Module definition pattern
import { Module } from "@medusajs/framework/utils"
export const MY_MODULE = "my-module"
export default Module(MY_MODULE, {
service: MyService,
})
Service Pattern with Dependency Injection
import { MedusaService } from "@medusajs/framework/utils"
import MyModel from "./models/my-model"
class MyService extends MedusaService({
MyModel,
}) {
// CRUD methods are automatically generated by MedusaService
// You can add custom methods here
async customMethod(data: CustomInput): Promise<CustomOutput> {
return await this.myModelRepository_.customQuery(data)
}
}
Module Registration
// medusa-config.ts
import { defineConfig } from "@medusajs/framework/utils"
export default defineConfig({
projectConfig: {
// ... other config
},
modules: [
{
resolve: "./src/modules/my-module",
},
],
})
API Route Patterns
// Admin API route
import { MedusaRequest, MedusaResponse } from "@medusajs/framework/http"
import { z } from "zod"
const schema = z.object({
name: z.string().min(1),
description: z.string().optional(),
})
export async function POST(
req: MedusaRequest,
res: MedusaResponse
): Promise<void> {
const validatedBody = schema.parse(req.body)
const myService = req.scope.resolve("myService")
const result = await myService.create(validatedBody)
res.status(200).json({ data: result })
}
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 15d ago First seen · 403 lines · 2,222 tokens per session scan A c3dd4ab60865
medusa-development is a cursor rule published in the GitHub repository lambda-curry/medusa2-starter (164 stars, last pushed 17d ago), licensed MIT. It adds 2,222 tokens to every session, about $0.0089 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-15.
medusa-development compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| medusa-developmentlambda-curry/medusa2-starter | Cursor rule | 164 | 17d ago | MIT | A | 2,222 | Cursor |
| cursormrwogu/promptscript | Cursor rule | 324 | 7d ago | MIT | A | 53 | Cursor |
| storage-plugintrueLoving/Pixuli | Cursor rule | 66 | 2d ago | MIT | A | 0 | Cursor |
| tray-apitray-tecnologia/tray-api-ai-plugin | Cursor rule | 15 | 3mo ago | MIT | A | 70 | Cursor |
| marketplace-allvtex/skills | Cursor rule | 47 | 1mo ago | none | A | 25,584 | Cursor |
| payment-payment-ppp-posvtex/skills | Cursor rule | 47 | 1mo ago | none | A | 7,970 | Cursor |
| marketplace-marketplace-order-hookvtex/skills | Cursor rule | 47 | 1mo ago | none | A | 5,539 | Cursor |