饮食追踪

diet

by BytesAgain

Track food and nutrition. Use when logging meals, checking calories, tracking protein/carbs/fat, or generating diet reports.

4.5k其他未扫描2026年3月23日

安装

claude skill add --url github.com/openclaw/skills/tree/main/skills/ckchzh/diet

文档

Diet — Meal & Nutrition Tracker

Track what you eat, monitor macros, plan meals, and review nutrition trends.

Commands

log — Record a meal

bash
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
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
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
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
bash scripts/script.sh water <ml> [YYYY-MM-DD]

Records water intake in milliliters. Defaults to today.

report — Nutrition report

bash
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

相关 Skills

Claude API

by anthropic

热门

Build, debug, and optimize Claude API / Anthropic SDK apps. Apps built with this skill should include prompt caching. Also handles migrating existing Claude API code between Claude model versions (4.5 → 4.6, 4.6 → 4.7, retired-model replacements). TRIGGER when: code imports `anthropic`/`@anthropic-ai/sdk`; user asks for the Claude API, Anthropic SDK, or Managed Agents; user adds/modifies/tunes a Claude feature (caching, thinking, compaction, tool use, batch, files, citations, memory) or model (Opus/Sonnet/Haiku) in a file; questions about prompt caching / cache hit rate in an Anthropic SDK project. SKIP: file imports `openai`/other-provider SDK, filename like `*-openai.py`/`*-generic.py`, provider-neutral code, general programming/ML.

其他
安全139.0k

并行代理

by axelhu

热门

Use when facing 2 or more independent tasks that can be worked on without shared state - dispatches parallel subagents using sessions_spawn for concurrent investigation and execution, adapted for OpenClaw

其他
未扫描4.5k

高光制作器

by bwbernardweston18

热门

>

其他
未扫描4.5k

评论