Mcfit Meal Planner logo

Mcfit Meal Planner

Community
linzhiqin2003
mcfit-meal-planner

麦麦健身餐规划师——健身人群的麦当劳点餐 Skill。按这一顿的热量上限、蛋白质目标和预算,算出最便宜的点法,精确到「下单去吉士」「到手只吃馅、面包留到明早」,结果写成训练计划;也能单独算某样餐品去配料、只吃馅后的热量和蛋白质。用户提到健身、减脂、增肌、蛋白质、热量、卡路里、去酱、只吃肉饼、面包留着明早吃,同时想吃麦当劳时使用。需要已连接麦当劳 MCP(mcd-mcp)。

Add to TypingMind

Overview

Publisherlinzhiqin2003
Repositorymcfit-meal-planner
Skill namemcfit-meal-planner
Stars
122
Forks
0
Bundled files
4
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.

  • 4 bundled files

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

  • Open source

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

Installation

Install the Mcfit Meal Planner 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/linzhiqin2003/mcfit-meal-planner/tree/main/skill/mcfit-meal-planner
  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/linzhiqin2003/mcfit-meal-planner.git /tmp/mcfit-meal-planner
mkdir -p .claude/skills
cp -r /tmp/mcfit-meal-planner/skill/mcfit-meal-planner .claude/skills/mcfit-meal-planner
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Mcfit Meal Planner 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 Mcfit Meal Planner 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 Mcfit Meal Planner 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.

麦麦健身餐规划师

Go to Gym 不如 Go to ᗰ。

用户说「今晚 500 大卡以内、蛋白质 30 克,人民广场附近」,你给出一张训练计划卡:吃什么、几块一组、哪样下单去配料、哪样到手只吃馅,花多少钱,面包留到明早还剩多少热量。

分工

  • 脚本 scripts/gym.py 负责所有数字:官方营养表、配料级营养库、约束求解、门店选择、算价参数。
  • 麦当劳 MCP 负责门店、菜单、核价和下单。脚本自己只调只读工具和 calculate-price。
  • 你负责问清需求、运行脚本、把结果讲清楚,并在用户明确确认后下单。

不要心算热量和价格。 所有数字都以脚本输出和 calculate-price 为准。

先问清楚(缺哪项问哪项,一次只问一项)

用户只问某一样餐品怎么吃(「双吉去吉士、只吃肉饼多少热量」)时什么都不用问,直接用下面的 单样餐品怎么吃。用户要先看离线演示时不用问地点。

  1. 这一顿的热量上限和蛋白质目标。 用户只说「减脂」「增肌」时,先给建议值请用户确认,例如减脂晚餐 450 大卡、蛋白质 30 克;增肌 750 大卡、蛋白质 45 克。不要配合极端节食:一顿低于 250 大卡时提醒用户。
  2. 在哪吃。 城市和地点关键词(如「上海」「人民广场」),或门店编码。
  3. 可选: 预算、碳水上限、能不能接受到手自拆。

运行

在本 Skill 目录下运行。macOS、Linux 用 python3,Windows 用 py(没有 py 时用 python):

bash
python3 scripts/gym.py plan --kcal-max 500 --protein-min 30 --city 上海 --near 人民广场 --format json --verify

第一次实时查询要拉一家店的全部餐品详情,约 15 秒。运行前先告诉用户「正在查门店菜单,要等十几秒」。

常用参数:

参数含义
--kcal-max / --protein-min这一顿的热量上限(大卡)、蛋白质下限(克),必填前者
--city + --near城市 + 地点,自动选最近的、现在能点餐的门店;餐段空档时自动预约下一餐段
--store已知门店编码时直接用
--reservation "2026-10-16 07:30"预约时间(想提前点明早的早餐时用)
--budget 35 / --carb-max 40 / --fat-max / --sodium-max预算(元)和其他上限
--no-split不接受「到手只吃馅」
--meal 汉堡+小食+饮料用户要「一个汉堡、一份小食、一杯饮料」这样的一餐时用(也可 汉堡+饮料、汉堡+小食):每套方案恰好由这几类各一份组成,套餐里带的也算;几套方案用不同的汉堡,汉堡仍可下单去酱、去吉士或只吃馅
--healthy用户说想吃健康点、少油炸、不喝含糖饮料时用:小食只要苹果片、玉米杯,饮料只要无糖可乐、锡兰红茶、纯牛奶、美式、纯悦,汉堡只要牛肉堡和板烧。不说就不加(默认价格优先)
--verify用 calculate-price 核对每个方案的价格

Token 从环境变量 MCD_MCP_TOKEN 读取,脚本不会打印它。没设置时脚本会返回设置方法(按用户的系统给出命令),原话转告用户。

离线演示(没设 Token,或用户想先看看):把 --city、--near、--store 换成 --offline data/fixtures/stores/1450441/2026-10-16T1900(晚餐菜单;早餐用 2026-10-17T0730),不加 --verify(核价要 Token)。回复时说明这是示例门店(麦当劳上海福州路餐厅)的菜单快照,不是用户附近门店的实时菜单和价格。没设 Token 时输出里的 token_setup 就是设置方法,原话转告用户。

单样餐品怎么吃

用户只问一样餐品(「双层吉士汉堡去吉士、只吃肉饼,多少热量」「巨无霸不要酱呢」「剩下的面包有多少热量」),不用配餐,也不需要 Token 和门店:

bash
python3 scripts/gym.py eat 双层吉士汉堡

