← 返回 Skills 市场
aaa2531349

calorie1-detective-v3

作者 aaa2531349 · GitHub ↗ · v3.0.2
cross-platform ⚠ suspicious
379
总下载
0
收藏
1
当前安装
3
版本数
在 OpenClaw 中安装
/install calorie1
功能描述
热量侦探 v2.0.0 - AI 食物卡路里计算器。通过 Kimi 视觉识别照片中的食物,自动计算卡路里、蛋白质、碳水、脂肪等营养数据。内置常见食物营养数据库。用于健康饮食管理、减肥健身追踪。再隐蔽的热量也逃不过我的眼睛!
使用说明 (SKILL.md)

🔍 热量侦探 v3.0.0

🕵️ 再隐蔽的热量也逃不过我的眼睛!

通过 Kimi 视觉识别技术,像侦探一样找出食物中隐藏的热量,自动计算卡路里和营养成分,帮助你更好地管理饮食健康。

✨ 功能特性

  1. 📸 拍照识别 - 使用 Kimi 视觉 API 自动识别食物
  2. 🔥 卡路里计算 - 自动计算总卡路里和宏量营养素
  3. 📊 营养报告 - 生成详细的营养分析报告
  4. 💡 健康建议 - 提供饮食改进建议
  5. 🌐 中文优化 - 专为中餐优化,识别更准确
  6. 💾 本地数据库 - 内置 100+ 种常见食物营养数据

🍎 内置食物数据库

已内置 100+ 种常见食物营养数据(每 100 克):

类别 食物举例
🍚 主食 米饭、面条、馒头、面包、土豆
🥚 蛋白质 鸡蛋、牛奶、鸡肉、猪肉、牛肉、鱼、虾
🍎 水果 苹果、香蕉、橙子、葡萄、草莓
🥬 蔬菜 青菜、番茄、黄瓜、胡萝卜、西兰花
🍔 快餐 汉堡、薯条、炸鸡、披萨

🔄 扩展开发

添加新食物

编辑 src/calorie_calculator.py 中的 COMMON_FOODS 字典:

COMMON_FOODS = {
    '你的食物': {'calories': 100, 'protein': 5, 'carbs': 15, 'fat': 3},
    ...
}

📝 更新日志

v3.0.0 (2026-03-04) - 正式发布版

  • ✅ Kimi 视觉识别支持(moonshot-v1-8k-vision-preview)
  • ✅ 本地食物营养数据库(100+ 种食物)
  • ✅ 营养报告生成
  • ✅ 健康饮食建议
  • ✅ 中文食物识别优化
  • ✅ 品牌:热量侦探
  • ✅ 测试通过(避风塘炒虾、油焖大虾)

v2.0.0 (2026-03-03) - 重大更新

  • ✅ Kimi 视觉识别支持
  • ✅ 本地食物营养数据库
  • ✅ 营养报告生成

v1.0.0 (2026-03-03) - 正式发布版

  • ✅ 基础功能实现

⚠️ 免责声明

  • 本工具提供的营养数据仅供参考,不构成医疗或营养建议
  • 实际食物营养含量可能因烹饪方式、食材来源等因素有所不同
  • 如有特殊饮食需求或健康问题,请咨询专业营养师或医生
  • 开发者不对使用本工具造成的任何损失承担责任

📄 License

MIT

🤝 贡献

欢迎提交 Issue 和 Pull Request!

📧 联系方式

如有问题或建议,请提交 Issue 或联系开发者。


🕵️ 热量侦探,再隐蔽的热量也逃不过我的眼睛! 🍽️

