db-generate 是做什麼的?
為 Medusa 模組產生資料庫遷移
為 Medusa 模組產生資料庫遷移
`medusajs/db-generate` 是一個專門用於 Medusa 模組的 AI 代理技能,主要功能是自動產生資料庫遷移檔案。對於使用 Medusa 這個可組合數位商務平台的開發者來說,當模組的資料模型發生變更時,手動編寫資料庫遷移既繁瑣又容易出錯;此技能能直接從 Medusa 模組的實體定義或資料模型推導出所需的資料庫變更,並生成對應的遷移腳本。支援的平台包括 Claude Code、Cursor 等具備工具呼叫能力的 AI 代理環境。其運作方式是透過解析模組中的 `entity` 或 `model` 類別,比對目前的資料庫狀態,然後產出標準的遷移檔案(如使用 TypeORM 或 MikroORM 的遷移格式),讓開發者只需執行遷移指令即可同步資料庫結構。這不僅加快了開發迭代速度,也降低了手動撰寫 SQL 或遷移程式碼可能引入的錯誤。
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.