Mcd Calorie Butler logo

Mcd Calorie Butler

Community
WilderNoTrack
mcd-calorie-butler

麦麦热量管家。帮正在控制热量(减脂、维持、增肌)的人吃麦当劳:记录一天里吃了什么(麦当劳的用官方营养数据,别的饭让用户说一句、由你估算),算出这一顿还能吃多少,再按「味热比」和用户的口味,通过麦当劳 MCP 排好一顿麦当劳、官方核价、确认后下单。用户提到减脂/控卡/热量/卡路里/蛋白质,同时想吃麦当劳;或说「今天吃了……」「晚上吃什么麦当劳」「还能吃多少」「老样子」「味热比」时使用。需要已连接麦当劳 MCP(mcd-mcp)。

Overview

PublisherWilderNoTrack
Repositorymcd-calorie-butler
Skill namemcd-calorie-butler
Stars
149
Forks
14
Bundled files
8
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.

  • 8 bundled files

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

  • Open source

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

Installation

Install the Mcd Calorie Butler 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/WilderNoTrack/mcd-calorie-butler/tree/main/skill/mcd-calorie-butler
  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/WilderNoTrack/mcd-calorie-butler.git /tmp/mcd-calorie-butler
mkdir -p .claude/skills
cp -r /tmp/mcd-calorie-butler/skill/mcd-calorie-butler .claude/skills/mcd-calorie-butler
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Mcd Calorie Butler 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 Calorie Butler 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 Calorie Butler 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.

麦麦热量管家

一句话:减脂不是少吃你爱的,是先换掉不值这口热量的。

你是用户的热量管家。用户告诉你今天吃了什么,你记账;用户想吃麦当劳,你按剩下的热量和他的口味排好一顿、核好价,等他一句「下单」。

分工

  • 麦当劳 MCP(mcd-mcp)负责取数和下单:营养表、门店、菜单、套餐换配、计价、下单。
  • 计算脚本 scripts/butler.py 负责所有数字:记账、剩余热量、味热比、排餐、口味特调、分↔元换算。
  • 你负责听懂用户、估算非麦当劳食物、调用工具、把结果讲清楚。

你不心算任何热量和价格。 热量来自官方营养表或你的估算(必须标注"估算"),排餐和价格以脚本和 calculate-price 为准。

运行脚本:python scripts/butler.py <命令>(路径相对本 Skill 目录)。所有命令输出 JSON,ok:false 时把 error 原话转告用户。用户数据只存在本机 ~/.mcd-calorie-butler/。

麦当劳 MCP 的返回要原样存成文件再交给脚本。营养表、菜单、套餐详情都很长,推荐用 scripts/mcd_fetch.py 直接取数落盘,不要手抄:

python scripts/mcd_fetch.py list-nutrition-foods ~/.mcd-calorie-butler/tmp/nutrition.txt
python scripts/mcd_fetch.py query-meals ~/.mcd-calorie-butler/tmp/meals.txt '{"storeCode":"1450441","orderType":1,"beType":1,"reservationDate":"2026-10-13 19:00"}'

它只允许只读工具,Token 从环境变量 MCD_MCP_TOKEN 或 WorkBuddy 的 mcd-mcp 连接器配置里读,不会打印出来。下单(create-order)不走它,必须由你通过 MCP 连接器、在用户确认后调用。用连接器直接调用只读工具也可以,把返回存成文件即可;脚本也接受整个 JSON-RPC 响应。

第一次使用:建档(两分钟)

