calorie-counter

Verified·Scanned 2/17/2026

The skill provides local calorie, protein, and weight tracking and stores data in workspace/calorie-counter/calorie_data.db, with a CLI at workspace/calorie-counter/scripts/calorie_tracker.py. It instructs executing these local commands (e.g., python3 workspace/calorie-counter/scripts/calorie_tracker.py add ...), which is expected and low-risk.

from clawhub.ai·v267a4e2·23.1 KB·0 installs
Scanned from 1.0.0 at 267a4e2 · Transparency log ↗
$ vett add clawhub.ai/cnqso/calorie-counter

Calorie Counter 🍎

Simple, reliable calorie and protein tracking for OpenClaw agents.

Features

  • Manual calorie entry - No unreliable nutrition APIs
  • Protein tracking - Monitor daily protein intake
  • Weight logging - Track weight in pounds
  • Instant feedback - See totals immediately after adding food
  • SQLite database - Reliable, local storage
  • History & trends - View past days and progress

Installation

clawhub install calorie-counter

Or manually clone to your workspace directory.

Requirements

  • Python 3.7+
  • No external dependencies (uses only Python stdlib)

Quick Start

Set Your Daily Goal

python scripts/calorie_tracker.py goal 2000

Add Food

python scripts/calorie_tracker.py add "chicken breast" 165 31

Check Progress

python scripts/calorie_tracker.py summary

Log Weight

python scripts/calorie_tracker.py weight 175

Agent Usage

When installed, your agent will automatically use this skill when you mention food or ask about calories.

Example conversation:

You: "I just ate a turkey sandwich, about 450 calories and 30g protein"
Agent: [runs add command]
       "✓ Added - you've consumed 450 cal today, 1550 remaining"

You: "How many calories do I have left?"
Agent: [runs summary command]
       "You have 1550 calories remaining (22.5% of goal consumed)"

Database

Data stored in calorie_data.db (SQLite):

  • entries - Food log with calories and protein
  • daily_goal - Your calorie target
  • weight_log - Weight measurements in pounds

Commands

add <food> <calories> <protein>   # Add food entry
delete <id>                       # Delete entry
list                              # List today's entries
summary                           # Show daily summary
goal <calories>                   # Set daily goal
weight <lbs>                      # Log weight
weight-history [days]             # Show weight history
history [days]                    # Show calorie history

Why This Skill?

vs. Other calorie trackers:

  • ✅ No API keys or external services
  • ✅ Works offline
  • ✅ Simple manual entry (you control accuracy)
  • ✅ Protein tracking included
  • ✅ Instant feedback on food entry
  • ✅ Clean, portable SQLite storage
  • ✅ No security vulnerabilities

vs. diet-tracker skill:

  • ✅ Actually works (no broken APIs)
  • ✅ Portable (no hardcoded paths)
  • ✅ English language
  • ✅ Secure (parameterized SQL)
  • ✅ Simpler, cleaner code

Documentation

See SKILL.md for full documentation and agent instructions.

License

MIT

Author

Built with Claude Code for OpenClaw