Token导航 LogoToken导航

Agent Skill · 前端设计

medusajs-developer(medusajs 开发人员)

medusajs-developer 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

medusajs-developer 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证为 MIT,第三方扫描有未通过项,按安装量在前端设计类的 10,216 个 Skill 里排第 4,588。

总安装 848周安装 35GitHub Stars 5下载 277核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:medusajs-developer(medusajs 开发人员)
来源仓库:https://github.com/greedychipmunk/agent-skills
仓库路径:skills/medusajs-developer
安装命令:
npx skills add https://github.com/greedychipmunk/agent-skills --skill medusajs-developer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/greedychipmunk/agent-skills --skill medusajs-developer

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

medusajs-developer 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合围绕仓库状态进行整理。适用于需要了解项目进展、代码变更或协作事项的场景。可通过仓库路径或 Issue 编号获取相关信息,支持结构化输出。安装前需确认权限范围,注意是否会触发联网或文件读写操作。

适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/medusajs-developer

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/greedychipmunk/agent-skills --skill medusajs-d…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

medusajs-developer 怎么安装?

在终端执行 npx skills add https://github.com/greedychipmunk/agent-skills --skill medusajs-developer。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

medusajs-developer 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

medusajs-developer 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

medusajs-developer 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

medusajs-developer 用的人多吗?

公开数据是累计安装 848 次,近一周安装 35 次,下载 277 次,GitHub 5 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

medusajs-developer 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
medusajs-developer

medusajs 开发人员 · 本页

8485接触敏感数据MIT未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

MedusaJS Developer Agent Skill

An expert agent specializing in MedusaJS development, focusing on building scalable e-commerce solutions with custom modules, API integrations, and third-party plugins.

Core Capabilities

1. Custom Module Development

  • Data Models: Create and manage data models using MedusaJS DML
  • Module Services: Implement service layers with automatic CRUD operations
  • Module Configuration: Set up proper module structure and exports
  • Database Migrations: Generate and manage database schema changes

2. API Route Development

  • Custom Endpoints: Create REST API routes in src/api/[route-name]/route.ts
  • HTTP Methods: Implement GET, POST, PUT, DELETE handlers
  • Request/Response Handling: Manage MedusaRequest and MedusaResponse objects
  • Authentication: Integrate with MedusaJS auth systems

3. Commerce Module Integration

  • 18 Built-in Modules: Work with API Key, Auth, Cart, Customer, Order, Payment, Product, Pricing, Promotion, Tax, and more
  • Module Links: Create relationships between different modules
  • Custom Fields: Extend existing modules with additional data fields
  • Module Composition: Combine multiple modules for complex workflows

4. Workflow & Automation

  • Scheduled Jobs: Create recurring tasks with cron expressions
  • Event Handling: Implement subscribers for asynchronous operations
  • Business Logic: Orchestrate complex commerce workflows
  • Background Processing: Handle long-running operations efficiently

5. Third-Party Integrations

  • Payment Providers: Integrate custom payment gateways
  • External APIs: Connect with shipping, tax, and inventory services
  • Webhooks: Handle incoming webhooks from external systems
  • Data Synchronization: Sync data with external platforms

Development Patterns

Module Structure

// src/modules/my-module/models/post.ts
import { model } from "@medusajs/framework/utils"

const Post = model.define("post", {
  id: model.id().primaryKey(),
  title: model.text(),
  content: model.text().nullable(),
  published: model.boolean().default(false)
})

export default Post

API Route Example

// src/api/posts/route.ts
import { MedusaRequest, MedusaResponse } from "@medusajs/framework/http"

export const GET = async (req: MedusaRequest, res: MedusaResponse) => {
  const postService = req.scope.resolve("postService")
  const posts = await postService.listPosts()

  res.json({ posts })
}

export const POST = async (req: MedusaRequest, res: MedusaResponse) => {
  const postService = req.scope.resolve("postService")
  const post = await postService.createPost(req.body)

  res.json({ post })
}

Scheduled Job Example

// src/jobs/sync-inventory.ts
import { MedusaContainer } from "@medusajs/framework/types"

export default async function syncInventoryJob(container: MedusaContainer) {
  const inventoryService = container.resolve("inventoryService")
  await inventoryService.syncWithExternalProvider()
}

export const config = {
  name: "sync-inventory",
  schedule: "0 */6 * * *" // Every 6 hours
}

Best Practices

1. Project Setup

  • Use MedusaJS CLI for project initialization
  • Follow TypeScript best practices
  • Implement proper error handling
  • Set up comprehensive testing

2. Module Design

  • Keep modules focused on single domains
  • Use clear naming conventions
  • Implement proper validation
  • Document module interfaces

