返回顶部
n

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). Use when user logs meals, asks if targets are met, or wants to set/remember nutrition profile.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.0
安全检测
已通过
340
下载量
0
收藏
概述
安装方式
版本历史

nutrition-tracker

# 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 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 ```bash 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 bash ~/.openclaw/workspace/skills-public/nutrition-tracker/scripts/nutrition_check_today.sh \ --date "2026-03-04" \ --lang zh-CN ``` ## Target logic (defaults) 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) 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.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 nutrition-tracker-1776234437 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 nutrition-tracker-1776234437 技能

通过命令行安装

skillhub install nutrition-tracker-1776234437

下载 Zip 包

⬇ 下载 nutrition-tracker v0.1.0

文件大小: 7.48 KB | 发布时间: 2026-4-16 00:02

v0.1.0 最新 2026-4-16 00:02
Initial release: Obsidian meal log + profile init + i18n (zh-CN/en-US) + target check.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部