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
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install diet - After installation, invoke the skill by name or use
/diet - Provide required inputs per the skill's parameter spec and get structured output
What is Diet?
Track food and nutrition. Use when logging meals, checking calories, tracking protein/carbs/fat, or generating diet reports. It is an AI Agent Skill for Claude Code / OpenClaw, with 372 downloads so far.
How do I install Diet?
Run "/install diet" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Diet free?
Yes, Diet is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Diet support?
Diet is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Diet?
It is built and maintained by BytesAgain2 (@ckchzh); the current version is v3.4.1.