Agent skill

Building With Medusa

by medusajs in medusajs/medusa-agent-skills

Load automatically when planning, researching, or implementing ANY Medusa backend features (custom modules, API routes, workflows, data models, module links, business logic).

No licenceAuto-check passedAgent Workflows

Install Building With Medusa

skills CLI
$ npx skills add medusajs/medusa-agent-skills --skill building-with-medusa -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install medusajs/medusa-agent-skills building-with-medusa --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/medusajs/medusa-agent-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/medusa-dev/skills/building-with-medusa .claude/skills/building-with-medusa && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
building-with-medusa
GitHub stars
228
Token cost
~4.1k tokens
SKILL.md length
1,564 words
Files
14
Skills in repo
16
Repo updated
First seen
Licence
None found

At a glance

Load automatically when planning, researching, or implementing ANY Medusa backend features (custom modules, API routes, workflows, data models, module links, business logic).

  • Works in 10 steps: Architecture Violations (CRITICAL) → Type Safety (CRITICAL) → Business Logic Placement (HIGH) → …
  • Tasks that involve MCP servers
  • SKILL.md covers When to Apply, CRITICAL: Load Reference Files…, Critical Architecture Pattern and Rule Categories by Priority, plus 8 more sections
  • Calls npm, curl and npx

What it does

Building With Medusa is an agent skill from medusajs/medusa-agent-skills. Load automatically when planning, researching, or implementing ANY Medusa backend features (custom modules, API routes, workflows, data models, module links, business logic). REQUIRED for all Medusa backend work in ALL modes (planning, implementation, exploration). Contains architectural patterns, best practices, and critical rules that MCP servers don't provide.

Its SKILL.md is about 4.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 14 other files (for example `reference/api-routes.md`, `reference/authentication.md` and `reference/custom-modules.md`).

It sits in Agent Workflows, covering MCP servers. It works with Model Context Protocol. The repository describes itself as: Agent skills and commands for Medusa best practices and conventions.

When your agent uses it

  • Tasks that involve MCP servers

Example prompts

  • “/building-with-medusa”

Requirements

  • Node.js

Workflow steps

10 steps, taken from the step headings in SKILL.md.

  1. Architecture Violations (CRITICAL)
  2. Type Safety (CRITICAL)
  3. Business Logic Placement (HIGH)
  4. Import & Code Organization (HIGH)
  5. Data Access Patterns (MEDIUM)
  6. File Organization (MEDIUM)
  7. Start the Development Server
  8. Access the Admin Dashboard
  9. Test API Routes
  10. Additional Testing Steps

What it can do on your machine

Read from SKILL.md and the folder at commit 066132d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm
    • curl
    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npm, curl and npx, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Building With Medusa loads about 4.1k tokens when it runs. Until then it costs about 97 tokens; SKILL.md has 1,564 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~97
When it runs · the whole SKILL.md, loaded when a task matches
~4.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 1,564 words (~4,123 tokens).

“Comprehensive backend development guide for Medusa applications. Contains patterns across 6 categories covering architecture, type safety, business logic placement, and common pitfalls.”

— opening of SKILL.md by medusajs
name
building-with-medusa

Read the full SKILL.md on GitHub

Files

SKILL.md and 13 other files in plugins/medusa-dev/skills/building-with-medusa of medusajs/medusa-agent-skills.

  • SKILL.md
  • reference/api-routes.md
  • reference/authentication.md
  • reference/custom-modules.md
  • reference/data-models.md
  • reference/error-handling.md
  • reference/frontend-integration.md
  • reference/module-links.md
  • reference/querying-data.md
  • reference/scheduled-jobs.md
  • reference/subscribers-and-events.md
  • reference/troubleshooting.md
  • reference/workflow-hooks.md
  • reference/workflows.md

Open the folder on GitHubat commit 066132d

Compare with similar skills

Building With Medusa next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Building With Medusa compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Building With Medusa this skillmedusajs/medusa-agent-skills228—~4.1kAutomated safety check: PassNone
Agentsbutterbase-ai/butterbase-skills534—~1.8kAutomated safety check: PassMIT
MCP Server Builderanthropics/skills180k63 repos~2.3kAutomated safety check: PassApache-2.0
MCP Server BuildershareAI-lab/learn-claude-code78k4 repos~1.2kAutomated safety check: PassMIT
MCP Integration for Pluginsanthropics/claude-plugins-official38k11 repos~3.1kAutomated safety check: PassApache-2.0
Crush Configurationcharmbracelet/crush29k—~3.7kAutomated safety check: PassCustom licence

