Diet
/install diet
Diet — Meal & Nutrition Tracker
Track what you eat, monitor macros, plan meals, and review nutrition trends.
Commands
log — Record a meal
bash scripts/script.sh log "\x3Cfood_item>" \x3Ccalories> \x3Cprotein_g> \x3Ccarbs_g> \x3Cfat_g> [meal_type]
Records a food entry with calorie and macro data. meal_type defaults to snack. Options: breakfast, lunch, dinner, snack.
calories — Query calorie totals
bash scripts/script.sh calories [YYYY-MM-DD]
Shows total calories consumed for a given date. Defaults to today.
plan — Generate a meal plan
bash scripts/script.sh plan \x3Ctarget_calories> \x3Cdays>
Generates a simple meal plan for the specified number of days targeting the given daily calorie goal, based on previously logged foods.
macros — Macronutrient breakdown
bash scripts/script.sh macros [YYYY-MM-DD]
Shows protein, carbs, and fat totals and percentages for a given date. Defaults to today.
water — Log water intake
bash scripts/script.sh water \x3Cml> [YYYY-MM-DD]
Records water intake in milliliters. Defaults to today.
report — Nutrition report
bash scripts/script.sh report [daily|weekly] [YYYY-MM-DD]
Produces a nutrition summary. daily shows one day; weekly shows 7-day trends. Defaults to daily report for today.
Output
All commands print plain text to stdout. Data is stored in ~/.diet/ as JSON files (meals.json, water.json).
Requirements
- bash 4+
- python3 (standard library only)
Feedback
Report issues or suggestions: https://bytesagain.com/feedback/
Powered by BytesAgain | bytesagain.com
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install diet - 安装完成后,直接呼叫该 Skill 的名称或使用
/diet触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Diet 是什么?
Track food and nutrition. Use when logging meals, checking calories, tracking protein/carbs/fat, or generating diet reports. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 372 次。
如何安装 Diet?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install diet」即可一键安装,无需额外配置。
Diet 是免费的吗?
是的,Diet 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Diet 支持哪些平台?
Diet 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Diet?
由 BytesAgain2(@ckchzh)开发并维护,当前版本 v3.4.1。