简介
Nutrition Tracker
原始描述
Track daily calories and macros in Obsidian, with profile initialization (sex/height/weight/goal) and goal-based target checks. Includes i18n (zh-CN/en-US)....
通过你的 Agent 添加
安装目录:nutrition-tracker/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: nutrition-tracker
description: Track daily calories and macros in Obsidian, with profile initialization (sex/height/weight/goal) and goal-based target checks. Includes i18n (zh-CN/en-US). Use when user logs meals, asks if targets are met, or wants to set/remember nutrition profile.
Nutrition Tracker (Obsidian)
This skill logs meals (kcal + P/C/F) into an Obsidian vault and maintains daily totals. It also stores a lightweight nutrition profile (sex/height/weight/activity/goal) and can evaluate whether today's intake meets targets.
i18n: scripts support
--lang zh-CN|en-US(default:zh-CN).
Storage
- Vault (default):
~/Documents/obsidian/yzhai-daily
- Profile:
health/eat/profile.json
- Monthly log:
health/eat/YYYY-MM/YYYYMM_calories_macros.md
Quick start
1) Initialize / update profile
bash ~/.openclaw/workspace/skills-public/nutrition-tracker/scripts/nutrition_init.sh \
--sex male \
--height 175 \
--weight 75 \
--activity office \
--goal cut \
--kcal 2200 \
--lang zh-CN
2) Log a meal
~/Documents/obsidian/yzhai-dailyhealth/eat/profile.jsonhealth/eat/YYYY-MM/YYYYMM_calories_macros.md1) Initialize / update profile
bash ~/.openclaw/workspace/skills-public/nutrition-tracker/scripts/nutrition_init.sh \
--sex male \
--height 175 \
--weight 75 \
--activity office \
--goal cut \
--kcal 2200 \
--lang zh-CN
bash ~/.openclaw/workspace/skills-public/nutrition-tracker/scripts/nutrition_log.sh \
--date "2026-03-04" --time "19:54" --meal dinner \
--desc "rice 150g; potato 120g; meat+egg 200g; soup 200g" \
--kcal 830 --p 45 --c 69 --f 40 \
--lang zh-CN
3) Check whether today's targets are met
bash ~/.openclaw/workspace/skills-public/nutrition-tracker/scripts/nutrition_check_today.sh \
--date "2026-03-04" \
--lang zh-CN
Target logic (defaults)
bash ~/.openclaw/workspace/skills-public/nutrition-tracker/scripts/nutrition_check_today.sh \
--date "2026-03-04" \
--lang zh-CN
If profile has no explicit macro targets, defaults are computed by goal:
- cut (fat loss):
- Protein:
2.0 g/kg - Fat:
0.8 g/kg - Carbs: remaining calories (based on kcal target)
- Protein:
You can override targets explicitly in profile (see nutrition_init.sh --pTarget/--cTarget/--fTarget).
Notes
- Keep meal macros as estimates; refine later by updating entries.
- This skill is designed to be deterministic via scripts, not free-form editing.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。