3. API Design

  • Follow RESTful conventions
  • Use proper HTTP status codes
  • Implement pagination for list endpoints
  • Validate input data thoroughly

4. Performance Optimization

  • Use database indexes appropriately
  • Implement caching strategies
  • Optimize database queries
  • Handle large datasets efficiently

5. Integration Patterns

  • Use environment variables for configuration
  • Implement retry mechanisms for external calls
  • Handle rate limiting gracefully
  • Log integration activities properly

Common Tasks

Creating a New Module

  1. Create module directory structure
  2. Define data models with proper relationships
  3. Implement service layer with business logic
  4. Generate and run database migrations
  5. Create API routes for module operations
  6. Add comprehensive tests

Setting Up Third-Party Integration

  1. Install necessary dependencies
  2. Configure environment variables
  3. Create service for external API communication
  4. Implement webhook handlers if needed
  5. Add error handling and logging
  6. Test integration thoroughly

Implementing Custom Workflow

  1. Identify business process steps
  2. Create necessary data models
  3. Implement workflow orchestration
  4. Add event handlers for state changes
  5. Create monitoring and alerting
  6. Document workflow behavior

Troubleshooting

Common Issues

  • Migration Failures: Check model definitions and database constraints
  • Service Resolution: Verify module exports and dependency injection
  • API Errors: Validate request/response formats and authentication
  • Performance Issues: Analyze database queries and implement caching

Debugging Strategies

  • Use MedusaJS debugging tools
  • Check application logs for errors
  • Verify database schema matches models
  • Test API endpoints with proper headers
  • Monitor external service responses

Code Templates

This skill includes production-ready code templates in the templates/ directory based on official MedusaJS documentation and best practices.

Available Templates

module-complete.ts

Complete custom module structure with:

  • Multiple data models with various property types
  • One-to-many and many-to-many relationships
  • Main service with custom methods
  • Additional services with dependency injection

Use case: Creating custom modules (Blog, Brand, Restaurant, etc.)

api-route-complete.ts

Complete REST API route with:

  • GET, POST, PUT, DELETE handlers
  • Zod validation schemas
  • Authentication and validation middlewares
  • Error handling and logging
  • Query integration for related data

Use case: Exposing module functionality via API endpoints

workflow-complete.ts

Complete workflow with:

  • Multiple steps with compensation functions
  • Data transformation between steps
  • Conditional execution
  • Integration with Medusa modules

Use case: Complex business logic with rollback requirements

subscriber-complete.ts

Event subscriber patterns:

  • Basic event handling
  • Workflow execution in subscribers
  • Multi-event subscribers
  • Retry logic and error handling

Use case: Responding to Medusa events (order.placed, product.created, etc.)

module-link.ts

Module link patterns:

  • Basic links between modules
  • List links (one-to-many)
  • Custom columns in link tables
  • Creating, dismissing, and querying links

Use case: Creating relationships between different modules

scheduled-job.ts

Scheduled job patterns:

  • Basic scheduled tasks
  • Batch processing
  • External API integration
  • Common cron patterns

Use case: Recurring automated tasks (sync, cleanup, reports)

Template Usage Example

# Copy template to your project
cp templates/module-complete.ts src/modules/brand/

# Customize for your needs
# - Rename identifiers
# - Add/remove properties
# - Implement business logic

# Generate and run migrations
./scripts/generate-migration.sh brand
./scripts/run-migrations.sh

Common Template Combinations

E-commerce Extension:

  1. module-complete.ts → Create custom module
  2. module-link.ts → Link to Product module
  3. api-route-complete.ts → Create API endpoints
  4. workflow-complete.ts → Implement business logic
  5. subscriber-complete.ts → Handle events

Data Synchronization:

  1. workflow-complete.ts → Sync workflow
  2. scheduled-job.ts → Run periodically
  3. subscriber-complete.ts → Trigger on events

See templates/README.md for detailed documentation, best practices, and more examples.

Helper Scripts

This skill includes a collection of helper scripts in the scripts/ directory to streamline common MedusaJS development tasks.

Database Management Scripts

db-setup.sh

Creates a database, runs migrations, and syncs links in one command.

./scripts/db-setup.sh [database-name]

Example:

./scripts/db-setup.sh medusa-store
generate-migration.sh

Generates migration files for specified modules.

./scripts/generate-migration.sh <module-name> [additional-modules...]

Examples:

./scripts/generate-migration.sh blog
./scripts/generate-migration.sh blog product-custom
run-migrations.sh

Runs all pending migrations with optional flags to skip links or data migrations.

./scripts/run-migrations.sh [--skip-links] [--skip-data]

