Medusa Admin logo

Medusa Admin

Organization
OrcaQubits
medusa-admin

Extend the Medusa v2 admin dashboard — widgets injected at zones, custom UI routes, Medusa UI components, and Admin API integration. Use when customizing the admin interface.

Overview

PublisherOrcaQubits
Repositoryagentic-commerce-skills-plugins
Skill namemedusa-admin
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 Admin 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-admin
  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-admin .claude/skills/medusa-admin
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Medusa Admin 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 Admin 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 Admin 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 Admin Dashboard Extensions

Before writing code

Fetch live docs:

  1. Fetch https://docs.medusajs.com/learn/fundamentals/admin/widgets for widget development
  2. Web-search site:docs.medusajs.com admin UI routes for custom admin pages
  3. Web-search site:docs.medusajs.com admin widget injection zones for available zones
  4. Web-search site:docs.medusajs.com medusa UI components for component library
  5. Web-search site:docs.medusajs.com admin API client for making API calls from admin

Admin Extension Concept

Medusa v2 admin is a React-based SPA that supports two extension types:

  • Widgets -- injected into predefined zones on existing admin pages
  • UI Routes -- entirely new pages accessible via the admin sidebar or navigation

Extensions live in src/admin/ and are automatically discovered and bundled.

Admin Extension Directory Structure

DirectoryPurpose
src/admin/widgets/Widget components (e.g., product-custom-widget.tsx)
src/admin/routes/custom-page/page.tsxCustom admin page
src/admin/routes/custom-page/[id]/page.tsxDynamic route page
src/admin/lib/Shared API utilities

Widgets

Widget Injection Zones

ZoneLocationUse Case
product.details.beforeProduct detail, topCustom product fields
product.details.afterProduct detail, bottomRelated data display
product.details.side.beforeProduct detail sidebar, topQuick actions
product.details.side.afterProduct detail sidebar, bottomMetadata display
order.details.beforeOrder detail, topCustom order info
order.details.afterOrder detail, bottomFulfillment tracking
order.details.side.beforeOrder sidebar, topOrder tags
order.details.side.afterOrder sidebar, bottomOrder notes
customer.details.beforeCustomer detail, topLoyalty info
customer.details.afterCustomer detail, bottomPurchase history

Fetch live docs for the complete zone list -- zones are added with each Medusa release.

Widget Definition Skeleton

typescript
// src/admin/widgets/product-custom-widget.tsx
// Fetch live docs for defineWidgetConfig and zone types
import { defineWidgetConfig } from "@medusajs/admin-sdk"
import { Container, Heading } from "@medusajs/ui"

const ProductCustomWidget = ({ data }) => (
  <Container><Heading level="h2">Custom</Heading></Container>
)
typescript
export const config = defineWidgetConfig({ zone: "product.details.after" })
export default ProductCustomWidget

Widget Props

PropTypeDescription
dataEntity objectThe entity displayed on the page (product, order, etc.)

The data prop shape depends on the zone -- a product.details.* zone receives the product object.

Custom UI Routes

Route File Convention

File PathAdmin URL
src/admin/routes/custom-page/page.tsx/app/custom-page
src/admin/routes/custom-page/[id]/page.tsx/app/custom-page/:id
src/admin/routes/settings/my-setting/page.tsx/app/settings/my-setting

Route Page Skeleton

typescript
// src/admin/routes/custom-page/page.tsx
// Fetch live docs for defineRouteConfig
import { defineRouteConfig } from "@medusajs/admin-sdk"
import { Container, Heading } from "@medusajs/ui"

const CustomPage = () => (
  <Container><Heading level="h1">Custom Page</Heading></Container>
)
typescript
export const config = defineRouteConfig({ label: "Custom Page" })
export default CustomPage
// Fetch live docs for icon options in defineRouteConfig

Adding Sidebar Navigation

The defineRouteConfig with a label property automatically adds the page to the admin sidebar. Pages under routes/settings/ appear in the Settings section.

Medusa UI Component Library

CategoryKey Components
LayoutContainer, Drawer, FocusModal, Prompt
TypographyHeading, Text, Label, Code
FormsInput, Select, Checkbox, RadioGroup, Switch, Textarea, DatePicker
DataTable, Badge, StatusBadge, Avatar, Copy
ActionsButton, IconButton, DropdownMenu, CommandBar
FeedbackToast, Alert, ProgressBar, Spinner
NavigationTabs, Breadcrumbs

Fetch live docs: Web-search site:docs.medusajs.com @medusajs/ui components for the full component catalog and prop APIs.

Making Admin API Calls

Using the Medusa JS SDK

typescript
// Fetch live docs for admin SDK client setup
// Use the SDK or fetch wrapper provided by Medusa admin
// Fetch live docs for createAdminClient or useAdminXxx hooks
const { data } = await sdk.admin.product.list()

Using fetch with Admin Auth

Admin extensions run within the authenticated admin session. Use the built-in fetch wrapper or the JS SDK which automatically includes session credentials.

Admin API Scopes

ScopeEndpointsRequires
Store API (/store/*)Storefront operationsOptional customer auth
Admin API (/admin/*)Back-office operationsAdmin user session
Custom (/admin/custom/*)Custom admin endpointsAdmin auth middleware

Custom admin pages typically call /admin/* endpoints which require the admin session token.

Limitations

LimitationWorkaround
Cannot modify core admin pagesUse widgets injected at zones
Cannot override core admin routesCreate new routes with custom functionality
Limited styling controlUse @medusajs/ui components for consistency
No server-side renderingAdmin is a client-side SPA
Bundle sizeKeep widget dependencies minimal

Best Practices

  • Use @medusajs/ui components for visual consistency with the core admin
  • Keep widgets focused on a single concern -- use multiple widgets for multiple features
  • Use custom UI routes for complex multi-step interfaces
  • Call the Admin API through the JS SDK or built-in fetch wrapper -- do not hardcode URLs
  • Type your widget data prop for type safety
  • Place shared utilities in src/admin/lib/ for reuse across widgets and routes

Testing Admin Extensions

ApproachDescription
StorybookRender components in isolation with @medusajs/ui
Browser testingRun npx medusa develop and manually verify
Unit testsTest logic functions separately from React rendering

Fetch the Medusa admin extension documentation for exact injection zone names, component props, and route configuration options before implementing.

Frequently asked questions

What does the Medusa Admin AI skill do?

Extend the Medusa v2 admin dashboard — widgets injected at zones, custom UI routes, Medusa UI components, and Admin API integration. Use when customizing the admin interface.

Why use Medusa Admin on TypingMind?

Because you install it once and use it with any model. Medusa Admin 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 Admin 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-admin. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Medusa Admin?

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 Admin?

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

Is the Medusa Admin 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 👇