AI shopping matchmaking agent for OpenClaw and Hermes. An agent skill from LeoYeAI/openclaw-master-skills.

MITAuto-check passedGame Development

Install Mai

skills CLI
$ npx skills add LeoYeAI/openclaw-master-skills --skill mai -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install LeoYeAI/openclaw-master-skills mai --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/mai .claude/skills/mai && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
mai
GitHub stars
2.2k
Token cost
~2.2k tokens
SKILL.md length
784 words
Files
16 (incl. scripts, references)
Skills in repo
1,235
Repo updated
First seen
Licence
MIT

At a glance

AI shopping matchmaking agent for OpenClaw and Hermes. An agent skill from LeoYeAI/openclaw-master-skills.

  • Works in 5 steps: Create or identify the merchant profile → Publish products → Adjust stock after physical changes → …
  • Merchants want to publish products
  • SKILL.md covers Overview, Operating Principles, Quick Start and Installation, plus 7 more sections
  • Runs Python and Shell scripts from its folder; calls python3 and bash

What it does

Mai is an agent skill from LeoYeAI/openclaw-master-skills. AI shopping matchmaking agent for OpenClaw and Hermes. Use when merchants want to publish products, manage stock, answer buyer questions, and handle order requests; or when buyers want to discover merchants and products, compare prices, discuss with sellers, read reviews, and create trackable orders. Supports local-first transaction tracking and registry-backed PSP custody records.

Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 19 other files, including scripts and reference files (for example `.clawhub/origin.json`, `README.md` and `_meta.json`).

It sits in Game Development, covering Multiplayer and networking. The repository describes itself as: 🧠 Curated collection of 1209+ best OpenClaw skills — weekly updated by MyClaw.ai. The licence is MIT.

When your agent uses it

  • Merchants want to publish products
  • Answer buyer questions
  • Handle order requests
  • Buyers want to discover merchants and products

Example prompts

  • “/mai”

Requirements

  • Python 3
  • A Bash shell

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Create or identify the merchant profile
  2. Publish products
  3. Adjust stock after physical changes
  4. Record important buyer questions and seller replies
  5. Quote and confirm orders only when inventory and terms are clear

What it can do on your machine