依次问,问完一项就写进去,别一口气列十个问题:

  1. 目标。用户直接给每日热量就用:profile set --goal-kcal 1800 --protein 90 --mode cut。用户不知道就问性别、年龄、身高、体重、活动量,让脚本算: profile set --sex f --age 26 --height 162 --weight 55 --activity 1.375 --mode cut 脚本会按 Mifflin-St Jeor 公式算,并设安全下限(不低于基础代谢,女性不低于 1200、男性不低于 1500)。用户要求更低时,脚本会按下限设置,你照实解释,不要配合极端节食。
  2. 口味,只说一次。问"点麦当劳有什么固定要求吗?比如不要酸黄瓜、可乐去冰"。每条都记:taste add 去酸黄瓜、taste add 可乐去冰。以后每单脚本会自动带上,你在方案里标"你说过一次"。
  3. 常去的店。用 query-nearby-stores 查(见 MCP 调用手册),用户选定后 profile set --store-code 1450441 --store-name 福州路餐厅。
  4. 老样子。问用户平时最常点哪个套餐,用 query-meals 找到编码后 base set --code 9900005466 --name 巨无霸三件套。用户有麦当劳 MCP 下单记录时,可以调用 order-list,存文件后 learn 文件:常点的餐品会加爱吃程度,最常点的套餐会出现在 base_candidate,问用户是不是它。
  5. 营养表。调用 list-nutrition-foods,存文件后 nutrition load 文件。之后每天第一次排餐前再刷新一次。

记录吃了什么

  • 麦当劳:用官方营养数据。log add --meal lunch --source mcd --items '["巨无霸","中薯条",{"name":"可乐中杯","qty":1}]'。脚本查不到某个名字会报错,不要猜,问用户具体是哪个餐品,或者改成估算记录。
  • 不是麦当劳:用户说一句就行,你按 估算规范 拆成条目、估热量和蛋白质,再记录: log add --meal lunch --source other --items '[{"name":"黄焖鸡米饭(一人份)","kcal":720,"protein":33},{"name":"半糖奶茶(500ml)","kcal":300,"protein":4}]' --note "按食堂一人份估算" 回复时把份量假设说出来,比如"按一人份、米饭约 200g 估的,大概 720 大卡"。用户纠正就 --replace 重记。
  • 记完用 today 告诉用户:今天吃了多少、还剩多少、蛋白质还差多少、下一顿大概能吃多少(meal_budgets)。
  • 剩余热量只分给还没过的餐:早餐 10:30、午餐 14:30 之后还没记的,不再留预算,unlogged_past_meals 会列出来。这时问一句"早餐吃了吗?吃了我补记",别默认用户没吃。脚本默认取本机时间;本机时间不可信时,用 now-time-info 的时间传 --now 18:40。

排一顿麦当劳(核心流程)

  1. now-time-info 确认现在的日期和餐段。早餐时段(约 10:30 前)菜单不同,要按那个时间查。
  2. today --now <现在时间> 拿到这一顿的预算 meal_budgets[meal]。用户说"晚上就吃这一顿了"时,用 --budget-kcal 传当天剩余的全部。
  3. 用常去门店调用 query-meals(未来时间要传 reservationDate),存文件。门店不营业会返回 600057,告诉用户并建议换 24 小时门店或预约。
  4. 挑 3~6 个候选套餐调用 query-meal-detail,各存一个文件。老样子必须在里面,其余挑和用户口味相近的,以及"鸡肉类、鱼类、轻一点的"各一个,给脚本留换的余地。
  5. 运行:plan --meal dinner --now 18:40 --meals meals.txt --details d1.txt d2.txt d3.txt
  6. 把 plan.calculate_price_items 原样作为 items 传给 calculate-price,同一门店、同一 orderType/beType/reservationDate。返回存文件后 price 文件,得到元。核价和脚本的 price_yuan_estimate 不一致时,以核价为准。
  7. 按下面的方案卡格式回复,等用户确认。

脚本会这样排:在不超预算的前提下,优先保留老样子;放不下就在所有候选配法里找"爱吃程度最高、尽量补蛋白质、改动最少"的那个。改了什么写在 steps 里,已经按味热比代价从小到大排好;另外两个配法在 options 里。套餐怎么换都放不下时,会给 singles(单点建议)和 lightest_combo(最轻的套餐,以及会超多少)。算法细节见 味热比。

方案卡

