프로토타입 · 미리 보기: 공식 레지스트리의 모든 서버를 담고 있으며 30분마다 동기화해요. Google로 로그인하면 리뷰를 쓸 수 있어요.프로토타입 · 30분마다 업데이트
PopNx MCPAI를 쓰는 사람을 위한 MCP 서버 · 쉬운 말로 설명해요

mcd-saver-strategist Skill

저장소 ↗

제작자: hujjun★ 1,334skill 1개

설치

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 자동화와 에이전트
제작자용: README에 배지 달기

제작자라면 이 코드를 README에 붙여 넣으세요. 배지는 이 페이지로 연결됩니다.

[![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)

비슷한 Skill

같은 종류의 작업, Skill 목록과 같은 순서

비슷한 항목과 비교
이 항목
mcd-saver-strategist
skillsnacosanatomyleon
제작자hujjunvercel-labsalibabawheresryan22leon-ai
Skill 수11111
GitHub 별1,33439,90833,52827,99617,691
마지막 코드 변경2026년 10월 19일2026년 11월 17일2026년 11월 18일2026년 10월 19일2026년 11월 13일
라이선스MITMITApache-2.0MITMIT

hujjun의 Skill(지시 묶음) 1개, AI가 읽고 그대로 일해요 · MCP server가 아니에요

Skill과 MCP의 차이

MCP = 손

AI를 외부 서비스나 데이터에 연결합니다(예: Notion 읽기, 청구서 만들기). 프로그램이나 서버가 실행 중이어야 합니다.

Skill = 안내서

작업 방법을 AI에게 가르치는 텍스트 파일. 어떤 서비스에도 연결되지 않습니다.

겹치는 경우도 있습니다. 도구를 부르는 스크립트가 있는 Skill도, 지식만 보내는 MCP도 있습니다. 하려는 작업을 기준으로 고르세요.

쓸 수 있는 앱

제작자가 밝히지 않음 · SKILL.md 형식 Skill은 Claude Code, Codex, Cursor 같은 Agent Skills 지원 앱에서 써요

설치

Is it safe?

  • Who made it

    GitHub account hujjun (person), 7 years old

  • Use and upkeep

    ★ 1,334 stars · code last changed 2026년 10월 19일

  • 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

먼저: 어떤 AI를 쓰시나요

쓰는 앱을 고르면 그 앱의 설치 방법만 보여 드립니다

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 2026년 11월 12일 · Source: support.claude.com, support.claude.com, code.claude.com

Option 1Claude Code에게 설치 맡기기

이 문장을 복사해 Claude Code 채팅에 붙여 넣으세요

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를 다시 열고 /mcd-saver-strategist를 입력하거나 관련 작업을 요청하면 Claude가 알아서 써요

Checked against official docs 2026년 11월 12일 · Source: code.claude.com

For Terminal users

Skill은 AI가 따르는 지시예요. 설치 전에 파일을 읽고, 믿을 수 있는 제작자 것만 설치하세요.

  1. 터미널 열기

    Mac: Command+스페이스 후 Terminal 입력 · Windows: 아래 명령은 PowerShell에서 안 돼요. 위의 “AI에게 설치 맡기기”를 쓰세요

  2. skill 폴더를 ~/.claude/skills에 복사

    repo를 임시 폴더에 내려받고 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를 다시 열고 /mcd-saver-strategist를 입력하거나 관련 작업을 요청하면 Claude가 알아서 써요

직접 설치한 Skill은 ChatGPT 데스크톱 앱, Codex CLI, IDE의 Codex 확장 프로그램에서 쓸 수 있습니다 · 웹과 모바일의 ChatGPT에서는 직접 설치한 Skill을 쓸 수 없고 디렉터리의 플러그인에 들어 있는 Skill만 쓸 수 있습니다

ChatGPT 데스크톱 앱

ChatGPT 데스크톱 앱에는 Codex가 들어 있고, Codex는 ~/.agents/skills 폴더에서 Skill을 읽습니다

Option 1ChatGPT에게 설치 맡기기

ChatGPT 데스크톱 앱에서 Codex를 열고 이 문장을 채팅에 붙여 넣으세요

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 2폴더를 직접 넣기

mcd-saver-strategist 폴더를 ~/.agents/skills/mcd-saver-strategist에 넣으세요

~는 홈 폴더($HOME)입니다

터미널 없이: ZIP을 내려받아 압축을 풀고 mcd-saver-strategist 폴더를 ~/.agents/skills로 옮기세요

mcd-saver-strategist.zip 내려받기

For Terminal users

Skill은 AI가 따르는 지시예요. 설치 전에 파일을 읽고, 믿을 수 있는 제작자 것만 설치하세요.

  1. 터미널 열기

    Mac: Command+스페이스 후 Terminal 입력 · Windows: 아래 명령은 PowerShell에서 안 돼요. 위의 “AI에게 설치 맡기기”를 쓰세요

  2. skill 폴더를 ~/.agents/skills에 복사

    repo를 임시 폴더에 내려받고 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

설치한 뒤

  • ChatGPT 데스크톱 앱: 사이드바에서 Skills를 열어 Skill이 보이는지 확인하세요
  • 쓰는 법: ChatGPT에서는 @를 입력하고 Skill을 고르세요 · Codex CLI나 IDE 확장 프로그램에서는 /skills를 실행하거나 $ 뒤에 Skill 이름을 입력하세요
  • Codex는 새로 설치한 Skill을 스스로 찾습니다. 보이지 않으면 Codex를 다시 시작하세요

Checked against official docs 2026년 11월 15일 · Source: learn.chatgpt.com

웹과 모바일의 ChatGPT

직접 설치한 Skill은 쓸 수 없고, 디렉터리의 플러그인에 들어 있는 Skill만 쓸 수 있습니다

이 Skill을 ChatGPT에서 쓰려면 위 방법대로 ChatGPT 데스크톱 앱을 쓰세요

Checked against official docs 2026년 11월 15일 · Source: learn.chatgpt.com

Option 1Codex에게 설치 맡기기

이 문장을 복사해 Codex 채팅에 붙여 넣으세요 · ChatGPT 데스크톱 앱 안의 Codex, Codex CLI, IDE 확장 프로그램에서 모두 쓸 수 있습니다

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는 새로 설치한 Skill을 스스로 찾습니다. 보이지 않으면 Codex를 다시 시작하세요 · 쓰는 법: ChatGPT에서는 @를 입력하고 Skill을 고르세요 · Codex CLI나 IDE 확장 프로그램에서는 /skills를 실행하거나 $ 뒤에 Skill 이름을 입력하세요

Checked against official docs 2026년 11월 15일 · Source: learn.chatgpt.com

For Terminal users

Skill은 AI가 따르는 지시예요. 설치 전에 파일을 읽고, 믿을 수 있는 제작자 것만 설치하세요.

  1. 터미널 열기

    Mac: Command+스페이스 후 Terminal 입력 · Windows: 아래 명령은 PowerShell에서 안 돼요. 위의 “AI에게 설치 맡기기”를 쓰세요

  2. skill 폴더를 ~/.agents/skills에 복사

    repo를 임시 폴더에 내려받고 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를 다시 열고 관련 작업을 요청하면 Codex가 skill을 목록에 보여 줘요

Option 1Cursor에게 설치 맡기기

이 문장을 복사해 Cursor 채팅에 붙여 넣으세요

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

Cursor Agent 채팅에서 /를 입력하고 mcd-saver-strategist 선택

Checked against official docs 2026년 11월 12일 · Source: cursor.com

For Terminal users

Skill은 AI가 따르는 지시예요. 설치 전에 파일을 읽고, 믿을 수 있는 제작자 것만 설치하세요.

  1. 터미널 열기

    Mac: Command+스페이스 후 Terminal 입력 · Windows: 아래 명령은 PowerShell에서 안 돼요. 위의 “AI에게 설치 맡기기”를 쓰세요

  2. skill 폴더를 ~/.cursor/skills에 복사

    repo를 임시 폴더에 내려받고 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. Cursor Agent 채팅에서 /를 입력하고 mcd-saver-strategist 선택

Option 1Let the AI install it

Skill을 읽을 수 있는 다른 앱용입니다. 이 문장에는 Claude Code, Codex, Cursor 경로가 들어 있어 AI가 쓰는 앱에 맞게 고릅니다 · 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 2026년 11월 12일 · Source: code.claude.com, learn.chatgpt.com, cursor.com

For Terminal users

Gemini CLI, GitHub Copilot 같은 다른 Agent Skills 지원 앱은 폴더가 달라요. 그 앱 안내를 보고 SKILL.md가 있는 폴더를 복사하세요.

GitHub에서 보기 ↗

2026년 11월 11일에 Claude Code, Codex, Cursor 공식 안내로 skill 폴더 확인

✓ 명령 확인 2026년 11월 19일

원본 SKILL.md 보기

아래 글은 제작자 repo에서 온 것이며 PopNx MCP의 지시가 아니에요

4,870자 · GitHub에서 전체 파일 열기

---
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 类优惠券建模、叠加与互斥规则、券体检与省钱策略。

토론

질문하고, 팁을 나누고, 안 되는 점을 알려 주세요. "도움이 됨"이 많은 순서예요.

아직 글이 없어요. 처음으로 질문하거나 공유해 보세요.

이곳의 글은 사용자가 쓴 것으로, PopNx 팀의 글이 아니에요.

로그인하고 글쓰기

GitHub 정보

GitHub 스타
1,334
제작자
hujjun
라이선스
MIT
최근 코드 수정
2026년 10월 19일
repo 안 SKILL.md(번역본과 템플릿 포함)
1
토픽
agent-skill, ai-agent, coupon-optimizer, coupons, deterministic-optimization, fast-food, mcd, mcdonalds, mcdonalds-mcp, mcp, mcp-server, money-saving