db-generate 是做什么的?
为 Medusa 模块生成数据库迁移文件
为 Medusa 模块生成数据库迁移文件
medusajs/db-generate 是一个专为 Medusa.js 后端开发设计的 AI 助手技能,其主要功能是根据 Medusa 模块中的数据模型定义自动生成数据库迁移脚本。该技能能够解析模块中的实体、关系与索引配置,并输出与 Medusa 框架兼容的迁移文件,从而简化数据库 schema 的版本管理流程。它适用于所有基于 TypeORM 或 MikroORM 的 Medusa 项目,开发者只需提供模块路径或配置文件,即可快速获得对应的迁移文件。通过自动化迁移生成,该技能能显著减少手动编写迁移代码的工作量,避免因 schema 变更导致的错误,并保持与 Medusa 核心迁移机制的无缝集成。
npx skills add https://github.com/medusajs/medusa-agent-skills/tree/main/skills/db-generateInstalled? Explore more 生产力与协作 skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →
为 Medusa 模块生成数据库迁移文件
This repo contains 7 individual skills — each has its own dedicated page.
Load automatically when planning, researching, or implementing Medusa Admin dashboard UI (widgets, custom pages, forms, tables, data loading, navigation). REQUIRED for all admin UI work in ALL modes (planning, implementation, exploration). Contains design patterns, component usage, and data loading patterns that MCP servers don't provide.
Load automatically when planning, researching, or implementing Medusa storefront features (calling custom API routes, SDK integration, React Query patterns, data fetching). REQUIRED for all storefront development in ALL modes (planning, implementation, exploration). Contains SDK usage patterns, frontend integration, and critical rules for calling Medusa APIs.
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.
Run database migrations in Medusa
Load automatically when user asks to learn Medusa development (e.g., "teach me how to build with medusa", "guide me through medusa", "I want to learn medusa"). Interactive guided tutorial where Claude acts as a coding bootcamp instructor, teaching step-by-step with checkpoints and verification.
Create an admin user in Medusa
ALWAYS use this skill when working on ecommerce storefronts, online stores, shopping sites. Use for ANY storefront component including checkout pages, cart, payment flows, product pages, product listings, navigation, homepage, or ANY page/component in a storefront. CRITICAL for adding checkout, implementing cart, integrating Medusa backend, or building any ecommerce functionality. Framework-agnostic (Next.js, SvelteKit, TanStack Start, React, Vue). Provides patterns, decision frameworks, backend integration guidance.
Gemini CLI one-shot prompts, summaries, generation, skills, hooks, MCP, or Gemma routing.
Fetch GitHub issues, select candidates, spawn background fix agents, open PRs, and optionally process PR review comments.
Create, edit, audit, tidy, validate, or restructure AgentSkills and SKILL.md files.
Search, install, update, sync, or publish agent skills with the ClawHub CLI and registry.
Delegate coding work to Codex, Claude Code, or OpenCode as background workers; not simple edits or read-only code lookup.
List, configure, authenticate, call, and inspect MCP servers/tools with mcporter over HTTP or stdio.