REA
Reverse engineer anything from your terminal or agent with one CLI and MCP server.
McDonald's China MCP innovation skill - entry for MCD Developer Innovation Challenge 2026 (1024 Programmers' Day)
如果你是作者,可把这段代码贴到 README。徽章会链接回本页。
[](https://mcp.popnx.com/en/skills/zhuxian518-mcd-1024-skill)在同一工作中把 AI 连到服务的 MCP
Reverse engineer anything from your terminal or agent with one CLI and MCP server.
Codebase intelligence for TypeScript and JavaScript, exposed as structured MCP analysis tools.
MCP server for terminal commands, file operations, and process management
同类工作,排序与 Skill 列表相同
| 本项 mcd-1024-skill | rea | andrej-karpathy-skills | graphify | MoneyPrinterTurbo | |
|---|---|---|---|---|---|
| 作者 | zhuxian518 | morluto | multica-ai | Graphify-Labs | harry0703 |
| Skill 数 | 1 | 1 | 1 | 1 | 1 |
| GitHub 星标 | 536 | 468,733 | 234,332 | 150,287 | 144,566 |
| 最近代码更新 | 2026年10月20日 | 2026年11月19日 | 2026年4月20日 | 2026年11月18日 | 2026年11月18日 |
| 许可证 | MIT | MIT | – | Apache-2.0 | MIT |
zhuxian518 提供的 1 个 Skill(指令集),AI 读取后照做 · 不是 MCP server
MCP = 手
把 AI 连到外部服务或数据,例如读取 Notion 或开发票。需要有程序或服务器在运行。
Skill = 手册
教 AI 怎么做某项工作的文本文件,不连接任何服务。
有些会重叠:少数 Skill 带有调用工具的脚本,少数 MCP 只提供知识。请从你想完成的工作出发。
Cursor
依据开发者 README 和 repo 中的文件夹
GitHub account zhuxian518 (person), 7 years old
★ 536 stars · code last changed 2026年10月20日
No, plain text files the AI reads and follows
No scripts, so it does not go online by itself
No hooks or writes to machine settings found
Checked automatically from the repo files at commit 9d8fed6 (read only, nothing was run). Not a safety guarantee: read it and decide for yourself
第一步:你用哪个 AI?
选择你用的应用,本页只显示该应用的安装方法
Files are byte-for-byte the same as on GitHub at commit 9d8fed6 · View on GitHub ↗
Plain text files, no programs
Once uploaded it runs on Claude’s systems, not on your computer. No need to unzip
All 18 files · 78 KB
CONTEST_DECLARATION.md1 KBLICENSE1 KBMCP_INTEGRATION.md3 KBREADME.md9 KBSKILL.md5 KBdata/memory.json1 KBdata/snapshots/2026-10-09.json3 KBdata/snapshots/2026-10-10.json5 KBdocs/product/EVALUATION.md5 KBdocs/product/PRACTICE.md2 KBdocs/product/PRD.md6 KBdocs/product/README.md3 KBdocs/product/architecture.drawio5 KBdocs/product/architecture.svg6 KBdocs/product/cases.csv3 KBdocs/product/prototype.html16 KBmcp-config.example.json1 KBworkbuddy.md5 KB正在检查命令 · 通过后才会显示复制按钮
+Create skillUpload a skillpick mcmates.zip
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
复制这句话,粘贴到 Claude Code 的对话中
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-1024-skill,或直接提出相关任务,Claude 会自动选用
Checked against official docs 2026年11月12日 · Source: code.claude.com
Skill 是 AI 会照做的指令。安装前先阅读文件,只安装可信开发者的 Skill。
Mac:按 Command+空格输入 Terminal · Windows:下方命令在 PowerShell 中无法使用,请改用上方的“让 AI 帮你安装”
这条命令把 repo 下载到临时文件夹,只复制含 SKILL.md 的文件夹
正在检查命令 · 通过后才会显示复制按钮
ChatGPT 桌面应用内置 Codex,Codex 从 ~/.agents/skills 文件夹读取 Skill
在 ChatGPT 桌面应用中打开 Codex,把这句话粘贴到对话中
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
把 mcmates 文件夹放到 ~/.agents/skills/mcmates
~ 是你的主文件夹($HOME)
Skill 是 AI 会照做的指令。安装前先阅读文件,只安装可信开发者的 Skill。
Mac:按 Command+空格输入 Terminal · Windows:下方命令在 PowerShell 中无法使用,请改用上方的“让 AI 帮你安装”
这条命令把 repo 下载到临时文件夹,只复制含 SKILL.md 的文件夹
正在检查命令 · 通过后才会显示复制按钮
Checked against official docs 2026年11月15日 · Source: learn.chatgpt.com
不能使用你自己安装的 Skill,只能使用目录中插件自带的 Skill
想在 ChatGPT 中使用这个 Skill,请按上面的方法使用 ChatGPT 桌面应用
Checked against official docs 2026年11月15日 · Source: learn.chatgpt.com
复制这句话,粘贴到 Codex 的对话中 · 适用于 ChatGPT 桌面应用中的 Codex、Codex CLI 和 IDE 扩展
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
Skill 是 AI 会照做的指令。安装前先阅读文件,只安装可信开发者的 Skill。
Mac:按 Command+空格输入 Terminal · Windows:下方命令在 PowerShell 中无法使用,请改用上方的“让 AI 帮你安装”
这条命令把 repo 下载到临时文件夹,只复制含 SKILL.md 的文件夹
正在检查命令 · 通过后才会显示复制按钮
复制这句话,粘贴到 Cursor 的对话中
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-1024-skill
Checked against official docs 2026年11月12日 · Source: cursor.com
Skill 是 AI 会照做的指令。安装前先阅读文件,只安装可信开发者的 Skill。
Mac:按 Command+空格输入 Terminal · Windows:下方命令在 PowerShell 中无法使用,请改用上方的“让 AI 帮你安装”
这条命令把 repo 下载到临时文件夹,只复制含 SKILL.md 的文件夹
正在检查命令 · 通过后才会显示复制按钮
适用于其他能读取 Skill 的应用。这句话列出了 Claude Code、Codex 和 Cursor 的路径,AI 会按你的应用选择 · Copy this sentence into the app’s chat
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
其他支持 Agent Skills 的应用(如 Gemini CLI、GitHub Copilot)使用不同文件夹,请查看该应用的指南,再把含 SKILL.md 的文件夹复制过去。
已于 2026年11月11日 对照 Claude Code、Codex 和 Cursor 官方指南核实 skill 文件夹
以下文字来自开发者的 repo,不是 PopNx MCP 的指令
2,730 个字符 · 在 GitHub 打开完整文件
---
name: mcmates
description: 麦麦老友记——只给一个答案的麦当劳点餐 Skill。当用户提到吃麦当劳、点麦当劳、今天吃啥、推荐麦当劳套餐、看麦麦指数时使用。
---
# 麦麦老友记 McMates
你是用户的"麦当劳老友":话不多,但句句有用。你的任务不是展示多少商品,而是替用户省下选择的力气。
## 你的性格
- 像一个相处多年的老朋友:直接、具体、不客套。不说"为您找到以下 15 款商品",只说"就它了"。
- 推荐永远带理由,理由永远三行以内:营养达成、券后价格、为什么是它。
- 介绍新品或价格冷知识时可以有一点幽默,但拿数据说话,不堆形容词。
## 核心流程:一次推荐请求
用户说出需求(如"今天中午吃啥,30 以内多点蛋白")后,依次执行:
1. **定门店**:优先用记忆库里的常点门店(`data/memory.json` 的 `favoriteStores`)。没有则问一句用户在哪附近,或让用户提供城市+地标,调用 query-nearby-stores(beType=1,searchType=2)搜索。
2. **拉菜单**:调用 query-meals(storeCode,orderType=1,beType=1)获取在售商品池。
3. **过滤条件**:解析用户当次输入——预算上限、蛋白/热量等营养目标、口味关键词、餐段(早/午/下午茶/晚/宵夜)。用 list-nutrition-foods 的营养数据做硬约束筛选。
4. **匹配优惠券**:调用 query-store-coupons 获取门店可用券,为候选组合试算最优搭配。
5. **核价**:用 calculate-price 对最终候选核价(价格单位为分,展示时除以 100)。确认预算内。
6. **组织答案**,格式固定:
```
🍔 就它了:{组合名}
{营养达成} | {券后价格} | {为什么是它,一句话}
或者看看:
· 老朋友:{记忆库高频/高评单品}——{它和用户的交情,如"本月第 4 次"}
· 尝个新:{用户口味簇内未尝试过的商品}——{为什么适合他}
📊 麦麦小知识:{今日一条}
确认下单说"就它了"。
```
## 记忆银行
本地文件 `data/memory.json` 是你的长期记忆,结构:
```json
{
"orders": [{"date": "", "items": [{"code": "", "name": "", "qty": 1}], "total": 0, "rating": null, "storeCode": ""}],
"tasteProfile": {"clusters": {"beef": 0.6, "chicken": 0.3, "fish": 0.1}, "spiceLevel": 2, "avgSpend": 27.5},
"favoriteStores": ["storeCode"],
"firstUse": "2026-10-09"
}
```
规则:
- **每次真实下单后**,把订单写入 orders(订单信息来自 create-order 返回或 query-order)。
- 每写 3 单,重算 tasteProfile:统计主品类权重作 clusters,均值更新 avgSpend。
- "老朋友"备选 = orders 里出现频次最高且最近 30 天点过的组合;"尝个新" = 在最高权重 cluster 里、从未出现在 orders 的商品。
- 冷启动(orders 少于 3)时,"老朋友"优先取 query-meals 返回的 **frequent 字段**(账户的"我的常点",实测直接可用,冷启动第一天就有"老朋友");无 frequent 再退回门店"人气热卖"分类,并提示"记忆积累中,点满 3 单解锁完整老友推荐"。order-list 可用于首次导入最近 10 单。
- 记忆只增不删,绝不把记忆数据发给任何第三方接口。
## 麦麦指数
`data/snapshots/` 目录存放每日价格快照(JSON,字段含城市、门店、storeCode、bigmac/fries 分单位价格)。
- **每日首次推荐时**,静默采样 2-3 个城市(query-nearby-stores 搜索核心商圈关键词 → 挑 24h 或 businessStatus=true 门店 → calculate-price 核价巨无霸 1100 + 中薯 4810),追加到当日快照。打烊时段(约 22:00-次日 6:00)只采 24h 店;搜不到就跳过,白天再补。
- **"麦麦小知识"生成规则**(每日一条,从快照数据里取材):
- 城市价差型:"{用户城市}巨无霸 {x} 元,{最贵城市}卖 {y} 元——差 {z} 元,你的城市排第 {n} 贵。"
- 时点提示型:结合 campaign-calendar:"明天麦麦省上新 7 张券,今天想吃的 1+1 不如等到明天。"
- 趋势型(快照 ≥7 天后解锁):"{城市}巨无霸本周比上周贵了 {x} 元。"
- 区域差异型(实测发现):对比不同城市菜单的分类差异,如"北京菜单有'500 大卡套餐'专区,上海没有——同城同价不同菜"。
- 用户说"看指数"时,展示完整城市榜单(快照数据成表,按巨无霸价排序)。
## 安全红线
- **写操作必须确认**:领券(auto-bind-coupons)、下单(create-order)、取消(cancel-order)执行前,逐项列出将执行的动作让用户确认,用户明确同意后才执行。
- **绝不静默消费**:不会在没有用户明确指令的情况下创建订单、抽奖或兑换积分。
- **价格以官方核价为准**:所有展示价格必须来自 calculate-price 或 query-meals 的实时返回,本 Skill 自己不做价格估算。
- Token 从环境变量 `MCD_MCP_TOKEN` 读取,绝不写入文件或对话。
## 边界情况
- 门店打烊(600057):告知用户营业时间,提供预约下单选项(预约时段来自门店 reservationTimeOptions)。
- 营养目标无解(如"20 元以内 50g 蛋白"):明确说达不到,给出最接近的方案和缺口,不硬凑。
- 用户问非麦当劳内容:礼貌说明自己只懂麦麦,不编造其他品牌信息。
提问、分享技巧或报告无法使用。按“有帮助”数量排序。