Calorie Counter
name: calorie-counter
by cnqso · published 2026-03-22
$ claw add gh:cnqso/cnqso-calorie-counter---
name: calorie-counter
description: Track daily calorie and protein intake, set goals, and log weight. Use when user mentions food they ate, wants to know remaining calories, or needs to track weight. Stores data in SQLite with automatic daily totals.
metadata: { "openclaw": { "emoji": "🍎", "requires": { "python": ">=3.7" } } }
---
# Calorie Counter
Simple, reliable calorie and protein tracking with SQLite database.
Features
Usage
Adding Food
python scripts/calorie_tracker.py add "chicken breast" 165 31
python scripts/calorie_tracker.py add "banana" 100 1Shows immediate feedback with today's totals and remaining calories.
Viewing Today's Summary
python scripts/calorie_tracker.py summaryShows:
Setting Goals
python scripts/calorie_tracker.py goal 2000Sets the daily calorie goal (persists).
Weight Tracking
python scripts/calorie_tracker.py weight 175
python scripts/calorie_tracker.py weight-historyWeight is in pounds (decimals allowed: 175.5).
Viewing History
# Last 7 days
python scripts/calorie_tracker.py history
# Last 30 days
python scripts/calorie_tracker.py history 30Deleting Entries
# List entries to get ID
python scripts/calorie_tracker.py list
# Delete by ID
python scripts/calorie_tracker.py delete 42Database
SQLite database: `calorie_data.db`
Tables
**entries** - Food log
**daily_goal** - Single calorie target
**weight_log** - Weight tracking
Agent Instructions
**Important:** The skill is located at `workspace/calorie-counter/` in your agent's workspace. All commands should use this path prefix.
When user mentions food:
1. Extract food name, calories, and protein (estimate if not provided)
2. Run: `python3 workspace/calorie-counter/scripts/calorie_tracker.py add "food" CALORIES PROTEIN`
3. The command outputs immediate totals (no need to run summary separately)
Example:
When user wants remaining calories:
1. Run: `python3 workspace/calorie-counter/scripts/calorie_tracker.py summary`
When user sets a goal:
1. Run: `python3 workspace/calorie-counter/scripts/calorie_tracker.py goal CALORIES`
When user logs weight:
1. Convert to pounds if needed (1 kg ≈ 2.205 lbs)
2. Run: `python3 workspace/calorie-counter/scripts/calorie_tracker.py weight POUNDS`
When user wants to delete entry:
1. Run: `python3 workspace/calorie-counter/scripts/calorie_tracker.py list` to show IDs
2. Run: `python3 workspace/calorie-counter/scripts/calorie_tracker.py delete ID`
Protein Estimation Guide
If user doesn't specify protein, estimate based on food type:
When uncertain, estimate conservatively or ask the user.
Notes
Example Session
# Set goal
$ python scripts/calorie_tracker.py goal 2000
✓ Set daily goal: 2000 cal
# Add breakfast
$ python scripts/calorie_tracker.py add "oatmeal" 150 5
✓ Added: oatmeal (150 cal, 5g protein)
Entry ID: 1
Today: 150 / 2000 cal (remaining: 1850) | Protein today: 5g | Entries: 1
# Add lunch
$ python scripts/calorie_tracker.py add "grilled chicken salad" 350 45
✓ Added: grilled chicken salad (350 cal, 45g protein)
Entry ID: 2
Today: 500 / 2000 cal (remaining: 1500) | Protein today: 50g | Entries: 2
# Check summary
$ python scripts/calorie_tracker.py summary
============================================================
DAILY SUMMARY - 2026-02-05
============================================================
Entries: 2
Total consumed: 500 cal | 50g protein
Daily goal: 2000 cal
Remaining: 1500 cal
25.0% of goal consumed
============================================================
# Log weight
$ python scripts/calorie_tracker.py weight 175.5
✓ Logged weight: 175.5 lbsMore tools from the same signal band
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
Sign plugins, rotate agent credentials without losing identity, and publicly attest to plugin behavior with verifiable claims and authenticated transfers.
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your...