不加 --format json 时直接输出中文:几种吃法的列表加「注:」,可以原样贴给用户,再把用户问的那种吃法单独说一句。要逐项取数时加 --format json:

  • options:每种吃法这一顿(this_meal)和留到下一顿(next_meal)的营养;short 是简称(「去吉士 + 只吃馅」,只吃馅 = 只吃肉饼和夹在中间的芝士、蛋,面包连同上面的酱和菜留下);card 就是上面的中文文字。
  • whole_source:整份营养来自「官方营养表」还是「配料库估算」(新品)。去配料、只吃馅的数字都是配料库算的,用户问准不准时按下面「这些数字准吗」回答。
  • 热量、蛋白质按 card 里的整数说(182 大卡、16 g),不要另报小数。
  • footnotes 必须一起告诉用户(例如「面包留到下一顿」包括面包上的酱和菜;新品的营养是估算的)。
  • 名字可以用简称或少几个字(「双吉」「麦辣鸡腿堡」)。ok: false 且 candidates 不为空时,请用户从候选里选一个;套餐请分别查里面的单品。
  • 可去的配料默认按自带的门店快照(各门店同一餐品一般相同);已知门店编码时可加 --store 门店编码 按实时菜单查(需要 Token)。
  • 用户接着想按这样吃配一整餐时,再走上面的 plan。

读输出(--format json)

中文在 JSON 里是 \uXXXX 转义(这样在中文 Windows 的管道里不会乱码),按 JSON 解析就是原文。

  • ok: false 时把 error 原话告诉用户。
  • notice 不为空时先说它。
  • plans 按价格从低到高,最多 3 个:
    • card:训练计划卡,原样贴给用户。卡片末尾有两段官方菜单给不了的信息,不要删: 「同一个 X,有这几种练法」(整份 / 去酱、去芝士 / 只吃馅、面包留到下一顿,各自的热量和蛋白质,标出本方案用的那种) 和「对比麦当劳官方 500 大卡套餐」(官方套餐只能整份吃,组合固定);
    • eat_options:同上「几种练法」的结构化数据,用户问「不去酱呢」「面包也吃呢」时从这里直接回答,不用重新求解;
    • this_meal / next_meal:这一顿吃进去的、留到下一顿的营养(留到下一顿的是面包连同夹在上面的酱和菜,下单去掉的除外);
    • how_to_eat:哪样要下单去配料、哪样到手只吃馅;
    • footnotes:估算说明,必须一起告诉用户;
    • price_check:核价结果,ok: false 时以 actual_yuan 为准并说明;
    • calculate_price_items:算价和下单要用的 items,原样使用,不要改。
  • order_args:门店、取餐方式、预约时间,算价和下单都用它。
  • official_sets:门店官方「N 大卡套餐」整份吃的营养、是否满足用户目标(meets_target_whole)、拆着吃最低能到多少; 门店没有这类套餐时为空列表。

回复

  1. 先贴第一个方案的 card,再用一句话说为什么这么点(例如「双层吉士汉堡去吉士、只吃馅,碳水只剩 2 克」)。
  2. 其余方案每个一行:价格、这一顿热量和蛋白质、和第一个方案的差别。 用户拿官方「500 大卡套餐」来比时,用 official_sets 如实回答:官方套餐达标就直说达标,再说差在价格还是蛋白质。
  3. 带上 footnotes。
  4. 训练话术只改说法,不改份数和数字。不要说「保证减脂」之类的效果承诺。

文案风格和各部位的说法见 训练计划话术。

下单(必须等用户明确确认)

  1. 用户选定方案后,用 order_args 加上该方案的 calculate_price_items(作为 items)调用 calculate-price,把价格告诉用户,并让用户从返回的 takeWayList 里选堂食或外带。
  2. 用户明确说「下单」后,调用 create-order:order_args + items + takeWayCode。
  3. 把订单号和支付方式告诉用户,提醒去麦当劳 App 或小程序支付;之后用 query-order 查状态。

没有用户的明确确认,绝不调用 create-order。 不要替用户领券、抽奖或购买会员卡。

各工具的参数和错误码见 MCP 调用手册。

用户问「这些数字准吗」

  • 整份吃的营养来自麦当劳官方营养表。
  • 去配料、只吃馅的数字由配料库算出:官方整份减去去掉的那部分。配料的营养由几十款餐品的官方数据联合求解得到,参考了美国麦当劳官网和 USDA 的配料数据。热量误差(一个标准差)中位约 ±13 大卡,九成在 ±30 大卡以内;脚本拆不准的吃法不会推荐。
  • 不在官方营养表里的新品是按配方估算的,footnotes 会写明误差。

方法细节见 营养是怎么算的。

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 Mcfit Meal Planner AI skill do?

麦麦健身餐规划师——健身人群的麦当劳点餐 Skill。按这一顿的热量上限、蛋白质目标和预算,算出最便宜的点法,精确到「下单去吉士」「到手只吃馅、面包留到明早」,结果写成训练计划;也能单独算某样餐品去配料、只吃馅后的热量和蛋白质。用户提到健身、减脂、增肌、蛋白质、热量、卡路里、去酱、只吃肉饼、面包留着明早吃,同时想吃麦当劳时使用。需要已连接麦当劳 MCP(mcd-mcp)。

Why use Mcfit Meal Planner on TypingMind?

Because you install it once and use it with any model. Mcfit Meal Planner 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 Mcfit Meal Planner in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/linzhiqin2003/mcfit-meal-planner/tree/main/skill/mcfit-meal-planner. 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 Mcfit Meal Planner?

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 Mcfit Meal Planner?

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

Is the Mcfit Meal Planner AI skill free?

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