Mcd Git — Git skill for Claude Code
用 git 命令点麦当劳:add 放进购物车,rebase 凑套餐挑最省的券,push 确认后才下单、终端出支付二维码.
How to install Mcd Git
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open zhutoumeme/mcd-git and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Mcd Git does
用 git 命令点麦当劳:add 放进购物车,rebase 凑套餐挑最省的券,push 确认后才下单、终端出支付二维码。基于麦当劳 MCP Server,附 --demo 无 Token 试玩和 Agent Skill。非官方参赛作品。
Alternatives in Git
- Cc Usage — by ryoppippi - Handy CLI tool for managing and analyzing Claude Code usage, based on analyzing local Claude Co 11.7k ★
- Git MCP — GitHub Repo stars Free open-source remote MCP server for any GitHub project Git integration MCP 7.8k ★
- Copilot API — Turns GitHub Copilot into an OpenAI/Anthropic API compatible server, usable with Claude Code 3.1k ★
README
mcd-git · 用 git 命令点麦当劳
`git mcd add` 放进购物车,`git mcd rebase` 自动凑套餐、挑最省的券,`git mcd push` 才真正下单,终端里直接出支付二维码。基于麦当劳中国 MCP Server(`mcp.mcd.cn`)。

动图和下面所有截图都是 `--demo` 合成数据:门店、价格、订单号、券都是编的,支付链接指向 `example.com`。
一套引擎,两个入口
- 开发者:在终端里敲
git mcd。git-mcd在 PATH 里,git 就会把git mcd …交给它,任何目录都能用,不碰你代码仓库的.git。 - 普通用户:把 SKILL.md 装进 WorkBuddy / Claude Code / Kiro,用大白话点餐,Agent 在后台跑
git mcd --json。
一段 Agent 对话(demo 数据):
你: 中午想吃巨无霸,不要酸黄瓜,再来中薯条和中可乐。12:20 去店外取餐柜拿,不要餐具,看看怎么最省。
Agent:(git mcd add 巨无霸 中薯条 中可乐 --no-pickle --json → git mcd rebase --json → git mcd diff --json)
三样正好凑成巨无霸套餐,再用一张「示例·巨无霸套餐立减 5 元」:¥45.50 → ¥33.50。
(git mcd commit -m 午饭 --json → git mcd push --at 12:20 --locker --no-tableware --json)
门店 演示·代码港店 · 外带·店外取餐柜 · 预约 12:20 · 不要餐具
巨无霸套餐 [巨无霸 · 中薯条 · 中可乐] 去酸黄瓜,应付 ¥33.50。要下单吗?付款需要你自己完成。
你: 确认。
Agent:(git mcd push --at 12:20 --locker --no-tableware --confirm bfc651c --json)
下好了,请在 12:05 前打开这个链接付款:https://example.com/mcd-git-demo/pay?orderId=1024…
付完跟我说一声,我帮你查取餐码。
**和普通 Skill 的区别:确认由代码强制执行。** 普通 Skill 只是一段提示词,Agent 手里有 MCP 连接器就能随时直接调 `create-order`。mcd-git 的 Skill 不需要给 Agent 配 MCP 连接器,Token 只给 mcd-git 用,Agent 手里只有 `git mcd` 这一套命令:下单必须先出确认摘要,再用 `--confirm ` 执行;哈希、参数、重新算出的应付金额,任何一项和预览时对不上,代码都会拒绝。代码保证的是这三件事:一定先出预览,确认时不能换参数,价格会复核。至于 Agent 有没有先把摘要拿给你看、等你点头,代码分辨不出来,这一步靠 SKILL.md 的规则约束 Agent。
git 命令 ↔ 点餐动作
| git mcd | 点餐动作 | 会改动你的账户吗 |
|---|---|---|
init |
选门店和取餐方式(到店 / 得来速 / 麦乐送),相当于设置远端 | 否 |
status |
当前分支(按时段:breakfast / lunch / tea / dinner)、购物车、可用券、待支付订单 | 否 |
Related Skills
Agentskills MCP
FastMCP server for discovering and installing agent skills from large curated GitHub skill collections, with a
Publish MCP Server
Publishes one of the bundled MCP servers to npm. Tag push triggers GitHub Actions → npm publish --provenance.
Briefd
Your agents, briefed. Not flooded. Self-hosted context compiler: git-backed team knowledge served to coding ag
MCP Agent Mail Rust
Rust MCP server for multi-agent coordination: 34 tools, Git-backed archive, SQLite indexing, advisory file loc
Monochromatic
TypeScript and Rust monorepo: Claude Code and Pi coding-agent plugins, a minimal MCP stdio server framework, c
Parallel Memory MCP
A memory MCP server that survives parallel agents: SQLite-serialised writes, unified across git worktrees, mir
Related Agents
Merger
Reviews, validates, and merges arc-agents PRs. Sole authority for destructive git ops (rebase, push, merge, br
Demo Validator Web
Browser-driving validator for the live-demo and workbench builds — uses the Playwright MCP server (configured
Intellij Debugger Maintainer
Fix issues, add features, and maintain quality in intellij-debugger. MCP server that lets Claude control Intel