Nutrition Balance Tracker
Overview
Use this skill to help the user track daily meals, hydration, exercise burn, and overall nutrition balance for fat loss, maintenance, or muscle gain. Keep the interaction lightweight, estimate conservatively, and focus on practical next-step guidance instead of pseudo-medical certainty.
This skill supports:
- - meal, snack, and drink logging
- hydration tracking
- daily energy balance analysis
- macro and key nutrition checks
- actionable next-step guidance
Workflow
1. Clarify the evaluation frame
First determine the minimum context needed for a useful answer:
- - user goal:
fat_loss, maintain, or INLINECODE2 - whether the user wants a partial-day check or full-day review
- what has been eaten, drunk, and exercised so far
If core facts are missing, ask only the 1–3 highest-impact questions first. Use references/intents-and-prompts.md for trigger examples, follow-up priority, and low-confidence confirmation strategy.
2. Build or update the user profile
If the user wants target-based judgment and profile data is missing, ask for:
- - age
- sex
- height in cm
- weight in kg
- activity level
- goal intensity when relevant
If the user already provides their own calorie or macro targets, prefer those over default estimates.
3. Estimate daily targets
When no explicit user targets are provided, estimate them with:
Default principles:
- - use BMR + activity multiplier for maintenance estimates
- apply conservative surplus/deficit rules by goal
- prioritize protein adequacy
- treat sodium and sugar as upper-limit checks
- treat water and fiber as minimum-target checks
4. Estimate intake
Convert food logs into nutrition totals with:
Rules:
- - use approximate household units when exact grams are unavailable
- if a food is missing from the built-in database, say so clearly
- if quantity or cooking method is unclear, mark the result as estimated
- do not pretend restaurant or takeout entries are precise
5. Estimate burn
Estimate energy burn with:
Include:
- - BMR
- non-exercise activity from activity multiplier
- exercise burn from type, duration, and intensity
Use conservative estimates. Do not over-credit exercise.
6. Evaluate balance
Judge the day with:
Evaluate at least:
- - energy balance versus goal
- protein
- carbs
- fat
- fiber
- water
- sodium
- sugar
Use simple human-readable states such as:
- - 合理 / 略低 / 偏低 / 略高 / 偏高
- 赤字合理 / 赤字过大 / 盈余合理 / 盈余过大
7. Format the response
Generate a clear result with:
- - INLINECODE10
- INLINECODE11
Keep the response compact and useful:
- - today summary
- calorie balance
- nutrient status
- top 1–3 issues
- next-step suggestions
- disclaimer
If confidence is low, explicitly label the result as an estimate and name the main uncertainty source.
Output Rules
- - Prefer practical guidance over theory.
- Do not overwhelm the user with every possible metric.
- Highlight the 1–3 most important adjustments.
- Avoid alarmist wording.
- Never present the result as diagnosis, treatment, or medical nutrition therapy.
Resources
scripts/
- -
calculate_targets.js: estimate BMR, calorie target, and daily macro targets - INLINECODE13 : total food and hydration intake from simple structured entries
- INLINECODE14 : estimate daily burn from profile and exercise entries
- INLINECODE15 : classify balance status and produce alerts/suggestions
- INLINECODE16 : render the final user-facing report
- INLINECODE17 : small built-in food reference for common foods
references/
- -
intents-and-prompts.md: trigger examples and missing-info follow-up rules - INLINECODE19 : user-facing output template
- INLINECODE20 : default daily target and balance ranges
- INLINECODE21 : language, safety, and medical-boundary rules
Disclaimer
This skill provides general nutrition-tracking guidance only. It does not provide medical diagnosis, treatment, or individualized clinical nutrition advice. If the user mentions a medical condition, pregnancy, eating disorders, or other high-risk contexts, keep advice general and recommend professional support.
营养平衡追踪器
概述
使用此技能帮助用户追踪每日餐食、水分摄入、运动消耗及整体营养平衡,以实现减脂、维持或增肌目标。保持交互轻量化,采用保守估算,聚焦于可操作的下一步指导,而非伪医学确定性。
本技能支持:
- - 记录正餐、零食和饮品
- 水分摄入追踪
- 每日能量平衡分析
- 宏量营养素及关键营养检查
- 可操作的下一步指导
工作流程
1. 明确评估框架
首先确定提供有效答案所需的最低上下文:
- - 用户目标:减脂、维持 或 增肌
- 用户需要部分日检查还是全天回顾
- 截至目前已摄入的食物、饮品和运动情况
若缺少核心信息,仅优先询问1-3个影响最大的问题。触发示例、跟进优先级及低置信度确认策略请参考 references/intents-and-prompts.md。
2. 建立或更新用户档案
若用户需要基于目标的判断但档案数据缺失,询问:
- - 年龄
- 性别
- 身高(厘米)
- 体重(公斤)
- 活动水平
- 相关时的目标强度
若用户已提供自己的热量或宏量营养素目标,优先采用而非默认估算值。
3. 估算每日目标
当用户未提供明确目标时,使用以下进行估算:
- - scripts/calculate_targets.js
- references/nutrition-targets.md
默认原则:
- - 使用基础代谢率 + 活动系数估算维持热量
- 根据目标应用保守的盈余/赤字规则
- 优先保证蛋白质充足
- 钠和糖作为上限检查
- 水和膳食纤维作为下限检查
4. 估算摄入量
将食物记录转换为营养总量,使用:
- - scripts/calculateintake.js
- scripts/fooddb.json
规则:
- - 无法获取精确克数时,使用近似家用单位
- 若某种食物不在内置数据库中,明确说明
- 若数量或烹饪方法不明确,将结果标记为估算值
- 不要假装餐厅或外卖记录是精确的
5. 估算消耗
使用以下估算能量消耗:
- - scripts/calculate_burn.js
包括:
- - 基础代谢率
- 来自活动系数的非运动活动
- 来自运动类型、时长和强度的运动消耗
采用保守估算。不要高估运动消耗。
6. 评估平衡
使用以下判断当日情况:
- - scripts/evaluate_balance.js
至少评估:
- - 能量平衡与目标对比
- 蛋白质
- 碳水化合物
- 脂肪
- 膳食纤维
- 水分
- 钠
- 糖
使用简单易懂的状态描述,例如:
- - 合理 / 略低 / 偏低 / 略高 / 偏高
- 赤字合理 / 赤字过大 / 盈余合理 / 盈余过大
7. 格式化回复
使用以下生成清晰结果:
- - scripts/format_report.js
- references/output-template.md
保持回复简洁实用:
- - 今日概况
- 热量平衡
- 营养素状态
- 前1-3个问题
- 下一步建议
- 免责声明
若置信度较低,明确将结果标注为估算值,并指出主要的不确定性来源。
输出规则
- - 优先提供实用指导而非理论。
- 不要用所有可能的指标让用户感到不知所措。
- 突出1-3个最重要的调整点。
- 避免危言耸听的措辞。
- 切勿将结果呈现为诊断、治疗或医学营养疗法。
资源
scripts/
- - calculatetargets.js:估算基础代谢率、热量目标和每日宏量营养素目标
- calculateintake.js:从简单的结构化记录中汇总食物和水分摄入总量
- calculateburn.js:根据档案和运动记录估算每日消耗
- evaluatebalance.js:分类平衡状态并生成提醒/建议
- formatreport.js:渲染最终面向用户的报告
- fooddb.json:常见食物的小型内置食物参考数据库
references/
- - intents-and-prompts.md:触发示例和缺失信息跟进规则
- output-template.md:面向用户的输出模板
- nutrition-targets.md:默认每日目标和平衡范围
- safety-boundaries.md:语言、安全和医学边界规则
免责声明
本技能仅提供一般性营养追踪指导。不提供医学诊断、治疗或个性化临床营养建议。若用户提及医疗状况、怀孕、饮食失调或其他高风险情境,保持建议的通用性,并建议寻求专业支持。