安全使用建议
This skill's behavior mostly matches its description, but it reads local config files and environment variables for API keys even though the metadata declared none. Before installing: (1) Inspect config/config.yaml and remove/add any secrets only intentionally (prefer env vars to checked-in config files). (2) Do not put sensitive credentials in config/config.local.yaml unless you trust the skill and host. (3) Note the skill will send images (base64) to https://api.moonshot.cn/v1/chat/completions (Kimi) or other configured provider endpoints — confirm you are comfortable with that network traffic. (4) Run the code in a sandbox / with non-production keys first and review data/calorie.log for what is written. (5) If you want to limit exposure, set provider to 'local' and avoid providing API keys so the skill uses its built-in database only.
功能分析
Type: OpenClaw Skill Name: calorie1 Version: 3.0.2 The OpenClaw AgentSkills bundle 'calorie1' is a food calorie calculator that uses Kimi Vision API for image recognition and a local database for nutrition data. All files, including `SKILL.md`, `run.sh`, `test.sh`, `src/calorie_calculator.py`, `config/config.yaml`, and `requirements.txt`, align with the stated purpose. API keys are securely handled via environment variables, `yaml.safe_load` is used for configuration, and LLM output is processed as text without execution. There are no signs of data exfiltration, malicious execution, persistence, prompt injection, or obfuscation.
能力评估
Purpose & Capability
The code, config, and SKILL.md align with the stated purpose (image recognition via a vision API + local nutrition DB). Optional support for multiple providers (Kimi, OpenAI, Nutritionix, FatSecret) is reasonable for a flexible tool. However the package metadata declared no required environment variables/credentials while the code expects/reads API keys (e.g., KIMI_API_KEY, USER_KIMI_API_KEY, OPENAI_API_KEY, NUTRITIONIX keys) and a local config file — this mismatch is noteworthy.
Instruction Scope
Runtime instructions and shipped scripts (run.sh, test.sh) simply run the Python calculator, but the Python code will load config/config.local.yaml if present, read environment variables for API keys, and write logs to data/calorie.log. The SKILL.md and metadata do not explicitly call out those file reads/writes or all env-vars the code may consult, giving the agent more filesystem and network access than the metadata implies.
Install Mechanism
There is no install spec (instruction-only install), and dependencies are declared in requirements.txt. No external downloads or obscure installers are used. Risk from installation is low, but running the included Python code will perform network calls.
Credentials
The code uses multiple optional API keys and environment variables (KIMI_API_KEY, USER_KIMI_API_KEY, OPENAI_API_KEY, NUTRITIONIX_APP_ID/KEY, FATSECRET_KEY) and will prefer a local config file if present. While these are plausible for supporting different providers, the registry metadata declares no required secrets and no primary credential — that under-declaration reduces transparency and may cause accidental credential exposure if a user places secrets in config files or env variables without realizing the skill will read them.
Persistence & Privilege
The skill does not request always:true, does not modify other skills, and only writes a local log file (data/calorie.log). It can make outbound network requests to the configured vision API endpoint but does not request elevated platform privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install calorie1
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /calorie1 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v3.0.2
- 新增对 Kimi 视觉识别(moonshot-v1-8k-vision-preview)的支持 - 优化并扩充本地食物营养数据库(含 100+ 种食物,类别更新) - 进一步优化中文食物识别,专注中餐场景 - 更新品牌说明与功能描述,版本号同步至 v3.0.0
v2.0.1
- 更新日志补充,新增 v2.0.0 重大更新版本信息 - 展示了所有主要功能特性,无具体功能变动 - 其余功能说明、数据库描述和免责声明保持不变
v1.0.0
📸 拍照识别 - 上传食物照片,AI 自动识别食物种类 🔥 卡路里计算 - 自动计算总卡路里和宏量营养素 📊 营养报告 - 生成详细的营养分析报告 💡 健康建议 - 提供饮食改进建议 🌐 中文优化 - 专为中餐优化,识别更准确 💾 本地数据库 - 内置常见食物营养数据 每人每天限制最多5次
元数据
Slug calorie1
版本 3.0.2
许可证
累计安装 1
当前安装数 1
历史版本数 3
常见问题

calorie1-detective-v3 是什么?

热量侦探 v2.0.0 - AI 食物卡路里计算器。通过 Kimi 视觉识别照片中的食物,自动计算卡路里、蛋白质、碳水、脂肪等营养数据。内置常见食物营养数据库。用于健康饮食管理、减肥健身追踪。再隐蔽的热量也逃不过我的眼睛!. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 379 次。

如何安装 calorie1-detective-v3?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install calorie1」即可一键安装,无需额外配置。

calorie1-detective-v3 是免费的吗?

是的,calorie1-detective-v3 完全免费(开源免费),可自由下载、安装和使用。

calorie1-detective-v3 支持哪些平台?

calorie1-detective-v3 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 calorie1-detective-v3?

由 aaa2531349(@aaa2531349)开发并维护,当前版本 v3.0.2。

💬 留言讨论