skills$openclaw/diet-tracker
yonghaozhao7225.6k

by yonghaozhao722

diet-tracker – OpenClaw Skill

diet-tracker is an OpenClaw Skills integration for data analytics workflows. Tracks daily diet and calculates nutrition information to help achieve weight loss goals. Use when the user provides information about their meals and wants to track calorie and macronutrient intake. Also used to remind the user to log meals. This skill reads user's height, weight, age, gender and activity levels from USER.md to predict TDEE. Then based on daily calorie surplus or deficit, extrapolate weight changes.

5.6k stars4.5k forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026data analytics

Skill Snapshot

namediet-tracker
descriptionTracks daily diet and calculates nutrition information to help achieve weight loss goals. Use when the user provides information about their meals and wants to track calorie and macronutrient intake. Also used to remind the user to log meals. This skill reads user's height, weight, age, gender and activity levels from USER.md to predict TDEE. Then based on daily calorie surplus or deficit, extrapolate weight changes. OpenClaw Skills integration.
owneryonghaozhao722
repositoryyonghaozhao722/diet-tracker
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @yonghaozhao722/diet-tracker
last updatedFeb 7, 2026

Maintainer

yonghaozhao722

yonghaozhao722

Maintains diet-tracker in the OpenClaw Skills directory.

View GitHub profile
File Explorer
7 files
.
references
food_database.json
2 B
scripts
get_food_nutrition.py
5.6 KB
update_memory.py
1.1 KB
_meta.json
284 B
SKILL.md
3.1 KB
SKILL.md

name: diet-tracker description: Tracks daily diet and calculates nutrition information to help achieve weight loss goals. Use when the user provides information about their meals and wants to track calorie and macronutrient intake. Also used to remind the user to log meals. This skill reads user's height, weight, age, gender and activity levels from USER.md to predict TDEE. Then based on daily calorie surplus or deficit, extrapolate weight changes.

Diet Tracker

This skill helps you track your daily diet and achieve your weight loss goals.

Usage

  1. The skill will read User related info in USER.md to get:

    • Your daily calorie target
    • Your height, weight, age, gender, and activity level to calculate TDEE.
  2. When you provide information about your meals (e.g., "I had a sandwich for lunch"), this skill will:

    • Identify the food items in your meal.
    • Use the get_food_nutrition.py script to fetch nutrition information (calories, protein, carbs, fat) from the web.
    • Add the meal information and nutrition details to the current day's memory file (memory/YYYY-MM-DD.md).
    • Calculate the total calories and macronutrients for the meal.
    • Update the total daily intake and remaining calorie budget.
      • Also predict weight change based on daily calories.
  3. When you ask about your remaining calorie budget, this skill will:

    • Read the current day’s memory file.
    • Calculate the total calories consumed so far.
    • Subtract the consumed calories from your daily calorie goal (found in USER.md).
    • Report the remaining calories.
      • Also predict weight change based on accumulated daily calories.

Scripts

  • scripts/get_food_nutrition.py: Fetches nutrition information for a given food item from the web and calculates TDEE.
  • scripts/update_memory.py: Updates the current day’s memory file with meal information and nutrition details.

Data

  • references/food_database.json: A database of common food items and their nutrition information (used as a fallback).

Workflow

  1. Diet-tracker skill read User related info from USER.md to get:
    • Daily calorie target
    • Height, weight, age, gender, and activity level. Activity levels:
      • Sedentary (little or no exercise)
      • Lightly active (light exercise/sports 1-3 days/week)
      • Moderately active (moderate exercise/sports 3-5 days/week)
      • Very active (hard exercise/sports 6-7 days a week)
      • Extra active (very hard exercise/sports & physical job or 2x training)
  2. User provides meal information.
  3. Skill identifies food items.
  4. Skill uses scripts/get_food_nutrition.py to fetch nutrition information. If the information is not available online, the skill will use the references/food_database.json file.
  5. Skill uses scripts/update_memory.py to update the current day’s memory file.
  6. Skill calculates the total calories and macronutrients for the meal and updates the daily intake.
  7. Skill reports the meal information, remaining calorie budget, and predicted weight change range to the user.

Remember to use exec cat command to confirm file type.

README.md

No README available.

Permissions & Security

Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.

Requirements

  • OpenClaw CLI installed and configured.
  • Language: Markdown
  • License: MIT
  • Topics:

FAQ

How do I install diet-tracker?

Run openclaw add @yonghaozhao722/diet-tracker in your terminal. This installs diet-tracker into your OpenClaw Skills catalog.

Does this skill run locally or in the cloud?

OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.

Where can I verify the source code?

The source repository is available at https://github.com/openclaw/skills/tree/main/skills/yonghaozhao722/diet-tracker. Review commits and README documentation before installing.