Calorie Counter for Openclaw

A streamlined Python-based tool for tracking daily nutrition, protein intake, and body weight via an AI agent.

cnqso
v1.0.0
Feb 5, 2026
1
3.3k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install calorie-counter

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install calorie-counter using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Calorie Counter?

The Calorie Counter is a specialized utility designed for health-conscious developers and users who want to manage their fitness data directly through an AI interface. By leveraging Openclaw Skills, this tool provides a structured way to log meals, monitor protein goals, and record weight changes without leaving the command line or agent environment.

Built with Python and SQLite, it offers a persistent storage solution that ensures your data remains private and accessible. Whether you are bulking, cutting, or maintaining, this skill transforms your AI agent into a personal nutrition assistant capable of providing instant feedback on your progress.

Calorie Counter Use Cases

  • Log daily food intake including calorie and protein counts.
  • Set and maintain personalized daily caloric goals.
  • Track body weight trends over time in pounds.
  • Analyze nutritional history over 7 or 30-day periods.

How Calorie Counter Works

  1. The user provides food information or weight data to the AI agent.
  2. The agent parses the input and, if necessary, estimates missing metrics like protein based on standardized food type ratios.
  3. The skill executes a Python script to interact with the local calorie_data.db SQLite database.
  4. Immediate feedback is returned to the user, displaying total consumption, remaining calories for the day, and progress percentages.

Calorie Counter Setup

To get started with this skill, ensure you have Python 3.7+ installed and navigate to the skill directory to initialize your goal:

# Navigate to the skill folder
cd workspace/calorie-counter/

# Set your daily calorie goal (e.g., 2000)
python3 scripts/calorie_tracker.py goal 2000

Calorie Counter Data Schema & Taxonomy

The skill manages data within a SQLite database named calorie_data.db containing three primary tables:

Table Description
entries Stores food_name, calories (INT), protein (INT), and date.
daily_goal A single-row table storing the persistent integer calorie target.
weight_log Records weight_lbs (REAL) with decimal support and auto-timestamps.

Calorie Counter Advanced Features

  • Intelligent protein estimation guidelines for various food groups (meats, dairy, plants).
  • Historical data retrieval for the last 7 or 30 days to monitor long-term trends.
  • Zero-config database setup that initializes automatically upon first use.
  • Granular entry management allowing users to list and delete specific logs by ID.
  • Built-in unit conversion for weight logging when using Openclaw Skills.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Requires
Github Stars: 0
forks: 0

Featured*