Token导航 LogoToken导航TokenDH.com
效率只读clawhub未标认证来源可访问clear审计通过

calorie-counter卡路里计数器

Agent Skill

calorie-counter 用于处理数据库查询、表结构、迁移和数据维护任务,适合在 OpenClaw 中需要分析 schema、编写 SQL 或排查数据问题时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

67,969

周安装

2,804

GitHub Stars

1

下载量

22,208
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:calorie-counter(卡路里计数器)
来源仓库:https://github.com/cnqso/calorie-counter
安装命令:
openclaw skills install calorie-counter
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install calorie-counter

简介

跟踪每日卡路里和蛋白质摄入量、设定目标并记录体重。当用户提到他们吃的食物、想要知道剩余卡路里或需要跟踪体重时使用。将数据存储在 SQLite 中并自动每日汇总。

SKILL.md

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

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

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

python scripts/calorie_tracker.py goal 2000

Sets the daily calorie goal (persists).

Weight Tracking

python scripts/calorie_tracker.py weight 175
python scripts/calorie_tracker.py weight-history

Weight 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 30

Deleting Entries

# 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

# 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

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

74.45%
按下载量换算16,534

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

未展示

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills