Medusa Catalogのロゴ

Medusa Catalog

組織
OrcaQubits
medusa-catalog

Manage the Medusa v2 catalog — products, variants, options, collections, categories, tags, and product metadata. Use when working with Medusa product data.

概要

公開者OrcaQubits
リポジトリagentic-commerce-skills-plugins
スキル名medusa-catalog
スター
40
フォーク
17
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    OrcaQubitsがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Medusa Catalog」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/OrcaQubits/agentic-commerce-skills-plugins/tree/main/medusa-commerce/skills/medusa-catalog
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/OrcaQubits/agentic-commerce-skills-plugins.git /tmp/agentic-commerce-skills-plugins
mkdir -p .claude/skills
cp -r /tmp/agentic-commerce-skills-plugins/medusa-commerce/skills/medusa-catalog .claude/skills/medusa-catalog
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでMedusa Catalogを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にMedusa Catalogを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Medusa Catalogは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Medusa v2 Catalog Management

Before writing code

Fetch live docs:

  1. Web-search site:docs.medusajs.com product module for product data model and service methods
  2. Web-search site:docs.medusajs.com product variant option for variant/option relationships
  3. Web-search site:docs.medusajs.com collection category for collection and category APIs
  4. Fetch https://docs.medusajs.com/resources/references/product and review the IProductModuleService interface
  5. Web-search medusajs v2 product workflow 2026 for latest product-related workflow steps
  6. Web-search site:docs.medusajs.com admin product api route for Admin API product endpoints

Product Model

Hierarchy

EntityRelationshipKey Fields
ProductRoottitle, subtitle, description, handle, status
OptionsProduct → manySize, Color, Material (with OptionValues)
VariantsProduct → manysku, barcode, ean, upc, hs_code
PricesVariant → many (link)Via Pricing Module link
InventoryVariant → one (link)Via Inventory Module link
ImagesProduct → manyurl, rank
TagsProduct ↔ manymany-to-many labels
CategoriesProduct ↔ manyNested tree (parent_category_id)
CollectionsProduct ↔ manyCurated groupings
MetadataOn all entitiesJSONB key-value store

Product Status

StatusMeaning
draftNot visible to customers
proposedSubmitted for review
publishedVisible on storefront
rejectedReview rejected

Module Architecture

Medusa v2 uses a modular architecture where the Product Module is decoupled from pricing, inventory, and other concerns through Module Links.

Product Module ──link──> Pricing Module
Product Module ──link──> Inventory Module
Product Module ──link──> Sales Channel Module

Fetch live docs for exact link definitions and how to query across linked modules using remoteQuery.

Variants and Options

Relationship Model

EntityCardinalityDescription
Product -> Optionone-to-manyEach product defines its own options
Option -> OptionValueone-to-manyEach option has enumerated values
Variant -> OptionValuemany-to-manyEach variant selects one value per option
Variant -> Priceone-to-manyVia Pricing Module link
Variant -> InventoryItemone-to-oneVia Inventory Module link

Key Service Methods

OperationMethodNotes
Create productproductModuleService.createProducts()Accepts variants, options inline
Update productproductModuleService.updateProducts()Partial updates supported
Delete productproductModuleService.deleteProducts()Cascades to variants
List productsproductModuleService.listProducts()Supports filters, pagination
Retrieve productproductModuleService.retrieveProduct()By ID with relations
Create variantsproductModuleService.createProductVariants()Link option values
Update variantsproductModuleService.updateProductVariants()Partial update

Fetch live docs for the exact method signatures and filter/select/relations options available on each service method.

Minimal Workflow Pattern

ts
// Skeleton: create product with variants
// Fetch live docs for createProductsWorkflow input shape
import { createProductsWorkflow } from "@medusajs/medusa/core-flows"

const { result } = await createProductsWorkflow(container)
  .run({ input: { products: [/* ... */] } })
// Fetch live docs for CreateProductsWorkflowInput

Collections

Logical groupings of products:

  • Each collection has a title, handle, and optional metadata
  • Products can belong to multiple collections
  • Managed via productModuleService.createProductCollections()
  • Useful for seasonal promotions, curated sets, and storefront navigation

Categories

Hierarchical classification with nesting:

FieldDescription
nameDisplay name
handleURL-friendly slug
parent_category_idReference to parent (null for root)
rankSort order among siblings
is_activeVisibility flag
is_internalHidden from storefront

Categories form a tree structure — unlimited depth. Use category_children relation to traverse.

Fetch live docs for category service methods and nested tree query patterns.

Tags

Simple labels for filtering and organization:

  • Stored as separate entities with a value field
  • Many-to-many relationship with products
  • Queryable via listProductTags()
  • Use for lightweight cross-cutting classification (e.g., "new-arrival", "sale")

Product Metadata

JSONB key-value store on every product entity:

  • Available on Product, ProductVariant, ProductOption, and ProductCollection
  • Schema-free — store arbitrary JSON values
  • Queryable via filters: metadata: { key: value }
  • Use for custom attributes that don't warrant a dedicated field

Admin API Routes

Route PatternMethodPurpose
/admin/productsGETList products with filters
/admin/productsPOSTCreate product
/admin/products/:idGETRetrieve single product
/admin/products/:idPOSTUpdate product
/admin/products/:idDELETEDelete product
/admin/collectionsGET/POSTManage collections
/admin/categoriesGET/POSTManage categories

Fetch live docs for query parameters, request body shapes, and pagination patterns on each route.

Store API Routes

Route PatternMethodPurpose
/store/productsGETList published products
/store/products/:idGETRetrieve single product
/store/collectionsGETList collections
/store/categoriesGETList active categories

Store routes respect sales channel and publishable API key scoping.

Best Practices

Data Modeling

  • Use Options + Variants for product variations — do not duplicate products
  • Leverage categories for hierarchical navigation and collections for curated groupings
  • Store custom attributes in metadata rather than creating custom modules for simple data

Performance

  • Use select and relations parameters to fetch only needed fields
  • Use remoteQuery for cross-module queries (product + pricing + inventory)
  • Paginate large catalogs — never fetch all products without limit and offset

Workflows

  • Use createProductsWorkflow and updateProductsWorkflow for transactional operations
  • Workflows handle cross-module orchestration (linking prices, inventory) automatically
  • Custom product logic should extend workflows via hooks, not bypass them

Module Isolation

  • Never import Product Module internals directly — use the service interface
  • Cross-module data access must go through links and remoteQuery
  • Respect module boundaries when building custom features

Fetch the Medusa v2 product module documentation and workflow references for exact service method signatures, workflow inputs, and remote query patterns before implementing.

よくある質問

AIスキル「Medusa Catalog」では何ができますか?

Manage the Medusa v2 catalog — products, variants, options, collections, categories, tags, and product metadata. Use when working with Medusa product data.

TypingMindでMedusa Catalogを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Medusa Catalogはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにMedusa Catalogをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/OrcaQubits/agentic-commerce-skills-plugins/tree/main/medusa-commerce/skills/medusa-catalogを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Medusa Catalogを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Medusa Catalogで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもMedusa Catalogを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Medusa Catalog」は無料ですか?

はい。OrcaQubitsがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