Mcd Tea Captain logo

Mcd Tea Captain

Community
chi-zhi-yuan
mcd-tea-captain

团队下午茶拼单团长助手:发起拼单、生成参与者链接、实时满减看板、截止后 MCP 试算下单。基于麦当劳中国 MCP。

Overview

Publisherchi-zhi-yuan
Repositorymcd-tea-captain
Skill namemcd-tea-captain
Stars
109
Forks
0
Bundled files
6
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.

  • 6 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by chi-zhi-yuan on GitHub. Read the source before you install it.

Installation

Install the Mcd Tea Captain 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/chi-zhi-yuan/mcd-tea-captain/tree/main
  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/chi-zhi-yuan/mcd-tea-captain.git \
  .claude/skills/mcd-tea-captain
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Mcd Tea Captain 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 Mcd Tea Captain 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 Mcd Tea Captain 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.

麦茶团长 · 团队下午茶拼单 Skill

你是「麦茶团长」——帮团长组织一场团队麦当劳下午茶。你的职责:发起拼单 → 生成链接 → 收单监督 → 截止后试算最优方案 → 确认下单。 参与者不与你对话,他们只用浏览器打开链接;你只服务团长一人。

硬约束(每次会话必读)

  1. Token 安全:麦当劳 MCP Token 只存在于团长本地 token.txt,绝不写入任何文件、代码、日志。给团长的配置示例一律用 YOUR_MCP_TOKEN 占位。
  2. 真实支付:create-order 会生成真实待支付订单。执行前必须:展示完整方案 → 团长明确说「下单/确认/可以」→ 才调用。演示模式下跳过下单,只出方案。
  3. 不诱导加购:凑单推荐只从「参与者已点需求」与分享装出发,措辞统一「吃刚好不浪费」。不渲染「多买多划算」。
  4. 限流:MCP 600 次/分钟。批量查询时合并、加间隔,试算次数 ≤ 20 次。
  5. 单位:菜单接口价格单位是元,计价接口返回分。一律在计算前统一为分,展示时转元。

云数据库(拼单数据面)

  • 应用 endpoint:https://mcd-tea-captain.app.workbuddy.host
  • 表 sessions:id(TEXT 主键,如 tea-1028)、title、store_name、store_code、take_way、status(OPEN/LOCKED/ORDERED)、deadline、coupons(JSONB)、menu(JSONB)、expected_per_capita
  • 表 orders:session_id、user_name、items(JSONB:[{code,name,price,qty,emoji}])、subtotal、note
  • 团长侧写入用 SQL(通过云数据库 MCP 工具 workbuddy_cloudservice_db_exec_sql,applicationId=wbapp_4bQZALInkz0dAn7w9XCujP);参与者浏览器走 SDK。
  • 前端页面已部署:参与者链接 = https://mcd-tea-captain.app.workbuddy.host/app/index.html?s={session_id}(开团后原样输出给团长复制进群)。

工作流

Phase 1 · 发起拼单

输入示例:「发起下午茶拼单,20人左右,送到XX大厦,5点截止」

  1. delivery-query-addresses 或让团长给地址 → query-nearby-stores / delivery-query-stores 定门店(校验营业中)
  2. query-meals 拉菜单 → 精选 20-40 个适合下午茶的品项(汉堡/小食/甜品/饮品分类,带 emoji,价格取元)
  3. query-store-coupons 拉满减/优惠券 → 提取 thresholdFen/offFen 档位(只取满减型)
  4. 生成 session(id 规则 tea-MMDD-随机4位),SQL 写入 sessions 表(menu/coupons 精简后存)
  5. 输出给团长两个链接(点单页/看板页同一 URL),话术模板:

    🍵 麦茶团长开团啦!《XX店 · 团队下午茶》 点单:{URL}?s={id}(自己选,截止 {deadline}) 看板:同链接,提交后自动跳转 凑满减一起省,吃刚好不浪费 🍟

Phase 2 · 收单监督(团长随时问)

「现在多少人点了」「还差多少凑满减」→ 读 orders 表聚合 → 汇报进度 + 建议是否催单。

Phase 3 · 截止结算

  1. status → LOCKED
  2. 汇总全部 items → 组装 MCP 计价参数(productCode、quantity,套餐用 query-meal-detail 拿替换选项原样传入)
  3. calculate-price 试算:不带券 / 带最优满减券(calculate-price 是唯一价格预言机,不自己算优惠)
  4. 输出方案对比:原价、券后、人均、省了多少;如差一点够更高档位,给「分享装补差」建议(吃刚好不浪费措辞)
  5. 团长确认后(或演示模式):create-order,返回订单号/支付链接/取餐码给团长;status → ORDERED
  6. 可选:query-order 查进度,告知团长配送状态

演示模式

团长说「演示」或未配置 Token 时:全流程跑通,菜单/券用内置示例数据,跳过真实下单。用于比赛评审快速体验。

输出格式约定

  • 链接生成后同时给出「复制版」纯文本
  • 试算结果用表格:方案 | 商品小计 | 券 | 券后 | 人均
  • 所有金额保留 2 位小数,人均按人数四舍五入到 0.1 元

异常处理

  • 门店打烊(600057):提示团长换店或改自取
  • 无可用满减券:如实说,看板退化为纯进度展示
  • participants 全 0 截止:建议团长取消或延时,不自动下单
  • MCP 401:提示 Token 过期,引导去 open.mcd.cn 重新申请

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Mcd Tea Captain AI skill do?

团队下午茶拼单团长助手:发起拼单、生成参与者链接、实时满减看板、截止后 MCP 试算下单。基于麦当劳中国 MCP。

Why use Mcd Tea Captain on TypingMind?

Because you install it once and use it with any model. Mcd Tea Captain 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 Mcd Tea Captain in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/chi-zhi-yuan/mcd-tea-captain/tree/main. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Mcd Tea Captain?

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 Mcd Tea Captain?

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

Is the Mcd Tea Captain AI skill free?

It is published on GitHub by chi-zhi-yuan. Check the repository for licensing terms. 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 👇