跟踪每日卡路里和蛋白质摄入量、设定目标并记录体重。当用户提到他们吃的食物、想要知道剩余卡路里或需要跟踪体重时使用。将数据存储在 SQLite 中并自动每日汇总。
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install calorie-counter或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install calorie-counter⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/calorie-counter/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- 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" } } } ---
Simple, reliable calorie and protein tracking with SQLite database.
python scripts/calorie_tracker.py add "chicken breast" 165 31
python scripts/calorie_tracker.py add "banana" 100 1
Shows immediate feedback with today's totals and remaining calories.
python scripts/calorie_tracker.py summary
Shows:
python scripts/calorie_tracker.py goal 2000
Sets the daily calorie goal (persists).
python scripts/calorie_tracker.py weight 175
python scripts/calorie_tracker.py weight-history
Weight is in pounds (decimals allowed: 175.5).
# Last 7 days
python scripts/calorie_tracker.py history
# Last 30 days
python scripts/calorie_tracker.py history 30
# List entries to get ID
python scripts/calorie_tracker.py list
# Delete by ID
python scripts/calorie_tracker.py delete 42
SQLite database: calorie_data.db
entries - Food log
daily_goal - Single calorie target
weight_log - Weight tracking
Important: The skill is located at workspace/calorie-counter/ in your agent's workspace. All commands should use this path prefix.
python3 workspace/calorie-counter/scripts/calorie_tracker.py add "food" CALORIES PROTEINExample:
python3 workspace/calorie-counter/scripts/calorie_tracker.py add "chicken breast" 165 30python3 workspace/calorie-counter/scripts/calorie_tracker.py summarypython3 workspace/calorie-counter/scripts/calorie_tracker.py goal CALORIESpython3 workspace/calorie-counter/scripts/calorie_tracker.py weight POUNDSpython3 workspace/calorie-counter/scripts/calorie_tracker.py list to show IDspython3 workspace/calorie-counter/scripts/calorie_tracker.py delete IDIf user doesn't specify protein, estimate based on food type:
When uncertain, estimate conservatively or ask the user.
# 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 lbs安装 卡路里计数器 后,可以对 AI 说这些话来触发它
Help me get started with Calorie Counter
Explains what Calorie Counter does, walks through the setup, and runs a quick demo based on your current project
Use Calorie Counter to track daily calorie and protein intake, set goals, and log weight
Invokes Calorie Counter with the right parameters and returns the result directly in the conversation
What can I do with Calorie Counter in my data & analytics workflow?
Lists the top use cases for Calorie Counter, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/calorie-counter/ 目录(个人级,所有项目可用),或 .claude/skills/calorie-counter/(项目级)。重启 AI 客户端后,用 /calorie-counter 主动调用,或让 AI 根据上下文自动发现并使用。
卡路里计数器 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
卡路里计数器 可免费安装使用。请查阅仓库了解许可证信息。
跟踪每日卡路里和蛋白质摄入量、设定目标并记录体重。当用户提到他们吃的食物、想要知道剩余卡路里或需要跟踪体重时使用。将数据存储在 SQLite 中并自动每日汇总。
卡路里计数器 属于「Data & Analytics」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my data & analytics tasks using Calorie Counter
Identifies repetitive steps in your workflow and sets up Calorie Counter to handle them automatically