Prototyp · Vorschau: alle Server aus der offiziellen Registry, alle 30 Minuten synchronisiert. Mit Google anmelden, um Bewertungen zu schreiben.Prototyp · alle 30 Min. aktualisiert
PopNx MCPMCP-Server für alle, die KI nutzen · in einfachen Worten erklärt

mcd-saver-strategist Skill

Repository ↗

von hujjun★ 1.3341 Skills

Installieren

What it does

麦当劳省钱点餐助手(麦门精算师)|麦当劳优惠券组合优化 Skill:拉取麦当劳菜单与全部可用优惠券,算出最省的点餐组合,巨无霸套餐 ¥47 → ¥21.9(省 53%)。McDonalds MCP(麦当劳 MCP)coupon optimizer · McDonalds China MCP Server · Agent Skill for WorkBuddy · 麦当劳程序员创意开发大赛参赛作品

  • Connects Instruction files the AI reads, with steps that call an outside service
  • Account or key Some steps need a key for MCD_MCP_TOKEN (per the README)
  • Category Automatisierung und Agenten
Für Anbieter: Badge ins README

Wenn du das gebaut hast, füge diesen Code in dein README ein. Das Badge verlinkt auf diese Seite.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/skill/hujjun-mcd-saver-strategist.svg)](https://mcp.popnx.com/en/skills/hujjun-mcd-saver-strategist)

Ähnliche Skills

Gleiche Art Arbeit, sortiert wie die Skill-Liste

Im Vergleich mit ähnlichen
Dieser
mcd-saver-strategist
skillsnacosanatomyleon
Anbieterhujjunvercel-labsalibabawheresryan22leon-ai
Skills11111
GitHub-Sterne1.33439.90833.52827.99617.693
Letzte Codeänderung19. Okt. 202617. Nov. 202618. Nov. 202619. Okt. 202613. Nov. 2026
LizenzMITMITApache-2.0MITMIT

1 Skills (Anweisungssammlungen) von hujjun, die eine KI liest und befolgt · kein MCP-Server

Was einen Skill von MCP unterscheidet

MCP = die Hände

Verbindet die KI mit einem externen Dienst oder Daten, etwa Notion lesen oder eine Rechnung erstellen. Ein Programm oder Server muss laufen.

Skill = das Handbuch

Eine Textdatei, die der KI zeigt, wie eine Aufgabe geht. Sie verbindet sich mit nichts.

Manches überschneidet sich: Einige Skills starten Skripte mit Werkzeugen, einige MCP-Server liefern nur Wissen. Geh von der Aufgabe aus.

Funktioniert mit

Vom Anbieter nicht angegeben · SKILL.md-Skills laufen in Apps mit Agent-Skills-Unterstützung wie Claude Code, Codex und Cursor

Installieren

Is it safe?

  • Who made it

    GitHub account hujjun (person), 7 years old

  • Use and upkeep

    ★ 1.334 stars · code last changed 19. Okt. 2026

  • Any scripts?

    6 scripts that can run on a computer: scripts/bench.py, scripts/demo.py, scripts/mcp_probe.py, scripts/optimizer.py and 2 more

  • Uses the internet?

    Scripts that go online: scripts/mcp_probe.py

  • Changes machine-wide settings?

    No hooks or writes to machine settings found

Checked automatically from the repo files at commit 6e2c462 (read only, nothing was run). Not a safety guarantee: read it and decide for yourself

Zuerst: Welche KI nutzt du?

Wähle deine App, dann zeigt diese Seite nur die Installation für diese App

Option 1Upload to claude.ai (web and app)

  • Files are byte-for-byte the same as on GitHub at commit 6e2c462 · View on GitHub ↗

  • 6 scripts

  • Once uploaded it runs on Claude’s systems, not on your computer. No need to unzip

Look inside before downloading

All 13 files · 113 KB

  • SKILL.md9 KB
  • references/coupon-strategy.md6 KB
  • references/mcp-tools.md6 KB
  • scripts/bench.py6 KB
  • scripts/demo.py7 KB
  • scripts/mcp_probe.py10 KB
  • scripts/optimizer.py47 KB
  • scripts/parity_check.mjs4 KB
  • scripts/sample_data/coupons.json2 KB
  • scripts/sample_data/menu.json2 KB
  • scripts/sample_data/request.json1 KB
  • scripts/selftest.py13 KB
  • LICENSE1 KB
  1. Download mcd-saver-strategist.zip

    113 KB · 13 files · MIT license (license file included in the folder)

    Download mcd-saver-strategist.zip

  2. Open Skills on claude.ai and upload

    +Create skillUpload a skillpick mcd-saver-strategist.zip

    Open claude.ai/customize/skills ↗

  3. No Upload button? Turn on file creation first

    SettingsCapabilitiesCode execution and file creation

    Turn on Code execution and file creation first (newer menus: Create and edit files) · personal plans: Settings → Capabilities · Team/Enterprise: an admin turns it on under Organization settings → Plugins & skills · every plan, including Free

Upload once; it works in claude.ai and Claude Desktop, and in recent Claude Code signed in with a Claude account (not with an API key)

Cowork and cloud sessions use the skills turned on in your claude.ai account, not ~/.claude/skills on your computer (Claude Desktop scheduled tasks run locally and still load it)

Checked against official docs 12. Nov. 2026 · Source: support.claude.com, support.claude.com, code.claude.com

Option 1Claude Code installieren lassen

Kopiere diesen Satz und füge ihn in einen Claude Code-Chat ein

Where to install
Please install the skill mcd-saver-strategist from https://github.com/hujjun/mcd-saver-strategist folder skills/mcd-saver-strategist (commit 6e2c462) for all my projects, at ~/.claude/skills/mcd-saver-strategist. First show me every file and tell me whether it has scripts or changes machine settings, then tell me the full path you will install to and wait for me to agree.
Please install the skill mcd-saver-strategist from https://github.com/hujjun/mcd-saver-strategist folder skills/mcd-saver-strategist (commit 6e2c462) into the project this chat is open in (at .claude/skills/mcd-saver-strategist). First show me every file and tell me whether it has scripts or changes machine settings, then tell me the project name and the full path you will install to and wait for me to agree.

For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing

The AI tells you what it will do first and asks your permission at every step

Claude Code neu starten, dann /mcd-saver-strategist tippen oder eine passende Aufgabe stellen; Claude nutzt den Skill

Checked against official docs 12. Nov. 2026 · Source: code.claude.com

For Terminal users

Ein Skill sind Anweisungen, denen die KI folgt. Lies die Dateien vor der Installation und installiere nur von vertrauenswürdigen Anbietern.

  1. Terminal öffnen

    Mac: Command+Leertaste und Terminal tippen · Windows: Der Befehl unten funktioniert nicht in PowerShell; nutze oben „KI installiert es“

  2. Skill-Ordner nach ~/.claude/skills kopieren

    Lädt das Repo in einen temporären Ordner und kopiert nur Ordner mit einer SKILL.md

    git clone --depth 1 https://github.com/hujjun/mcd-saver-strategist.git /tmp/popnx-skill-hujjun-mcd-saver-strategist-6e2c462 && mkdir -p ~/.claude/skills && cp -R '/tmp/popnx-skill-hujjun-mcd-saver-strategist-6e2c462/skills/mcd-saver-strategist' ~/.claude/skills/mcd-saver-strategist
  3. Claude Code neu starten, dann /mcd-saver-strategist tippen oder eine passende Aufgabe stellen; Claude nutzt den Skill

Selbst installierte Skills funktionieren in der ChatGPT-Desktop-App, in Codex CLI und in der Codex-Erweiterung für die IDE · ChatGPT im Web und auf dem Handy kann selbst installierte Skills nicht nutzen, nur Skills, die mit einem Plugin aus dem Verzeichnis kommen

ChatGPT-Desktop-App

Die ChatGPT-Desktop-App enthält Codex, und Codex liest Skills aus dem Ordner ~/.agents/skills

Option 1ChatGPT installieren lassen

Öffne Codex in der ChatGPT-Desktop-App und füge diesen Satz in den Chat ein

Where to install
Please install the skill mcd-saver-strategist from https://github.com/hujjun/mcd-saver-strategist folder skills/mcd-saver-strategist (commit 6e2c462) for all my projects, at ~/.agents/skills/mcd-saver-strategist. First show me every file and tell me whether it has scripts or changes machine settings, then tell me the full path you will install to and wait for me to agree.
Please install the skill mcd-saver-strategist from https://github.com/hujjun/mcd-saver-strategist folder skills/mcd-saver-strategist (commit 6e2c462) into the project this chat is open in (at .agents/skills/mcd-saver-strategist). First show me every file and tell me whether it has scripts or changes machine settings, then tell me the project name and the full path you will install to and wait for me to agree.

The AI always shows you the path before installing

The AI tells you what it will do first and asks your permission at every step

Option 2Ordner selbst ablegen

Lege den Ordner mcd-saver-strategist unter ~/.agents/skills/mcd-saver-strategist ab

~ ist dein Home-Ordner ($HOME)

Ohne Terminal: ZIP herunterladen, entpacken und den Ordner mcd-saver-strategist nach ~/.agents/skills verschieben

mcd-saver-strategist.zip herunterladen

For Terminal users

Ein Skill sind Anweisungen, denen die KI folgt. Lies die Dateien vor der Installation und installiere nur von vertrauenswürdigen Anbietern.

  1. Terminal öffnen

    Mac: Command+Leertaste und Terminal tippen · Windows: Der Befehl unten funktioniert nicht in PowerShell; nutze oben „KI installiert es“

  2. Skill-Ordner nach ~/.agents/skills kopieren

    Lädt das Repo in einen temporären Ordner und kopiert nur Ordner mit einer SKILL.md

    git clone --depth 1 https://github.com/hujjun/mcd-saver-strategist.git /tmp/popnx-skill-hujjun-mcd-saver-strategist-6e2c462 && mkdir -p ~/.agents/skills && cp -R '/tmp/popnx-skill-hujjun-mcd-saver-strategist-6e2c462/skills/mcd-saver-strategist' ~/.agents/skills/mcd-saver-strategist

Nach der Installation

  • ChatGPT-Desktop-App: Öffne Skills in der Seitenleiste, um zu sehen, ob der Skill da ist
  • So nutzt du ihn: In ChatGPT @ tippen und den Skill wählen · in Codex CLI oder der IDE-Erweiterung /skills ausführen oder $ und den Skill-Namen tippen
  • Codex erkennt neu installierte Skills selbst; wenn einer nicht erscheint, starte Codex neu

Checked against official docs 15. Nov. 2026 · Source: learn.chatgpt.com

ChatGPT im Web und auf dem Handy

Selbst installierte Skills funktionieren hier nicht, nur Skills, die mit einem Plugin aus dem Verzeichnis kommen

Um diesen Skill mit ChatGPT zu nutzen, verwende die ChatGPT-Desktop-App wie oben beschrieben

Checked against official docs 15. Nov. 2026 · Source: learn.chatgpt.com

Option 1Codex installieren lassen

Kopiere diesen Satz und füge ihn in einen Codex-Chat ein · Funktioniert in Codex in der ChatGPT-Desktop-App, in Codex CLI und in der IDE-Erweiterung

Where to install
Please install the skill mcd-saver-strategist from https://github.com/hujjun/mcd-saver-strategist folder skills/mcd-saver-strategist (commit 6e2c462) for all my projects, at ~/.agents/skills/mcd-saver-strategist. First show me every file and tell me whether it has scripts or changes machine settings, then tell me the full path you will install to and wait for me to agree.
Please install the skill mcd-saver-strategist from https://github.com/hujjun/mcd-saver-strategist folder skills/mcd-saver-strategist (commit 6e2c462) into the project this chat is open in (at .agents/skills/mcd-saver-strategist). First show me every file and tell me whether it has scripts or changes machine settings, then tell me the project name and the full path you will install to and wait for me to agree.

For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing

The AI tells you what it will do first and asks your permission at every step

Codex erkennt neu installierte Skills selbst; wenn einer nicht erscheint, starte Codex neu · So nutzt du ihn: In ChatGPT @ tippen und den Skill wählen · in Codex CLI oder der IDE-Erweiterung /skills ausführen oder $ und den Skill-Namen tippen

Checked against official docs 15. Nov. 2026 · Source: learn.chatgpt.com

For Terminal users

Ein Skill sind Anweisungen, denen die KI folgt. Lies die Dateien vor der Installation und installiere nur von vertrauenswürdigen Anbietern.

  1. Terminal öffnen

    Mac: Command+Leertaste und Terminal tippen · Windows: Der Befehl unten funktioniert nicht in PowerShell; nutze oben „KI installiert es“

  2. Skill-Ordner nach ~/.agents/skills kopieren

    Lädt das Repo in einen temporären Ordner und kopiert nur Ordner mit einer SKILL.md

    git clone --depth 1 https://github.com/hujjun/mcd-saver-strategist.git /tmp/popnx-skill-hujjun-mcd-saver-strategist-6e2c462 && mkdir -p ~/.agents/skills && cp -R '/tmp/popnx-skill-hujjun-mcd-saver-strategist-6e2c462/skills/mcd-saver-strategist' ~/.agents/skills/mcd-saver-strategist
  3. Codex neu starten und eine passende Aufgabe stellen; Codex listet den Skill

Option 1Cursor installieren lassen

Kopiere diesen Satz und füge ihn in einen Cursor-Chat ein

Where to install
Please install the skill mcd-saver-strategist from https://github.com/hujjun/mcd-saver-strategist folder skills/mcd-saver-strategist (commit 6e2c462) for all my projects, at ~/.cursor/skills/mcd-saver-strategist. First show me every file and tell me whether it has scripts or changes machine settings, then tell me the full path you will install to and wait for me to agree.
Please install the skill mcd-saver-strategist from https://github.com/hujjun/mcd-saver-strategist folder skills/mcd-saver-strategist (commit 6e2c462) into the project this chat is open in (at .cursor/skills/mcd-saver-strategist). First show me every file and tell me whether it has scripts or changes machine settings, then tell me the project name and the full path you will install to and wait for me to agree.

For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing

The AI tells you what it will do first and asks your permission at every step

Im Agent-Chat von Cursor / tippen und mcd-saver-strategist wählen

Checked against official docs 12. Nov. 2026 · Source: cursor.com

For Terminal users

Ein Skill sind Anweisungen, denen die KI folgt. Lies die Dateien vor der Installation und installiere nur von vertrauenswürdigen Anbietern.

  1. Terminal öffnen

    Mac: Command+Leertaste und Terminal tippen · Windows: Der Befehl unten funktioniert nicht in PowerShell; nutze oben „KI installiert es“

  2. Skill-Ordner nach ~/.cursor/skills kopieren

    Lädt das Repo in einen temporären Ordner und kopiert nur Ordner mit einer SKILL.md

    git clone --depth 1 https://github.com/hujjun/mcd-saver-strategist.git /tmp/popnx-skill-hujjun-mcd-saver-strategist-6e2c462 && mkdir -p ~/.cursor/skills && cp -R '/tmp/popnx-skill-hujjun-mcd-saver-strategist-6e2c462/skills/mcd-saver-strategist' ~/.cursor/skills/mcd-saver-strategist
  3. Im Agent-Chat von Cursor / tippen und mcd-saver-strategist wählen

Option 1Let the AI install it

Für andere Apps, die Skills lesen. Der Satz enthält die Pfade für Claude Code, Codex und Cursor, damit die KI den für deine App wählt · Copy this sentence into the app’s chat

Where to install
Please install the skill mcd-saver-strategist from https://github.com/hujjun/mcd-saver-strategist folder skills/mcd-saver-strategist (commit 6e2c462) for all my projects, at ~/.claude/skills/mcd-saver-strategist (in Codex use ~/.agents/skills/mcd-saver-strategist, in Cursor ~/.cursor/skills/mcd-saver-strategist). First show me every file and tell me whether it has scripts or changes machine settings, then tell me the full path you will install to and wait for me to agree.
Please install the skill mcd-saver-strategist from https://github.com/hujjun/mcd-saver-strategist folder skills/mcd-saver-strategist (commit 6e2c462) into the project this chat is open in (at .claude/skills/mcd-saver-strategist; in Codex use .agents/skills/mcd-saver-strategist, in Cursor .cursor/skills/mcd-saver-strategist). First show me every file and tell me whether it has scripts or changes machine settings, then tell me the project name and the full path you will install to and wait for me to agree.

For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing

The AI tells you what it will do first and asks your permission at every step

Checked against official docs 12. Nov. 2026 · Source: code.claude.com, learn.chatgpt.com, cursor.com

For Terminal users

Andere Apps mit Agent Skills (etwa Gemini CLI oder GitHub Copilot) nutzen andere Ordner. Sieh in deren Anleitung nach und kopiere den Ordner mit der SKILL.md dorthin.

Auf GitHub ansehen ↗

Skill-Ordner am 11. Nov. 2026 mit den offiziellen Anleitungen von Claude Code, Codex und Cursor geprüft

✓ Befehle geprüft am 19. Nov. 2026

Original-SKILL.md ansehen

Der folgende Text stammt aus dem Repo des Anbieters, nicht von PopNx MCP

4.870 Zeichen · Ganze Datei auf GitHub öffnen

---
name: mcd-saver-strategist
description: 麦门省钱精算师。当用户在麦当劳(麦当劳/麦麦/金拱门/麦乐送/到店取餐)点餐,并希望"最省钱、凑满减、把优惠券用到极致、性价比最高、在预算内吃好"时使用;也适用于"帮我看看这些券怎么用最划算""我想吃XX但想便宜点""30块钱能吃到什么"这类诉求。它通过麦当劳 MCP 拉取门店菜单、可用优惠券、营养信息,再用确定性组合优化算法穷举出总价最低的合规点餐方案,并在用户确认后下单。
agent_created: true
---

# 麦门省钱精算师

## 这个 Skill 解决什么问题

麦当劳的优惠体系是「菜单 × 优惠券 × 叠加规则」的组合爆炸问题:同一顿饭,
直选可能花 47 元,「1+1 随心配」+ 单点一杯饮料只要 21.9 元。人类用户懒得算,
大模型**算不准**(组合数多、券规则细、口算容易错)。

本 Skill 的分工非常明确:

- **MCP 负责「取数」**:菜单、价格、优惠券、营养、门店。
- **`scripts/optimizer.py` 负责「算」**:在组合空间里穷举,给出确定性最优解,
  并回答四个衍生问题——多目标选型、券体检、凑单建议、帕累托前沿。
- **你(Agent)负责「说」和「做」**:把结果讲成人话、给出推荐、经用户确认后下单。

> 核心纪律:**永远不要自己口算价格或用券组合**。所有金额必须来自
> `optimizer.py` 的输出或 MCP 的 `calculate-price` 返回值。

## 何时使用

触发场景举例:

- "我想吃巨无霸套餐,怎么点最便宜?"
- "我有这些券,帮我看看怎么用最划算"
- "30 块钱在麦当劳能吃到什么?"
- "减肥中,想吃麦当劳但热量控制在 800 大卡以内,还要便宜"
- "帮我在麦乐送点一份午餐,别超过 40"

## 工作流

### 第 0 步:确认前提(缺一不可)

开始前必须明确这几件事,缺哪个就向用户问哪个:

1. **就餐方式**:外送到家 / 到店取餐 / 堂食外带(决定用 `delivery-*` 还是 `query-nearby-stores`)。
2. **位置或门店**:外送需要配送地址,到店需要哪个门店。
3. **想吃的东西 / 约束**:想吃什么(可模糊)、预算上限、热量上限、几人吃。
4. **点餐目标**(可选):默认「最省钱」;用户在意"吃全一点""低卡""少点几件"时,
   分别用 `objective: balanced / lightest / fewest`。不用反复追问,按语气判断即可。

### 第 1 步:通过 MCP 取数

按顺序调用(注意 600 次/分钟的限流):

1. `now-time-info` —— 拿当前时间,判断早餐/正餐时段与活动。
2. **门店**
   - 到店:`query-nearby-stores` 定位门店。
   - 外送:`delivery-query-addresses` 选地址 → `delivery-query-stores` 查可配送门店。
   - 团餐:额外 `query-meal-assistance`。
3. `query-meals` —— 拉当前门店可售菜单(分类、编码、价格、标签)。
4. `query-meal-detail` —— 对候选套餐拉详情,确认可选替换项。
5. **优惠券(四路都要查,缺一会漏钱)**
   - `available-coupons` —— 麦麦省当前可领券。
   - `auto-bind-coupons` —— 一键领取麦麦省全部可用券(**必须调用**,否则券池不全)。
   - `query-my-coupons` —— 我账户下已有的券。
   - `query-store-coupons` —— 当前门店专属券。
6. `list-nutrition-foods` —— 当用户有热量/营养约束时拉取。

### 第 2 步:归一化数据并调用优化器

把 MCP 结果整理成 `optimizer.py` 的输入契约(见
[`references/mcp-tools.md`](references/mcp-tools.md) 的「字段映射表」),写到临时目录:

```
tmp/menu.json     # {store_code, currency, items:[{code,name,category,price,calories,tags}]}
tmp/coupons.json  # {coupons:[...]}  见 references/coupon-strategy.md 的券类型定义
tmp/request.json  # {wants, budget, max_calories, max_items, allow_extras,
                  #  dining_mode:"pickup"|"delivery", delivery_fee(外送时必填),
                  #  objective:"cheapest"|"balanced"|"lightest"|"fewest",
                  #  party_size: 人数(默认 1)}
```

券的场景字段:能判断「仅到店 / 仅外送可用」的券,标注 `"channel":"pickup"` 或 `"delivery"`,
不确定就留空(默认 `any`)。外送场景优化器会自动剔除不可用券,并把配送费计入总价。

然后运行:

```bash
python scripts/optimizer.py <临时目录>
```

- 加 `--json` 可同时输出结构化 JSON,便于你读取字段。
- 加 `--audit` 额外输出券体检(每张券的名义面额 / 实际节省 / 机会成本)。
- 想看内置样例:`python scripts/optimizer.py sample_data`
- 一键看 7 个真实场景:`python scripts/demo.py`
- 改完逻辑务必跑 `python scripts/selftest.py`(46 项断言应全绿)。

**优化器返回里值得讲给用户的三块**(都在 JSON 里):

- `objective_reason` —— 为什么选这个方案(多目标时必讲)。
- `gap` —— 凑单建议:差几元到下一档、补位商品、净变化。
  `net_change < 0` 意味着"加购反而更省",`verdict=costly` 意味着"别为凑门槛多花钱",都要如实说。
- `pareto` —— 价格 × 热量的不可支配解集。用户纠结"便宜还是低卡"时,把这条边界摊给他看。

### 第 2.5 步:券体检(券多时强烈建议)

用户手里券多、或纠结用哪张时,跑 `audit_coupons()`(CLI: `--audit`),它会回答:

- **名义面额** vs **实际节省** —— 两者的差额体现为兑现率(实际省 / 名义面额)。
- **机会成本** —— 只用这张券会比全局最优多花多少。最需要留意的情况不是"券没用",
  而是"小券挤掉大组合":每张券单看都在省钱,用了它反而吃不到 1+1 随心配。
- 判定分级:`worth`(值得用)> `marginal`(聊胜于无)> `suboptimal`(不是最优)
  > `trap`(机会成本偏高)> `conditional`(需先加购)> `useless` / `invalid`。

把 `worth` 和 `trap` 讲清楚就够了,不要把 8 张券全部念一遍。
> 表述纪律:只陈述**券面数据与算法计算结果**,使用中性词("名义面额与实际优惠的差额"
> "机会成本较高"),不对麦当劳的券或产品做主观评价。

### 第 3 步:把结果讲给用户

- 默认展示 **Top 3** 方案,用「到手价」而不是「原价」开头。
- 每个方案说明:**省了多少钱 / 折算几折 / 用了哪张券 / 关键约束(预算、热量)是否满足**。
- 多人拼单时报**总价和人均**,并说明"优惠只计一次(保守),到店实际可能更便宜"。
- 如果最优方案为了用券而**加购**了东西(`notes` 里会提示),要显式告诉用户:
  "为了用满 35 减 7,多加了 X,但总价反而更低" —— 让用户自己判断值不值。
- 用中文、口语化,不要罗列 JSON。金额保留两位小数。

### 第 4 步:下单(务必先确认)

用户选定方案后:

1. 用 `query-meal-detail` + `calculate-price` 做**下单前最终核价**:
   把方案里的 `code` 列表传给 `calculate-price`,确认 MCP 侧算出的价格与
   `optimizer.py` 结果一致(差异通常来自门店实时变价或缺货)。
2. **把最终价格、门店、菜品清单复述给用户,等待明确确认。**
3. 确认后用 `create-order` 下单,把支付链接交给用户;或按用户要求 `cancel-order`。

> ⚠️ 下单 / 取消是**不可逆的对外动作**,未经用户明确同意绝不执行。

## 硬性约束

- 价格、优惠、券的可用性一律以 **MCP 实时返回**为准;本地数据只是计算用的快照。
- 绝不编造不存在的优惠券、菜品或价格。MCP 没有返回的券,就不能算进方案。
- 若 `optimizer.py` 无解(预算/热量过严),如实告知并给出「放宽哪一项」的建议,
  不要为了凑出答案而突破用户约束。
- 不提供医疗、营养或健康诊断建议;营养数据仅供参考。

## 资源索引

- [`scripts/optimizer.py`](scripts/optimizer.py) —— 确定性优惠组合优化器 v2(多目标 / 券体检 / 凑单 / 帕累托 / 拼单,纯标准库)。
- [`scripts/selftest.py`](scripts/selftest.py) —— 46 项自测,改动逻辑后必跑。
- [`scripts/demo.py`](scripts/demo.py) —— 7 个真实场景一键演示(离线可跑)。
- [`scripts/bench.py`](scripts/bench.py) —— 性能基准:菜品 10~160 款规模下的耗时。
- [`scripts/mcp_probe.py`](scripts/mcp_probe.py) —— MCP 连通自检:握手 / 工具清单 / 试调用。
- [`scripts/parity_check.mjs`](scripts/parity_check.mjs) —— 前后端对拍(需 Node)。
- [`scripts/sample_data/`](scripts/sample_data/) —— 可离线跑通的示例菜单/券/请求。
- [`references/mcp-tools.md`](references/mcp-tools.md) —— 用到的 MCP Tool 清单与字段映射表。
- [`references/coupon-strategy.md`](references/coupon-strategy.md) —— 5 类优惠券建模、叠加与互斥规则、券体检与省钱策略。

Diskussion

Fragen, Tipps teilen oder melden, dass etwas nicht geht. Sortiert nach „hilfreich“.

Noch keine Beiträge. Stell die erste Frage oder teile einen Tipp.

Beiträge hier stammen von Nutzern, nicht vom PopNx-Team.

Anmelden, um zu posten

Von GitHub

GitHub-Sterne
1.334
Anbieter
hujjun
Lizenz
MIT
Letzte Codeänderung
19. Okt. 2026
SKILL.md-Dateien im Repo (mit Übersetzungen und Vorlagen)
1
Themen
agent-skill, ai-agent, coupon-optimizer, coupons, deterministic-optimization, fast-food, mcd, mcdonalds, mcdonalds-mcp, mcp, mcp-server, money-saving