Medusa Customers logo

Medusa Customers

Organization
OrcaQubits
medusa-customers

Manage Medusa v2 customers — customer profiles, email and social authentication, customer groups, addresses, and account management. Use when working with customer data and auth.

Overview

PublisherOrcaQubits
Repositoryagentic-commerce-skills-plugins
Skill namemedusa-customers
Stars
40
Forks
17
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by OrcaQubits on GitHub. Read the source before you install it.

Installation

Install the Medusa Customers AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/OrcaQubits/agentic-commerce-skills-plugins/tree/main/medusa-commerce/skills/medusa-customers
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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-customers .claude/skills/medusa-customers
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Medusa Customers in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Medusa Customers on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Medusa Customers is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Medusa v2 Customer Management

Before writing code

Fetch live docs:

  1. Web-search site:docs.medusajs.com customer module for customer data model and service methods
  2. Web-search site:docs.medusajs.com auth module for authentication providers and flows
  3. Web-search site:docs.medusajs.com customer group for group management and pricing rules
  4. Fetch https://docs.medusajs.com/resources/references/customer and review the ICustomerModuleService interface
  5. Web-search medusajs v2 auth provider social login 2026 for latest authentication patterns

Customer Data Model

Entity Relationships

EntityRelationshipKey Fields
CustomerRootemail, first_name, last_name, phone, has_account, metadata
Addresses[]Customer → manyaddress fields, country_code, is_default_shipping/billing
CustomerGroups[]Customer ↔ manyMany-to-many group membership
Orders[]Customer → many (link)Via Order Module link

Key Fields

FieldTypeDescription
emailstringUnique identifier for the customer
has_accountbooleantrue for registered, false for guest
first_name / last_namestringCustomer name
phonestringPhone number
metadataJSONBCustom key-value data

Authentication Architecture

Medusa v2 separates customer identity from authentication via the Auth Module:

Auth Module
├── AuthIdentity
│   ├── provider_identities[] (emailpass, google, github...)
│   └── app_metadata (linked customer_id)
└── Auth Providers (built-in + custom)

Authentication Flow

Register/Login ──> Auth Module validates ──> JWT token
  ──> Token includes auth_identity_id ──> Linked to customer_id

Auth Provider Comparison

ProviderTypeConfiguration
emailpassBuilt-inNo external config needed
googleOAuth2Client ID + secret
githubOAuth2Client ID + secret
CustomExtensibleImplement AbstractAuthModuleProvider

Email + Password Flow

StepEndpointPurpose
Register/auth/customer/emailpass/registerCreate auth identity
Login/auth/customer/emailpassAuthenticate, get token
Create customer/store/customersCreate customer profile (with token)

Social Login Flow (OAuth2)

StepEndpointPurpose
Initiate/auth/customer/{provider}Get redirect URL
Callback/auth/customer/{provider}/callbackExchange code for token
Create/Link/store/customersCreate or link customer profile

Fetch live docs for OAuth2 callback handling, redirect URIs, and token exchange flow.

Customer Groups

FieldTypeDescription
namestringGroup name (e.g., "VIP", "Wholesale")
metadataJSONBCustom group data
customersrelationMany-to-many with customers

Use Cases

Use CaseMechanism
Group-specific pricingPrice List rules linked to customer groups
Conditional promotionsPromotion rules targeting customer groups
Access controlCustom middleware checking group membership

Key Service Methods

OperationMethod
Create groupcustomerModuleService.createCustomerGroups()
Add to groupcustomerModuleService.addCustomerToGroup()
Remove from groupcustomerModuleService.removeCustomerFromGroup()
List groupscustomerModuleService.listCustomerGroups()

Address Management

FieldRequiredNotes
first_name / last_nameYes
address_1YesStreet address
cityYes
country_codeYesISO 2-letter code
postal_codeConditionalRequired by country
is_default_shipping / is_default_billingNoDefault flags
WorkflowPurpose
createCustomerAddressesWorkflowAdd new address
updateCustomerAddressesWorkflowUpdate existing address
deleteCustomerAddressesWorkflowRemove address

Store API Routes

Route PatternMethodPurpose
/store/customersPOSTCreate customer profile
/store/customers/meGETRetrieve authenticated customer
/store/customers/mePOSTUpdate customer profile
/store/customers/me/addressesGET/POSTList/add addresses
/store/customers/me/addresses/:idPOST/DELETEUpdate/remove address

All /store/customers/me routes require a valid JWT in the Authorization header.

Admin API Routes

Route PatternMethodPurpose
/admin/customersGET/POSTList/create customers
/admin/customers/:idGET/POSTRetrieve/update customer
/admin/customer-groupsGET/POSTManage groups
/admin/customer-groups/:id/customersPOSTAdd customers to group

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

Best Practices

Authentication

  • Use the Auth Module for all authentication -- never implement custom auth logic outside it
  • Support both emailpass and at least one OAuth2 provider for user convenience
  • Store provider-specific data in provider_identities, not in customer metadata
  • Always link auth identities to customer profiles via app_metadata.customer_id

Customer Data

  • Use has_account to distinguish registered customers from guest checkouts
  • Store loyalty points, preferences, and custom attributes in metadata
  • Use customer groups for segmentation -- avoid duplicating group logic in app code

Address Management

  • Validate addresses against country-specific requirements (postal code formats)
  • Set is_default_shipping and is_default_billing to streamline checkout

Security

  • Validate JWT tokens on every authenticated request
  • Scope Store API customer data to the authenticated customer only
  • Never expose customer lists or group memberships via the Store API

Fetch the Medusa v2 customer module and auth module documentation for exact service method signatures, auth provider configuration, and JWT handling before implementing.

Frequently asked questions

What does the Medusa Customers AI skill do?

Manage Medusa v2 customers — customer profiles, email and social authentication, customer groups, addresses, and account management. Use when working with customer data and auth.

Why use Medusa Customers on TypingMind?

Because you install it once and use it with any model. Medusa Customers is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Medusa Customers in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/OrcaQubits/agentic-commerce-skills-plugins/tree/main/medusa-commerce/skills/medusa-customers. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Medusa Customers?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Medusa Customers?

As many as you like. As long as a model supports skills, you can use Medusa Customers with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Medusa Customers AI skill free?

Yes. It is published on GitHub by OrcaQubits under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