Examples:

./scripts/run-migrations.sh
./scripts/run-migrations.sh --skip-links
rollback-migration.sh

Reverts the last migration for specified modules with safety confirmation.

./scripts/rollback-migration.sh <module-name> [additional-modules...]

Development & Build Scripts

dev-server.sh

Starts the Medusa application in development mode with hot reloading.

./scripts/dev-server.sh [--host HOST] [--port PORT]

Examples:

./scripts/dev-server.sh
./scripts/dev-server.sh --host 0.0.0.0 --port 9001
build-production.sh

Creates a production-ready build of the Medusa application or admin only.

./scripts/build-production.sh [--admin-only]

Examples:

./scripts/build-production.sh
./scripts/build-production.sh --admin-only
start-production.sh

Starts the built Medusa application in production mode.

./scripts/start-production.sh
predeploy.sh

Runs migrations and syncs links before deployment (for CI/CD pipelines).

./scripts/predeploy.sh

Testing Scripts

setup-testing.sh

Installs and configures Jest and Medusa testing tools, creates test directories and configuration files.

./scripts/setup-testing.sh
run-tests.sh

Runs integration and unit tests with options for different test types.

./scripts/run-tests.sh [http|modules|unit|all]

Examples:

./scripts/run-tests.sh all
./scripts/run-tests.sh http
./scripts/run-tests.sh modules
./scripts/run-tests.sh unit

Scaffolding Scripts

create-module.sh

Creates the basic structure for a new custom module with service and model directories.

./scripts/create-module.sh <module-name>

Example:

./scripts/create-module.sh blog

Generated Structure:

src/modules/<module-name>/
├── index.ts
├── service.ts
├── models/
└── __tests__/
create-api-route.sh

Creates a new API route with basic CRUD operations (GET, POST, PUT, DELETE).

./scripts/create-api-route.sh <route-name>

Example:

./scripts/create-api-route.sh posts

Generated Endpoints:

  • GET /api/<route-name> - List all items
  • POST /api/<route-name> - Create new item
  • GET /api/<route-name>/:id - Get single item
  • PUT /api/<route-name>/:id - Update item
  • DELETE /api/<route-name>/:id - Delete item
create-scheduled-job.sh

Creates a new scheduled job with cron configuration template.

./scripts/create-scheduled-job.sh <job-name>

Example:

./scripts/create-scheduled-job.sh sync-inventory

Common Cron Patterns:

  • "0 0 * * *" - Daily at midnight
  • "0 */6 * * *" - Every 6 hours
  • "*/15 * * * *" - Every 15 minutes
  • "0 9 * * 1" - Every Monday at 9 AM

Plugin Development Scripts

plugin-develop.sh

Starts a development server for a plugin with auto-reload (run from plugin directory).

./scripts/plugin-develop.sh
plugin-build.sh

Builds a plugin for publishing to NPM (run from plugin directory).

./scripts/plugin-build.sh

Common Workflows

Creating a New Feature Module

# 1. Create the module structure
./scripts/create-module.sh my-feature

# 2. Add data models in src/modules/my-feature/models/

# 3. Update service.ts with your models

# 4. Generate migrations
./scripts/generate-migration.sh my-feature

# 5. Run migrations
./scripts/run-migrations.sh

# 6. Create API routes
./scripts/create-api-route.sh my-feature

# 7. Write tests
# Add tests in src/modules/my-feature/__tests__/

# 8. Run tests
./scripts/run-tests.sh modules

Setting Up a New Project

# 1. Create new project
npx create-medusa-app@latest my-store

# 2. Setup database
./scripts/db-setup.sh my-store-db

# 3. Setup testing environment
./scripts/setup-testing.sh

# 4. Start development server
./scripts/dev-server.sh

Deployment Workflow

# 1. Run tests
./scripts/run-tests.sh all

# 2. Build for production
./scripts/build-production.sh

# 3. In CI/CD pipeline, run predeploy
./scripts/predeploy.sh

# 4. Start production server
./scripts/start-production.sh

Resources

  • Official MedusaJS Documentation
  • Community Discord and Forums
  • GitHub Repository and Examples
  • Plugin Marketplace
  • Developer Tools and CLI Commands

This skill enables comprehensive MedusaJS development with focus on maintainable, scalable e-commerce solutions.

平台分布

Claude Code

29.19%
按下载量换算81

Gemini CLI

21.37%
按下载量换算59

windsurf

18.33%
按下载量换算51

Antigravity

14.42%
按下载量换算40

OpenCode

8.77%
按下载量换算24

Codex

3.28%
按下载量换算9

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

可疑

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。

继续浏览同类 Skills