AGENT SKILL

chilemai

「吃了麦?」——解决"吃什么"的选择困难,并自动选最近门店下单。当用户表达"吃什么/中午吃啥/晚饭吃啥/夜宵吃啥/随便来点",或明确"想吃麦当劳/点麦当劳/来份套餐/帮我点单",或提出营养与预算诉求(减脂、低卡、控热量、高蛋白、增肌、控钠、控糖、便宜、预算 N 元、性价比)时使用。基于麦当劳 MCP 的真实菜单、营养、门店、优惠券与下单能力,覆盖到店自取、麦乐送外送、得来速车道、企业团餐四种场景。

License 许可
MIT
所属仓库
bg-szy/TOP-SKILLS
最近更新
2026-11-15
Stars
★ 6
Forks
0

01 前言 Front Matter

name
chilemai
description
「吃了麦?」——解决"吃什么"的选择困难,并自动选最近门店下单。当用户表达"吃什么/中午吃啥/晚饭吃啥/夜宵吃啥/随便来点",或明确"想吃麦当劳/点麦当劳/来份套餐/帮我点单",或提出营养与预算诉求(减脂、低卡、控热量、高蛋白、增肌、控钠、控糖、便宜、预算 N 元、性价比)时使用。基于麦当劳 MCP 的真实菜单、营养、门店、优惠券与下单能力,覆盖到店自取、麦乐送外送、得来速车道、企业团餐四种场景。
agent_created
true

02 资源文件 7

03 SKILL.md 正文

吃了麦?

它是干什么的

「吃什么」是每天都要面对一次的选择题。吃了麦把它变成三步:

用户:中午想吃麦当劳,最近在减脂,预算 40。

吃了麦:配好了 —— 板烧鸡腿堡 + 无糖可乐,合计约 391 大卡、38 元。 门店选杭州西湖区岳庙码头餐厅(3.6 km,营业到 22:00),领券后 33 元。要下单吗?

用户:下。

吃了麦:订单已创建,支付链接 👉 … 扫码付完告诉我一声,我帮你核对状态。

何时启用

用户话里出现以下任一信号时启用:

  • 决策类:吃什么、吃啥、中午/晚饭/夜宵吃什么、随便来点、你帮我定
  • 品牌类:想吃麦当劳、点麦当劳、麦乐送、去麦当劳、麦麦
  • 诉求类:减脂、减肥、低卡、控热量、高蛋白、增肌、少油、控钠、控糖、便宜点、预算 N 元、性价比
  • 动作类:帮我点、下单、来一份、点单

不适用:单纯查订单状态、取消订单、查积分或券余额 —— 这些直接调对应 MCP 工具即可,不必走本流程。

前置条件

  • 麦当劳 MCP Server 已接入(配置见 mcp-config.example.json)
  • 到店场景需知道城市 + 位置关键词(如"杭州 西湖");外送场景需已有配送地址或先新建
  • 缺关键信息时先问一句,不要猜城市、不要猜取餐方式

五阶段流程

Phase 1 解析意图  →  goal / 约束 / 场景 beType / 位置
Phase 2 锁定门店  →  storeCode (+beCode)     ← 没有门店就拿不到菜单和价格
Phase 3 拉全数据  →  query-meals + list-nutrition-foods
Phase 4 组方案    →  可信单品组合 → 整餐校验 → 比较优惠 → calculate-price
Phase 5 下单      →  用户确认 → create-order → 支付 → query-order

参数细节见 references/mcp-tools.md,四种场景的完整调用序见 references/order-flow.md, 营养目标的筛选口径见 references/goals.md。

Phase 1 · 解析意图

把用户的话翻译成四个槽位:

槽位 取值 缺失时怎么办
goal high-protein / low-cal / low-fat / low-sodium / low-carb / light / any 默认 any
约束 预算金额、热量上限、蛋白下限等 不强求,可后补
beType 1 到店自取 / 2 麦乐送 / 5 得来速 / 6 团餐 必须问清,它决定整条调用链
位置 城市 + 位置关键词 到店场景必须问;外送读地址簿

用户没提取餐方式时,用一句"到店自取还是送到家?"确认,不要默认。 用户只说“控糖”时,先区分少喝含糖饮料还是限制总碳水;现有营养表没有糖含量, 不能把低碳水当成低糖或血糖效果承诺。

Phase 2 · 锁定门店

  • 到店自取 / 得来速 → query-nearby-stores
    • 用户指定收藏店时用 searchType=1;按当前位置找最近店时用 searchType=2 带 city + keyword
    • beType=1 自取(不传 beCode);beType=5 得来速(记下 beCode)
  • 麦乐送 / 团餐 → delivery-query-addresses 取地址 → delivery-query-stores 取门店与 beCode

