360 Secure SkillHub
360 安全技能中心

Diet

这是一款命令行式饮食营养追踪工具,核心功能含记录饮食(带宏量营养素)与饮水、查询单日/指定日期的热量及宏量占比、按目标热量生成多日餐单、生成日/周营养报告。适用于日常饮食记录、营养监控、定制饮食计划等场景。通过bash命令调用,输出纯文本,数据本地存为JSON文件。

ckchzh
ckchzh
热度 70.70
最近更新 2026-05-11 17:31:53
分类:生活依赖:代码执行 / 读写文件应用场景:健康 / 报告撰写

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add diet
Metadata
name
diet
description
Track food and nutrition. Use when logging meals, checking calories, tracking protein/carbs/fat, or generating diet reports.
version
3.4.0
author
BytesAgain
homepage
https://bytesagain.com
source
https://github.com/bytesagain/ai-skills
tags
["nutrition","calories","meal-tracking","health","diet-plan"]

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 "<food_item>" <calories> <protein_g> <carbs_g> <fat_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 <target_calories> <days>

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 <ml> [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