← 返回 Skills 市场
ckchzh

Diet

作者 BytesAgain2 · GitHub ↗ · v3.4.1 · MIT-0
cross-platform ✓ 安全检测通过
372
总下载
0
收藏
1
当前安装
14
版本数
在 OpenClaw 中安装
/install diet
功能描述
Track food and nutrition. Use when logging meals, checking calories, tracking protein/carbs/fat, or generating diet reports.
使用说明 (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

安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install diet
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /diet 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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
元数据
Slug diet
版本 3.4.1
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 14
常见问题

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。

💬 留言讨论