据 AlphaMoat 统计,截至 2026-09,Calorie Counter 累计下载 3,388 次、获 1 个星标,在全部 5,078 个 AI 技能中排名第 3,309 位,在「生活服务」分类(246 个)中排名第 162 位。
| 平台 | 累计安装 | 累计下载 | 星标 | 评论 |
|---|---|---|---|---|
| ClawHub ↗ | 101 | 3,308 | 1 | - |
| SkillHub ↗ | 101 | 3,388 | 1 | — |
各平台的计数口径不同,统计时间不一致。
它提供添加食物、查看每日汇总、设置目标、记录体重、查看历史和删除条目的命令。数据库为本地文件且以明文保存,包含个人健康与饮食信息;记录模糊或仅在谈论食物时不应自动写入,先确认用户意图,并保护数据库文件。该工具是记录器,不构成医疗或营养诊断。
资料发布于 2026-10-29
以下是根据技能文档生成的示例,不代表实际运行结果。
2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。
| 月份 | 累计下载 | 环比 | 星标 |
|---|---|---|---|
| 2026-09 | 3,388 | — | 1 |
| 2026-08 | 3,172 | +4.7% | 1 |
| 2026-07 | 3,030 | — | 1 |
| 2026-05 | 2,489 | — | 1 |
| 2026-03 | 2,006 | — | 1 |
以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。
---
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 - **Manual Entry**: Add food with calories and protein - **Protein Tracking**: Monitor daily protein intake - **Daily Goals**: Set custom calorie targets - **Weight Tracking**: Log weight in pounds - **Instant Feedback**: See totals immediately after adding food - **History**: View past days and trends ## Usage ### Adding Food ```bash 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. ### Viewing Today's Summary ```bash python scripts/calorie_tracker.py summary ``` Shows: - All entries for today - Total calories and protein consumed - Daily goal and remaining calories - Progress percentage ### Setting Goals ```bash python scripts/calorie_tracker.py goal 2000 ``` Sets the daily calorie goal (persists). ### Weight Tracking ```bash python scripts/calorie_tracker.py weight 175 python scripts/calorie_tracker.py weight-history ``` Weight is in pounds (decimals allowed: 175.5). ### Viewing History ```bash # Last 7 days python scripts/calorie_tracker.py history # Last 30 days python scripts/calorie_tracker.py history 30 ``` ### Deleting Entries ```bash # List entries to get ID python scripts/calorie_tracker.py list # Delete by ID python scripts/calorie_tracker.py delete 42 ``` ## Database SQLite database: `calorie_data.db` ### Tables **entries** - Food log - id (INTEGER) - Auto-increment - date (TEXT) - YYYY-MM-DD - food_name (TEXT) - calories (INTEGER) - protein (INTEGER) - created_at (TIMESTAMP) - Automatic **daily_goal** - Single calorie target - id (INTEGER) - Always 1 - calorie_goal (INTEGER) **weight_log** - Weight tracking - id (INTEGER) - Auto-increment - date (TEXT) - YYYY-MM-DD - weight_lbs (REAL) - Pounds with decimals - created_at (TIMESTAMP) - Automatic ## 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: - User: "I had a chicken breast for lunch, about 165 calories" - Estimate protein (chicken is ~30g per 165 cal) - Run: `python3 workspace/calorie-counter/scripts/calorie_tracker.py add "chicken breast" 165 30` ### 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: - **Lean meats** (chicken, turkey): ~0.30g per calorie - **Fish**: ~0.25g per calorie - **Red meat**: ~0.20g per calorie - **Eggs**: ~0.12g per calorie (1 egg = 70 cal, 6g protein) - **Greek yogurt**: ~0.10g per calorie - **Nuts**: ~0.04g per calorie - **Bread/pasta**: ~0.03g per calorie - **Fruits**: ~0.01g per calorie or less - **Vegetables**: ~0.02-0.04g per calorie When uncertain, estimate conservatively or ask the user. ## Notes - Calories and protein are integers (no decimals) - Weight is in pounds (decimals allowed) - Database created automatically on first use - All times in local timezone - Dates in YYYY-MM-DD format - Time shown in lists is from created_at timestamp (HH:MM format) ## Example Session ```bash # 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 ```
用 curl 直接向公共天气服务取当前天气与预报的技能。
在局域网里发现并控制 Sonos 音箱的命令行工具。
以六爻占卜方式作答的技能。
用本地 JSON 记录饮水量与睡眠的技能。
在本地同步并查询 CalDAV 日历的命令行技能。
在 macOS 上通过 remindctl 管理提醒事项的技能。
travel-cn 聚合去哪儿/携程/飞猪等中国旅行平台的数据查询,覆盖机票、酒店、火车票、景点门票与行程规划。
在终端里搜索与控制 Spotify 播放的技能。
数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。