默认挑距离最近且在营业的门店(用 businessStatus 与营业时间过滤)。展示时至少给: 门店名、距离、营业时间。 有收藏不代表离当前地点最近。距离最近也不等于最快取到餐;只有实际返回时间依据时才能比较速度。

Phase 3 · 拉全数据

  1. query-meals(需 storeCode / orderType / beType)→ 在售餐品、编码 code、价格
  2. list-nutrition-foods → 餐品营养数据(原始约 160 条,去重后 158 条)

这两份数据的名称并不严格一致(纯牛奶(盒装) vs 纯牛奶(盒装)),而且营养表是 自定义文本格式、不是 JSON。必须用脚本对齐,不要凭肉眼匹配:

# 把 list-nutrition-foods 的 data 字段存成 nutrition.txt
python3 scripts/chilemai.py match --menu menu.json --nutrition nutrition.txt

脚本把结果分成三类;alias 只给候选名称,不再输出可直接合计的营养数值:

分类 含义 能不能当总热量用
精确对齐 归一化后唯一匹配 单品可用;缺失数值不算零,套餐仍需确认组成
待确认 前缀命中、杯型/规格不明或同名营养行冲突 不可;先核实规格与数据来源
未对齐 营养库暂无该项 不可;严格营养目标不采用该项

套餐需用 query-meal-detail 查清实际选择的主食、配餐、饮品与份数,再逐项核实营养。 组成、规格或任一必要营养值不明时,明确“无法核算总营养”,不要估成确定值。

这条不是洁癖:把「巨无霸三件套」按单品的 513 kcal 报给正在控热量的人,是自信地答错。

Phase 4 · 组方案

用 plan 从在售且营养精确匹配的单品中组合一餐。先确认菜单价格原值的单位, 再明确传 --price-unit yuan(元)或 fen(分),不能根据数值大小猜单位:

python3 scripts/chilemai.py plan --menu menu.json --nutrition nutrition.txt \
  --price-unit yuan --goal light --max-kcal 500 --limit 3

plan 输出 JSON:items 可交给算价,nutrition 是整餐合计,menu_subtotal_cents 是菜单估价(分),coverage 说明数据覆盖。默认组合 1–3 份单品、至少一份主食, 允许同品多份,配餐和饮品可选;套餐与待确认项不会自动纳入。 无候选时说明覆盖限制或约束冲突,询问用户愿意调整什么,不擅自放宽。

核心口径与优惠比较详见 references/goals.md:

  • 单品低卡筛选默认排除饮品与甜品;整餐至少含一份主食,饮品只作可选搭配
  • 营养目标对整单合计成立,不是对单品成立
  • filter 仅用于查看单品,不能先用单品蛋白下限裁掉整餐组合的原料
  • 默认给一个推荐,确有取舍再补一个备选;不要为了凑配餐和饮品而增加花费
  • 价格一律走 calculate-price(返回值单位是分,展示要 ÷100)
  • 省钱诉求:先 auto-bind-coupons 一键领券,再 query-store-coupons 看本店可用券, 把 couponId / couponCode 带进 calculate-price,对比用券前后的差价
  • 比较少量营养达标方案的单点、套餐与可用券;套餐也必须完成组成与营养核算
  • --budget 只限制菜单估价,不含优惠、配送费和打包费;找券后方案时可不设此参数。 最终以官方算价的实付总额校验用户预算,不能凭菜单估价承诺达标或断言无解

Phase 5 · 下单

  1. 先展示方案让用户确认 —— 确认绑定门店、场景、地址/时间、餐品规格与份数、优惠和官方实付总额
  2. create-order;orderType=1 必须带 takeWayCode(取自 calculate-price 的 takeWayList)
  3. 把返回的支付链接交给用户
  4. 用户回复"支付完成 / 失败"后,用 query-order 核对最新状态

换店、换餐、换规格、优惠失效或官方实付金额变化后重新算价,展示变化并重新确认。 create-order 超时或结果不明时,不直接重试;按 references/order-flow.md 核查已有订单, 无法确认是否创建成功时停在待核查状态,不新建第二单。

硬约束(传错就直接报错)

  • beCode:到店自取绝不能传;得来速 / 外送 / 团餐必传
  • orderType:到店自取与得来速为 1,麦乐送与团餐为 2
  • takeWayCode:仅 orderType=1 需要
  • calculate-price / create-order 的价格字段单位是分;菜单原值单位另行核实
  • 下单前必须有用户明确确认

输出风格

  • 先给结论再给理由,一句话说清"为什么是它"
  • 方案列成清单:品名 / 价格 / 热量 / 蛋白 / 一句理由
  • 营养数值标注口径,套餐不冒充单品
  • 不说教:不要教育用户"你该少吃点",按要求给方案就好
  • 用"建议 / 可选",把最终决定权留给用户