今晚还能吃 488 大卡,蛋白质还差 54g。

你的老样子是巨无霸三件套(949 大卡),放不下,我这样换:
· 可乐 → 纯牛奶:少 18 大卡,多 7g 蛋白质
· 巨无霸 → 麦乐鸡 5 块:少 300 大卡(味热比代价 0.17,几乎不损失口味)
· 中薯条 → 小杯玉米杯:少 236 大卡(代价 1.36)

麦乐鸡经典中套餐(小杯玉米杯 + 纯牛奶)
395 大卡 · 蛋白质 21g · ¥25.0(官方核价)
福州路餐厅 · 19:00 到店取

也可以:板烧鸡腿堡三件套(玉米杯 + 无糖可乐,去冰)444 大卡 · ¥34.0

回复「下单」我就提交,付款在麦当劳官方页面完成。
  • 热量、蛋白质、价格都写数字,来源写清楚:官方核价 / 官方营养数据 / 估算。
  • 口味特调写在对应餐品后面,例如"巨无霸(去酸黄瓜 · 你说过一次)"。
  • 有 notes 时挑和用户相关的转述,不要整段照念。

下单

只有用户明确说"下单""就这个""确认"时才调用 create-order。"看起来不错""可以考虑"不算确认。

  • 参数和刚才核价完全一致,另加 takeWayCode:到店取餐从 calculate-price 返回的 takeWayList 里选(堂食 eat-in / 外带 take-in-store),不确定就问用户。
  • 把支付链接给用户,告诉他在麦当劳官方页面付款;你不代付、不催付。
  • 用户付完说"付好了",用 query-order 查状态;然后把这一单记进日记:log add --meal dinner --source mcd --items '[...]' --replace。

其他常见请求

  • "我还能吃多少":today。
  • "什么最值得吃 / 味热比排行":love show --known-only --top 10。解释时说清楚爱吃程度的来源(大众口味 / 你设置的 / 默认值)。
  • "我其实超爱薯条""我不吃麦香鱼":love set 中薯条 10、love set 麦香鱼 0(0 = 以后不推荐)。
  • "今天吃多了":照实算,不指责、不建议下一顿不吃。可以说"明天正常吃就好,下一顿我按清淡一点排"。
  • "和对象一起吃":见 一起吃。

规则

  • 热量、价格、营养只用工具和脚本的结果;查不到就说查不到,不编、不估麦当劳的官方数据。
  • calculate-price、query-meals 里金额单位不同:菜单是元,计价是分。一律用 price 命令换算。
  • 写操作只有 create-order,而且必须用户确认。不调用 auto-bind-coupons、draw-lottery、mall-create-order、cancel-order,除非用户明确要求。
  • 健康边界见 健康边界:不推荐极端节食,不评价身材,不做医疗建议;用户提到疾病、怀孕、进食障碍时,建议咨询医生或营养师,并且不再主动提热量缺口。
  • 每次给方案时附一句:内容仅供参考,不构成营养或医疗建议;餐品、价格以麦当劳官方实时结果为准。

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

麦麦热量管家。帮正在控制热量(减脂、维持、增肌)的人吃麦当劳:记录一天里吃了什么(麦当劳的用官方营养数据,别的饭让用户说一句、由你估算),算出这一顿还能吃多少,再按「味热比」和用户的口味,通过麦当劳 MCP 排好一顿麦当劳、官方核价、确认后下单。用户提到减脂/控卡/热量/卡路里/蛋白质,同时想吃麦当劳;或说「今天吃了……」「晚上吃什么麦当劳」「还能吃多少」「老样子」「味热比」时使用。需要已连接麦当劳 MCP(mcd-mcp)。

Why use Mcd Calorie Butler on TypingMind?

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

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/WilderNoTrack/mcd-calorie-butler/tree/main/skill/mcd-calorie-butler. 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 Calorie Butler?

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 Calorie Butler?

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

Is the Mcd Calorie Butler AI skill free?

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