← Back to Skills Marketplace
ckchzh

Diet

by BytesAgain2 · GitHub ↗ · v3.4.1 · MIT-0
cross-platform ✓ Security Clean
372
Downloads
0
Stars
1
Active Installs
14
Versions
Install in OpenClaw
/install diet
Description
Track food and nutrition. Use when logging meals, checking calories, tracking protein/carbs/fat, or generating diet reports.
README (SKILL.md)

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

Usage Guidance
This skill appears to do exactly what it claims and keeps data local. Before installing, consider: (1) review the included scripts yourself (they are plain shell/python) to confirm you’re comfortable running them; (2) note that meal and water logs are stored unencrypted under ~/.diet — if this is sensitive, restrict permissions (chmod 700 ~/.diet and chmod 600 ~/.diet/*) or store backups securely; (3) ensure you have bash and python3 available (jq is optional); (4) because the skill has no network behavior, your data is not transmitted by the script, but always verify the source (GitHub/homepage) if you plan to run code from an external repo.
Capability Analysis
Type: OpenClaw Skill Name: diet Version: 3.4.1 The 'diet' skill is a local meal and nutrition tracker that manages food logs and water intake using JSON files stored in ~/.diet/. The implementation in scripts/script.sh uses standard bash and Python logic for data processing and reporting without any evidence of data exfiltration, malicious execution, or unauthorized system access.
Capability Assessment
Purpose & Capability
Name/description match the implementation: the SKILL.md and scripts provide commands for logging meals, calories, macros, water, plans, and reports. Required tools (bash, python3) and local JSON storage under ~/.diet are reasonable for this purpose.
Instruction Scope
Runtime instructions and the shell script operate on local files only (~/.diet/meals.json, water.json). They do not read other system config, request environment secrets, or send data to external endpoints. The behavior is constrained to the described functionality.
Install Mechanism
There is no install spec — the skill is instruction-only with an included script. That is low-risk; the script is stored as a file in the skill bundle but nothing in the metadata would auto-download arbitrary remote code.
Credentials
No environment variables or credentials are required. The script uses a few environment variables internally when invoking python, which is normal and local to the process.
Persistence & Privilege
always is false and the skill is user-invocable. It does not request to be permanently injected into other agent settings or modify other skills. Its persistence is limited to creating the ~/.diet directory and JSON files for user data.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install diet
  3. After installation, invoke the skill by name or use /diet
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v3.4.1
v2.5 standard: Use-when desc, homepage, source, security fix
v3.4.0
manual
v3.3.0
Major rewrite: domain-specific commands, Use-when description, security fixes, dependency declarations
v1.0.5
manual
v3.2.1
Trim script for review
v3.2.0
Concise description (no truncation), add homepage+source metadata
v3.1.0
Security fix: safe env-var Python invocation; add Requirements section; fix description format
v3.0.1
Fix: add Requirements, fix description
v3.0.0
Major rewrite: real domain-specific commands, 200+ lines of functional code
v1.0.4
yaml-fix+quality
v1.0.3
yaml-fix+quality
v1.0.2
Quality upgrade: custom functionality
v1.0.1
Added feedback link
v1.0.0
Initial release
Metadata
Slug diet
Version 3.4.1
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 14
Frequently Asked Questions

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.

💬 Comments