← 返回
AI智能 中文

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)....
在 Obsidian 追踪每日热量与宏量营养素,支持资料初始化(性别/身高/体重/目标)、目标校验及中英双语。
abstract-sum
AI智能 clawhub v0.1.0 1 版本 99870.6 Key: 无需
★ 0
Stars
📥 772
下载
💾 27
安装
1
版本
#latest

概述

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

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)

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.

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-30 09:24 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,359 📥 318,562
ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 712 📥 243,922
developer-tools

Obsidian Clip

abstract-sum
Create and manage Obsidian “Clip” notes (web/article/page clips). Use when the user says “clip/剪藏/收藏/保存这个链接”, wants a re
★ 0 📥 890