Mcd Pindan logo

Mcd Pindan

Community
Mrezzz0822
mcd-pindan

麦顺路 · 麦乐送拼单墙 Skill。当用户想降低麦乐送配送费、看看附近有没有人一起点麦当劳、寻找同小区/同写字楼拼单伙伴、或询问"能不能找人一起点麦当劳分摊配送费"时使用。基于麦当劳 MCP 的门店、菜单、真实配送费计算与下单能力,结合内置的地理围栏 + 时间窗口 + 顺序无关顺路度算法 + 对称分摊,为两个同门店、2 公里内、30 分钟窗口内的订单撮合拼单、计算配送费折扣、生成拼单卡片与骑手派单建议。

Overview

PublisherMrezzz0822
Repositorymcd-pindan-skill
Skill namemcd-pindan
Stars
33
Forks
0
Bundled files
17
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.

  • 17 bundled files

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

  • Open source

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

Installation

Install the Mcd Pindan 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/Mrezzz0822/mcd-pindan-skill/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/Mrezzz0822/mcd-pindan-skill.git \
  .claude/skills/mcd-pindan
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Mcd Pindan 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 Pindan 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 Pindan 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.

麦顺路(McRoutePin)· 麦乐送拼单墙

这个 Skill 做什么

一个人点麦乐送,9 元配送费常常占客单价的两成以上。而同一门店、同一时段,用户身边往往还有别人也在点。本 Skill 把这层信息亮出来(拼单墙),用顺路度撮合最合适的两个人拼成一趟配送——骑手只跑一趟,双方配送费各省 35%~50%,同时为平台输出合单派单建议。

核心逻辑(详见 src/ 目录):

  1. 拼单墙:同一门店下、时间窗口内正在等待拼单的订单列表(geohash 网格粗筛 + 精确匹配排序)
  2. 三重匹配:同一门店 + 2 公里地理围栏 + 30 分钟时间窗口
  3. 顺序无关顺路度:r = min(两种送餐顺序的总里程) / max(两段直达距离),r 越小越顺路,r > 2.5 拒绝拼单
  4. 对称分摊(Shapley):省下的配送费五五分,双方等额受益,任何一方永不超过单人价
  5. 派单建议:输出"先送谁、再送谁"(就近优先),随订单备注提交给平台侧

触发场景

  • "帮我看看附近有没有人一起点麦当劳,拼个配送费"
  • "配送费太贵了,有人拼麦乐送吗"
  • "我和同事想一起点麦当劳,配送费能便宜吗"
  • "发起一个顺路拼单"
  • "看看这个地址能不能跟我拼单"

工作流程(Agent 执行步骤)

第一步:获取拼单基础信息(调用麦当劳 MCP)

按顺序调用以下工具:

  1. now-time-info — 获取当前时间,用于计算拼单窗口
  2. delivery-query-addresses — 获取发起人可选配送地址;无地址则先用 delivery-create-address 创建
  3. delivery-query-stores — 查询该地址可配送门店,让用户确认门店(拼单锚点,双方必须同一门店)
  4. query-meals / query-meal-detail — 协助发起人完成选品
  5. calculate-price — 计算发起人订单价格,记录返回的配送费作为 base_delivery_fee(拼单折扣的基准)

第二步:获取坐标(用户协助,MCP 无地理编码工具)

麦当劳 MCP 不提供经纬度,Agent 请发起人在手机地图 App 上长按自己的位置复制坐标(格式:纬度,经度,如 39.98390,116.30575)。门店坐标可用地图 App 搜索门店名称获得。将三个坐标与 base_delivery_fee 填入 src/models.py 的 PinWall / PinSession。

第三步:拼单墙与撮合(调用本 Skill 算法)

模式 A · 有伙伴在线:把墙上每个候选订单交给撮合引擎排序:

python
from src.matcher import rank_candidates

ranked = rank_candidates(wall)   # 按顺路程度排序,最顺路的排最前
for order, result in ranked:
    print(order.display_name, "✅" if result.ok else "❌", result.reason or result.tier)

模式 B · 暂无伙伴:生成拼单卡片(文本形式),包含拼单号、门店、剩余时间窗、发起人昵称与脱敏地址(只展示到楼宇/小区名)。用户把卡片转发给同事/邻居,对方在另一段对话中提供自己的地址和坐标后回到模式 A。超过 30 分钟无人加入,告知用户拼单超时,按原价下单。

第四步:分摊与卡片(调用本 Skill 算法)

python
from src.matcher import evaluate
from src.fee import split_fee, render_share_card

result = evaluate(session)      # 三重匹配 + 顺序无关顺路度 + 派单建议
if result.ok:
    split = split_fee(session)  # 对称分摊:双方各省 35%~50%
    print(render_share_card(session, split))
else:
    print(result.reason)        # 用自然语言向用户解释为何不成立

匹配失败时,向用户说明原因(超出 2 公里 / 超过时间窗 / 顺路度不足),并给出建议(如约在中间地点会合取餐)。

第五步:分别下单(调用麦当劳 MCP)

双方确认拼单卡片后,各自调用 create-order 创建自己的订单(同一门店、各自地址),并把派单建议写入订单备注(如"拼单 64ef1a1d651b:先送赵六,再送张三"),供平台侧合单调度参考。创建后用 query-order 向双方同步配送进度。伙伴超时未确认时,用 cancel-order 兜底取消。

⚠️ 本 Skill 当前定位是"撮合 + 分摊测算 + 派单建议":卡片金额为合并行程下的算法测算,实际折扣结算依赖平台侧合单能力落地;下单仍走标准麦乐送流程。这一边界已在 README 与 MCP_INTEGRATION.md 中如实声明。

参数说明

参数默认值说明
radius_km2.0拼单双方的地理围栏半径(公里,直线距离)
window_minutes30拼单有效时间窗口(分钟)
base_delivery_fee来自 calculate-price单人麦乐送配送费,拼单折扣基准

隐私说明

  • 地址只以经纬度参与计算,拼单卡片仅展示楼宇/小区级脱敏名称
  • 不采集、不存储任何用户个人信息;拼单墙候选由用户主动加入(转发卡片 → 主动提供地址),不读取陌生人订单
  • 坐标由用户自愿提供,仅用于本次拼单距离计算,不落盘

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 Pindan AI skill do?

麦顺路 · 麦乐送拼单墙 Skill。当用户想降低麦乐送配送费、看看附近有没有人一起点麦当劳、寻找同小区/同写字楼拼单伙伴、或询问"能不能找人一起点麦当劳分摊配送费"时使用。基于麦当劳 MCP 的门店、菜单、真实配送费计算与下单能力,结合内置的地理围栏 + 时间窗口 + 顺序无关顺路度算法 + 对称分摊,为两个同门店、2 公里内、30 分钟窗口内的订单撮合拼单、计算配送费折扣、生成拼单卡片与骑手派单建议。

Why use Mcd Pindan on TypingMind?

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

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Mrezzz0822/mcd-pindan-skill/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 Pindan?

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

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

Is the Mcd Pindan AI skill free?

Yes. It is published on GitHub by Mrezzz0822 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 👇