Similar skills

  • Agents

    butterbase-ai/butterbase-skills

    A skill your agent uses when designing, deploying, or debugging a Butterbase Agent (declarative LLM/tool graph), registering an MCP server for tool use, or wiring access controls and rate limits.

    534 GitHub stars~1.8k tokensUpdated 5 days ago
    Agent WorkflowsAuto-check passed
  • MCP Server Builder

    anthropics/skills

    Official

    Guides the design and implementation of Model Context Protocol servers in TypeScript or Python, from tool naming and error messages to evaluation.

    180k GitHub starsUsed in 63 repos~2.3k tokens
    Agent WorkflowsAuto-check passed
  • MCP Server Builder

    shareAI-lab/learn-claude-code

    Walks through building MCP servers in Python or TypeScript that expose tools, resources and prompts to Claude, with templates, registration and testing.

    78k GitHub starsUsed in 4 repos~1.2k tokens
    Agent WorkflowsAuto-check passed
  • MCP Integration for Plugins

    anthropics/claude-plugins-official

    Official

    Explains how to bundle Model Context Protocol servers in a Claude Code plugin, covering config files, stdio, SSE, HTTP and WebSocket server types, and authentication.

    38k GitHub starsUsed in 11 repos~3.1k tokens
    Agent WorkflowsAuto-check passed
  • Crush Configuration

    charmbracelet/crush

    Explains how to configure the Crush coding agent with crushrc or crush.json, covering providers, models, LSPs, MCP servers, hooks, permissions and config precedence.

    29k GitHub stars~3.7k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Builds, modifies, debugs, migrates and verifies TypeScript MCP servers and MCP Apps with the mcp-use framework, treating the installed package's types as the source of truth.

    11k GitHub stars~923 tokensUpdated 2 days ago
    Agent WorkflowsAuto-check passed

More from medusajs/medusa-agent-skills

All 16 skills in this repo
  • Medusa Internal Admin Agents

    medusajs/medusa-agent-skills

    Walks through adding an AI agent for store operators to a Medusa project: data models, module service, agent runtime, streaming API route and admin chat UI.

    228 GitHub stars~1.9k tokensUpdated 6 days ago
    Auto-check passed
  • Learning Medusa

    medusajs/medusa-agent-skills

    Interactive tutorial where the agent teaches Medusa development by guiding you through building a brands feature, with lessons and verification checkpoints.

    228 GitHub stars~4.1k tokensUpdated 6 days ago
    Auto-check passed
  • Medusa Cloud CLI Authentication

    medusajs/medusa-agent-skills

    Runs the mcloud commands for logging in, checking who is authenticated, and choosing the active organization, project and environment.

    228 GitHub stars~1.1k tokensUpdated 6 days ago
    Auto-check passed
  • Medusa Cloud Deployments CLI

    medusajs/medusa-agent-skills

    Lists Medusa Cloud deployments, fetches one deployment's details and reads backend or storefront build logs through the mcloud CLI to debug failed builds.

    228 GitHub stars~883 tokensUpdated 6 days ago
    Auto-check passed
  • mcloud Environments

    medusajs/medusa-agent-skills

    Runs mcloud environments commands to list, inspect, create, delete, redeploy or rebuild environments in Medusa Cloud projects.

    228 GitHub stars~1.2k tokensUpdated 6 days ago
    Auto-check passed
  • Medusa Cloud Local Build

    medusajs/medusa-agent-skills

    Reproduces a Medusa Cloud build on your machine with mcloud local build, to debug build-failed deployments without pushing or waiting on Cloud.

    228 GitHub stars~1k tokensUpdated 6 days ago
    Auto-check: notes

Questions about Building With Medusa

What does Building With Medusa do?

Load automatically when planning, researching, or implementing ANY Medusa backend features (custom modules, API routes, workflows, data models, module links, business logic). Building With Medusa is an agent skill from medusajs/medusa-agent-skills. Load automatically when planning, researching, or implementing ANY Medusa backend features (custom modules, API routes, workflows, data models, module links, business logic).

When should I use Building With Medusa?

Building With Medusa fits situations like: tasks that involve MCP servers.

How do I install Building With Medusa in Claude Code?

Run `npx skills add medusajs/medusa-agent-skills --skill building-with-medusa -a claude-code`. Or copy the skill folder (plugins/medusa-dev/skills/building-with-medusa in medusajs/medusa-agent-skills) into .claude/skills/building-with-medusa in your project. Claude Code loads it when a task matches its description.

How do I install Building With Medusa in Codex?

Run `npx skills add medusajs/medusa-agent-skills --skill building-with-medusa -a codex`. Or copy the skill folder (plugins/medusa-dev/skills/building-with-medusa in medusajs/medusa-agent-skills) into .agents/skills/building-with-medusa in your project. Codex loads it when a task matches its description.

Can I use Building With Medusa in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add medusajs/medusa-agent-skills --skill building-with-medusa -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/building-with-medusa, .gemini/skills/building-with-medusa, .github/skills/building-with-medusa and .opencode/skills/building-with-medusa in your project.

What does Building With Medusa need to run?

Going by SKILL.md and its folder, Building With Medusa needs the command-line tools its instructions call (npm, curl and npx). Our summary lists: Node.js.

Does Building With Medusa access the network?

SKILL.md contains no URLs. Its commands use npm, curl and npx, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Building With Medusa safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Building With Medusa use?

No licence was found for Building With Medusa or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Building With Medusa use?

About 4.1k tokens (SKILL.md is roughly 16k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Building With Medusa?

Skills that share tags, products or a category with Building With Medusa: Agents (butterbase-ai/butterbase-skills, 534 stars), MCP Server Builder (anthropics/skills, 180k stars), MCP Server Builder (shareAI-lab/learn-claude-code, 78k stars) and MCP Integration for Plugins (anthropics/claude-plugins-official, 38k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Building With Medusa?

medusajs (a GitHub organization) maintains it in medusajs/medusa-agent-skills, which has 228 GitHub stars. The repository holds 16 skills in this directory. The repository was last updated on October 5, 2026.

Source: medusajs/medusa-agent-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.