免责

餐品信息、价格与供应状态以麦当劳官方渠道的实时结果为准;营养数据仅供搭配参考, 不构成医疗、营养或其他专业建议。

04 同仓库更多 Skills

bg-szy
bg-szy/TOP-SKILLS

serpmaven

Scrape Google search results (SERP) to JSON with SERP Maven (serpmaven) - a real Chrome browser on a residential proxy with sticky sessions. Run it as a CLI, a Python library, a local HTTP search API (`serve`), an MCP server or a Docker image; set the proxy login, workers, pages and cost tracking. Use when the user wants Google results, rank tracking, a self-hosted SERP API, or live Google search for an AI agent.

★ 6
bg-szy
bg-szy/TOP-SKILLS

revnu-landing-page-audit

Find out why a landing page isn't turning visitors into signups, demos or sales. Audits one page against what the ad, post or search that sends people there promised, then checks the first screen, proof, call to action, friction and mobile. Returns at most 7 prioritized fixes, plus what is fine and what could not be checked; rewrites specific lines and fixes the page in the repo when asked. Never promises a conversion lift. Works without a Revnu account. Use when the user says or asks: "audit my landing page", "why isn't this page converting", "review my homepage", "my ads get clicks but no signups", "people bounce from the pricing page", "CRO review", "improve conversion rate", "is my hero section clear", "roast my landing page", "rewrite my headline", "what's wrong with this page", "landing page feedback", "make the signup page convert better". Not for SEO or AI-search audits, page speed engineering on its own, or building a new page from scratch.

★ 6
bg-szy
bg-szy/TOP-SKILLS

revnu-growth-context

Write down once who buys, what they're stuck on, what it costs, what proof you have and what you've already tried, so every growth task starts from facts instead of a questionnaire. Creates or updates .agents/revnu-growth.md from the repo, the live site and the user, and imports an existing product-marketing.md. Use when the user says "set up our marketing context", "who is our ideal customer", "write our ICP", "describe the product for marketing", "positioning doc", "what's our brand voice", "remember this about our customers", "log what we tried", "what have we learned from marketing", "we changed pricing, update the context", "update our growth notes", "summarize the business for the agent", "import my product-marketing.md", "start a growth doc", or before a first marketing, SEO, outreach or launch task when no context file exists. Works without a Revnu account.

★ 6
bg-szy
bg-szy/TOP-SKILLS

revnu-get-listed

Get onto the third-party pages AI answers and search cite when buyers ask for the best tool in your category: "best X" roundups, directories, review sites, GitHub awesome lists, community threads and comparison pages. Finds which ones are cited, ranks them by fit and effort, and drafts each submission, PR or pitch by the target's own rules. Use when the user says "get us listed", "which directories should we submit to", "how do we get into best-of lists", "why does ChatGPT recommend competitors and not us", "get mentioned in AI answers", "submit to awesome lists", "get on G2", "where are our competitors listed", "pitch listicle authors", "find backlink opportunities", "launch directories", "get into roundups", "Product Hunt alternatives", "where should we be listed", "get cited by Perplexity". Never submits, pays or posts without a yes. Works without a Revnu account.

★ 6
bg-szy
bg-szy/TOP-SKILLS

revnu-ai-readiness-audit

Audit whether your website gives ChatGPT, Perplexity, Claude, Gemini and Google's AI Overviews something worth quoting, and fix the pages that don't. Use when the user says or asks "is my site ready for AI search", "audit my site for AI answers", "AEO audit", "GEO audit", "why doesn't ChatGPT quote our pricing", "make our pages citable by AI", "do I need llms.txt", "does schema help with ChatGPT", "check our structured data", "is our content visible without JavaScript", "AI SEO audit", "optimize our homepage for AI answers", "LLM SEO check", "why does AI get our product wrong", "fix our site for AI Overviews". Checks fetchability and indexability, answers in the raw HTML, entity facts, schema (including JS-injected markup), headings, dates and llms.txt, then gives at most 10 prioritised fixes and edits the repo when asked. Works without a Revnu account.

★ 6
bg-szy
bg-szy/TOP-SKILLS

proxy-troubleshooting

Diagnose residential proxy failures, with NodeMaven's gateway as the reference - 407 with correct credentials, 406, 410, 500, a connection that hangs, ERR_TUNNEL_CONNECTION_FAILED in a browser, Playwright or Puppeteer ignoring proxy credentials, a sticky session that changes IP, geo-targeting that is silently ignored, passwords with special characters, and unexpected traffic from headless Chrome. Use when a proxy connection fails, returns the wrong location, or costs more traffic than expected.

★ 6