Read from SKILL.md and the folder at commit e5199b5. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 3 files in scripts/ (Python and Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • python3
    • bash

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Mai loads about 2.2k tokens when it runs, and up to ~5.4k if it reads all its reference files. Until then it costs about 97 tokens; SKILL.md has 784 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~97
When it runs · the whole SKILL.md, loaded when a task matches
~2.2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~5.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from LeoYeAI/openclaw-master-skills at commit e5199b5, republished under its MIT licence (© LeoYeAI). 784 words, ~2,242 tokens.

Download SKILL.mdSave it as .claude/skills/mai/SKILL.md (or your agent's skills folder). This skill also uses 15 other files; get the full folder from GitHub.
name
mai
description
AI shopping matchmaking agent for OpenClaw and Hermes. Use when merchants want to publish products, manage stock, answer buyer questions, and handle order requests; or when buyers want to discover merchants and products, compare prices, discuss with sellers, read reviews, and create trackable orders. Supports local-first transaction tracking and registry-backed PSP custody records.

Mai

Overview

Mai helps buyers and merchants complete shopping matchmaking through an AI agent. It keeps deterministic marketplace state in scripts/mai.py while the host model handles natural language, negotiation, summaries, and risk explanations.

Mai can run local-only or registry-backed. Use local-only for one agent's private catalog. Use registry-backed discovery when buyers and merchants are on different machines or agent profiles.

Operating Principles

  • Be neutral between buyer and merchant. Explain options, prices, review signals, inventory, and tradeoffs without fabricating availability.
  • Treat payments as external or PSP-backed. Mai never directly holds funds. Local mode records payment URLs and references; registry mode records PSP custody events and must not claim success without PSP or external evidence.
  • Confirm before irreversible steps. Ask for buyer confirmation before creating an order and merchant confirmation before reserving stock.
  • Preserve negotiation context. Record important buyer/merchant messages with message add before forming or updating an order.
  • Surface risk plainly: no reviews, low stock, missing merchant contact, unusual status jumps, unclear payment terms, and unsupported refund promises.
  • Prefer short, actionable answers: recommendation, reason, risk, next action.

Quick Start

Use the CLI helper for deterministic state:

bash
python3 scripts/mai.py merchant create --id seller-a --name "West Lake Tea" --city Hangzhou --contact "wechat:westlake" --tags "tea,gift"
python3 scripts/mai.py product add --merchant seller-a --sku tea-a --title "Longjing Gift Box" --price 88 --stock 5 --category tea --tags "longjing,gift"
python3 scripts/mai.py search products --query "longjing tea" --format json
python3 scripts/mai.py compare --skus tea-a,tea-b --format json
python3 scripts/mai.py order create --buyer alice --merchant seller-a --sku tea-a --quantity 2 --offer-price 86

Default data path: ~/.local/share/mai/mai.json. Use --data /path/to/mai.json for a project-local or test database.

Installation

Install the published OpenClaw pair:

bash
clawhub --workdir ~/.openclaw/workspace --dir skills install mai
openclaw plugins install clawhub:mai-plugin

mai is the skill. mai-plugin is an optional lightweight OpenClaw native bridge for tools and /mai command support.

Local checkout install:

bash
cd /Users/jianghaidong/coding/mai
bash scripts/install.sh --both

Install only one ecosystem:

bash
bash scripts/install.sh --openclaw
bash scripts/install.sh --hermes

The installer creates symlinks:

  • OpenClaw: ~/.openclaw/workspace/skills/mai
  • Hermes: ~/.hermes/skills/commerce/mai

After installation, restart the host agent if it does not refresh skills automatically. Hermes can preload Mai with hermes -s mai.

Registry Discovery

Run a registry marketplace:

bash
python3 scripts/mai_registry.py issue-key --data ./mai-registry.json --token admin-token --role admin --subject ops-admin
python3 scripts/mai_registry.py issue-key --data ./mai-registry.json --token seller-token --role merchant --subject seller-a --merchant-id seller-a
python3 scripts/mai_registry.py issue-key --data ./mai-registry.json --token buyer-token --role buyer --subject alice --buyer-id alice
python3 scripts/mai_registry.py serve --data ./mai-registry.json --host 127.0.0.1 --port 8765 --rate-limit-per-minute 60

Merchant agents publish local supply:

bash
python3 scripts/mai.py --data ./seller.json registry push --url http://127.0.0.1:8765 --api-key seller-token

Buyer agents discover supply and create demand:

bash
python3 scripts/mai.py --data ./buyer.json registry search-products --url http://127.0.0.1:8765 --query "longjing tea" --format json
python3 scripts/mai.py --data ./buyer.json registry message --url http://127.0.0.1:8765 --api-key buyer-token --buyer alice --merchant seller-a --sku tea-a --text "Can this ship today?"
python3 scripts/mai.py --data ./buyer.json registry order --url http://127.0.0.1:8765 --api-key buyer-token --buyer alice --merchant seller-a --sku tea-a --quantity 2 --offer-price 86
python3 scripts/mai.py --data ./buyer.json registry payment-hold --url http://127.0.0.1:8765 --api-key buyer-token --buyer alice --order ORD-0001

Merchant agents pull buyer messages and draft orders:

bash
python3 scripts/mai.py --data ./seller.json registry pull --url http://127.0.0.1:8765 --api-key seller-token --merchant seller-a

Read references/registry-api.md before changing registry integrations.

Public Marketplace Controls

  • Require API keys for merchant push/pull, buyer messages/orders/payment holds, moderation, and payment release/refund.
  • Store only salted API key hashes in the registry file.
  • Allow public search, but rate-limit every request by API key or client IP.
  • Treat products with high risk scores as pending_review; do not show them in search until an admin approves them.
  • Use registry payment-hold only as PSP-backed custody tracking. The bundled demo provider is not real money movement.
  • Require an admin key for registry payment-release and registry payment-refund.
  • Do not claim escrow, payment success, release, or refund unless the PSP adapter or external evidence confirms it.

Merchant Workflow

  1. Create or identify the merchant profile: python3 scripts/mai.py merchant create --id ID --name NAME --city CITY --contact CONTACT --tags "A,B"
  2. Publish products: python3 scripts/mai.py product add --merchant ID --sku SKU --title TITLE --price N --stock N
  3. Adjust stock after physical changes: python3 scripts/mai.py product stock --sku SKU --merchant ID --adjust N --reason "restock or correction"
  4. Record important buyer questions and seller replies: python3 scripts/mai.py message add --buyer BUYER --merchant ID --sku SKU --sender merchant --text "..."
  5. Quote and confirm orders only when inventory and terms are clear: python3 scripts/mai.py order quote ... python3 scripts/mai.py order update --order ORD-0001 --status confirmed --actor merchant
Show full SKILL.md (284 more words)Show less

Buyer Workflow

  1. Discover merchants: python3 scripts/mai.py search merchants --query "tea hangzhou" --format json
  2. Search products: python3 scripts/mai.py search products --query "longjing gift" --max-price 100 --format json
  3. Compare shortlisted SKUs: python3 scripts/mai.py compare --skus sku-a,sku-b --format json
  4. Inspect reviews: python3 scripts/mai.py review list --merchant ID --format json
  5. Record discussion before ordering: python3 scripts/mai.py message add --buyer BUYER --merchant ID --sku SKU --text "..."
  6. Create a draft order after buyer confirmation: python3 scripts/mai.py order create --buyer BUYER --merchant ID --sku SKU --quantity N

Transaction Model

Mai tracks transactions without custody:

draft -> quoted -> confirmed -> payment_pending -> paid_external -> fulfilled -> completed

Disputes can move through:

disputed -> resolved/refunded/cancelled

Stock is reserved when an order becomes confirmed. Local-only payments are recorded as payment_url and payment_reference. Registry payments are PSP custody records; the agent must say the bundled demo provider is not real escrow or money movement.

Read references/transaction-model.md when handling non-happy-path order, refund, dispute, or payment questions. Read references/data-schema.md when integrating Mai with a future hosted marketplace or sync service.

Output Expectations

For product discovery, answer with:

  • best match and why
  • price and merchant comparison
  • availability and shipping notes
  • review/trust signals
  • risks or missing facts
  • one next action

For merchant operations, answer with:

  • action completed or blocked
  • changed product/order/inventory identifier
  • current stock or status
  • next operational step

For order updates, answer with:

  • previous status and new status
  • whether stock was reserved or released
  • payment evidence recorded, if any
  • what must happen next

Verification

Before claiming the package is ready:

  • python3 scripts/mai.py --help
  • python3 scripts/mai_registry.py --help
  • bash scripts/install.sh --both --dry-run
  • python3 -m unittest discover -s tests
  • bash scripts/verify.sh
  • Confirm SKILL.md has no scaffold placeholders.
  • Confirm README.md, package.json, clawhub.json, plugins/mai-plugin/openclaw.plugin.json, and agents/openai.yaml use the mai and mai-plugin names consistently.

© LeoYeAI, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 15 other files (scripts, references) in skills/mai of LeoYeAI/openclaw-master-skills.

  • SKILL.md
  • .clawhub/origin.json
  • README.md
  • _meta.json
  • agents/openai.yaml
  • clawhub.json
  • docker-compose.yml
  • package.json
  • references/data-schema.md
  • references/public-deployment.md
  • references/registry-api.md
  • references/transaction-model.md
  • registry.example.env
  • scripts/install.sh
  • scripts/mai.py
  • scripts/mai_registry.py

Open the folder on GitHubat commit e5199b5

Compare with similar skills

Mai next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Mai compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Mai this skillLeoYeAI/openclaw-master-skills2.2k—~2.2kAutomated safety check: PassMIT
Fantasy Framework Development Guideqq362946/Fantasy1.4k—~5.8kAutomated safety check: PassCustom licence
Validate GsdkPlayFab/gsdk170—~645Automated safety check: PassApache-2.0
Portal Connectgosuda/portal-tunnel272—~2.9kAutomated safety check: PassMIT
Kenshi Manual Freeplay Sessionnhoral/KenshiCoop283—~835Automated safety check: PassAGPL-3.0
Dota2 Game LogicXavierCHN/x-template217—~2.7kAutomated safety check: PassMIT

Similar skills

  • Development and review guide for the Fantasy C# distributed game server framework: ECS, FTask, routing, service discovery, config and databases.

    1.4k GitHub stars~5.8k tokensUpdated yesterday
    Game DevelopmentAuto-check passed
  • Validate Gsdk

    PlayFab/gsdk

    Validates PlayFab Game Server SDK (GSDK) integrations in game server projects.

    170 GitHub stars~645 tokensUpdated yesterday
    Game DevelopmentAuto-check passed
  • Portal Connect

    gosuda/portal-tunnel

    Reach, inspect, or consume a service that someone published through a Portal relay.

    272 GitHub stars~2.9k tokensUpdated today
    Game DevelopmentAuto-check passed
  • Launches two KenshiCoop clients side by side on an ultrawide monitor, booted to the title screen, so one person can play host and join and connect manually through F2.

    283 GitHub stars~835 tokensUpdated 2 mo ago
    Game DevelopmentAuto-check passed
  • Dota2 Game Logic

    XavierCHN/x-template

    DOTA2 自定义游戏服务端逻辑开发指南。触发词:游戏逻辑、服务端、server、game mode、游戏模式、GameRules、modifier、timer、lua、TSTL。Use when user asks to create or modify DOTA2 custom game server-side logic, game mode configuration…

    217 GitHub stars~2.7k tokensUpdated 4 mo ago
    Game DevelopmentAuto-check passed
  • Game Developer

    Jeffallan/claude-skills

    Covers game programming in Unity and Unreal Engine: ECS design, physics, multiplayer networking, shaders and profiling toward a 60 FPS target.

    12k GitHub stars~1.5k tokensUpdated 6 days ago
    Game DevelopmentAuto-check passed

More from LeoYeAI/openclaw-master-skills

All 1,235 skills in this repo
  • DevOps Pipeline Management

    LeoYeAI/openclaw-master-skills

    Manages pipelines on a DevOps quality and efficiency platform through its OpenAPI: list workspaces and templates, create, update, run and cancel pipelines, and read run records.

    2.2k GitHub stars~4.2k tokensUpdated 2 mo ago
    Auto-check: notes
  • Feishu Document Collaboration

    LeoYeAI/openclaw-master-skills

    Patches OpenClaw's Feishu extension so an edited document triggers an isolated agent session that reads the doc and replies inline, turning it into a live chat space.

    2.2k GitHub stars~2k tokensUpdated 2 mo ago
    Auto-check passed
  • Files Memory System

    LeoYeAI/openclaw-master-skills

    Multi-context memory management system for OpenClaw agents with group-isolated storage, global shared memory, workspace organization, and group-specific skills isolation.

    2.2k GitHub stars~3.8k tokensUpdated 2 mo ago
    Auto-check passed
  • GEO-Claw AI Visibility Agent

    LeoYeAI/openclaw-master-skills

    Runs a brand's AI-search visibility work end to end: diagnosing how AI platforms represent it, repositioning it, producing AI-optimized content and monitoring ongoing mentions.

    2.2k GitHub stars~4.7k tokensUpdated 2 mo ago
    Auto-check passed
  • Google Workspace CLI

    LeoYeAI/openclaw-master-skills

    Installs and authenticates the gws CLI, then automates Gmail, Drive, Sheets, Calendar, Docs, Chat and Tasks with ready-made recipes, persona bundles and security audits.

    2.2k GitHub stars~2.6k tokensUpdated 2 mo ago
    Auto-check: notes
  • HealthFit Health Advisors

    LeoYeAI/openclaw-master-skills

    Runs four advisor roles, a fitness coach, nutritionist, data analyst and TCM practitioner, to build a health profile and track workouts, diet and wellness over time.

    2.2k GitHub stars~4.4k tokensUpdated 2 mo ago
    Auto-check passed

Questions about Mai

What does Mai do?

AI shopping matchmaking agent for OpenClaw and Hermes. An agent skill from LeoYeAI/openclaw-master-skills. Mai is an agent skill from LeoYeAI/openclaw-master-skills. AI shopping matchmaking agent for OpenClaw and Hermes.

When should I use Mai?

Mai fits situations like: merchants want to publish products; answer buyer questions; handle order requests; buyers want to discover merchants and products.

How do I install Mai in Claude Code?

Run `npx skills add LeoYeAI/openclaw-master-skills --skill mai -a claude-code`. Or copy the skill folder (skills/mai in LeoYeAI/openclaw-master-skills) into .claude/skills/mai in your project. Claude Code loads it when a task matches its description.

How do I install Mai in Codex?

Run `npx skills add LeoYeAI/openclaw-master-skills --skill mai -a codex`. Or copy the skill folder (skills/mai in LeoYeAI/openclaw-master-skills) into .agents/skills/mai in your project. Codex loads it when a task matches its description.

Can I use Mai in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add LeoYeAI/openclaw-master-skills --skill mai -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/mai, .gemini/skills/mai, .github/skills/mai and .opencode/skills/mai in your project.

What does Mai need to run?

Going by SKILL.md and its folder, Mai needs Python and a shell for the scripts in its folder and the command-line tools its instructions call (python3 and bash). Our summary lists: Python 3; A Bash shell.

Does Mai access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Mai safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Mai use?

Mai is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Mai use?

About 2.2k tokens (SKILL.md is roughly 9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.2k tokens, read only when the agent opens those files.

What are the alternatives to Mai?

Skills that share tags, products or a category with Mai: Fantasy Framework Development Guide (qq362946/Fantasy, 1.4k stars), Validate Gsdk (PlayFab/gsdk, 170 stars), Portal Connect (gosuda/portal-tunnel, 272 stars) and Kenshi Manual Freeplay Session (nhoral/KenshiCoop, 283 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Mai?

LeoYeAI (a GitHub user) maintains it in LeoYeAI/openclaw-master-skills, which has 2,160 GitHub stars. The repository holds 1,235 skills in this directory. The repository was last updated on July 20, 2026.

Source: LeoYeAI/openclaw-master-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.