Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

calorie-lookup卡路里查找

Agent Skill

calorie-lookup 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

10,763

周安装

444

GitHub Stars

2

下载量

3,516
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install calorie-lookup

简介

Spoonaular营养查询与热量消耗(主要数据来源,USDA后备)。支持搜索优化、烹饪效率、交叉验证及图像识别。需要API密钥环境变量SPOONACULAR_API_KEY 或 USDA_FDC_API_KEY。

SKILL.md

name
calorie-lookup
version
0.3.0
description
Spoonacular 营养查询与热量估算(主数据源,USDA 后备)。支持搜寻优化、烹饪系数、交叉验证及图像识别。需要 API key 环境变量 SPOONACULAR_API_KEY 或 USDA_FDC_API_KEY。
description_en
Spoonacular nutrition lookup & meal calorie estimation (primary, USDA fallback). Supports search optimization, cooking modifiers, cross-validation, and image recognition. Requires env var SPOONACULAR_API_KEY or USDA_FDC_API_KEY.
metadata
{"clawdbot":{"emoji":"🍽️","requires":{"env":["SPOONACULAR_API_KEY","USDA_FDC_API_KEY"],"python":["requests"]}}}

Calorie Lookup (Spoonacular + USDA)

使用 / Usage

  • 入口函数 / Entry functions:scripts/core.py 中的 lookup_meal(text, meal_type) / lookup_food(name, qty, unit)
  • 结果为 JSON / Returns JSON:items + totals + questions(最多 2 个追问 / up to 2 follow-up questions)

配置 / Configuration

  • 环境变量 / Env var:SPOONACULAR_API_KEY(主数据源)/ USDA_FDC_API_KEY(后备)/ SPOONACULAR_API_KEY (primary) or USDA_FDC_API_KEY (fallback)
  • 缓存 / Cache:CALORIE_SKILL_CACHE_DB(默认本地 sqlite / defaults to local sqlite)

结构说明 / Module Structure

  • scripts/core.py:主逻辑(Spoonacular 主路由 + USDA 后备)/ Main logic (Spoonacular primary routing + USDA fallback)
  • scripts/spoonacular.py:Spoonacular API 封装 / Spoonacular API wrapper
  • scripts/translate.py:中英食物名字典(加速缓存,非主翻译路径)/ CN→EN dictionary (acceleration cache, not the primary translation path)
  • scripts/usda_fdc.py:USDA API 封装 + 错误处理 / USDA API wrapper + error handling
  • scripts/parser.py:文本解析 / Text parsing
  • scripts/units.py:默认换算表(常改)/ Unit conversion & portion defaults
  • scripts/cache.py:SQLite 缓存 / SQLite cache
  • scripts/cooking.py:烹饪热量修正系数(USDA 数据源)/ Cooking calorie modifiers (USDA source)

行为约束 / Behavior Constraints

  • 缺单位或无法换算:返回 questions 提示补充 / Missing unit or unconvertible: returns questions prompting user
  • 401/403/429/5xx:返回明确错误信息(适合直接在 Discord 显示)/ Returns clear error messages (suitable for Discord display)

工作流(含 Sub-agent 翻译 + 分解)/ Workflow (with Sub-agent Translation + Decomposition)

  • sub-agent 描述位于本 skill 的 agents/ 目录 / Sub-agent contracts are in agents/
  • agents/calorie-lookup-image-recognizer.md:图像识别 Sub-agent 合约 / Image Recognizer Sub-agent contract
  • 非英语输入 → 触发 Decomposer Sub-agent(LLM 翻译 + 分解)/ Non-English input → triggers Decomposer Sub-agent (LLM translation + decomposition)
  • 复合菜/套餐/模糊描述 → 触发 Decomposer Sub-agent / Composite dishes / set meals / ambiguous descriptions → triggers Decomposer
  • 纯英语简单食材 → 直接调用 lookup_meal / Plain English simple ingredients → calls lookup_meal directly
  • 见 / See WORKFLOW.md 与 / and HOOKS.md
  • 分解后逐条调用 lookup_food(英文 name),再汇总 totals / After decomposition, calls lookup_food per item (English name), then aggregates totals
  • scripts/translate.py 字典仅作为 Python 层的加速缓存,不替代 LLM 翻译 / The dictionary is only an acceleration cache, not a replacement for LLM translation
  • 仍缺关键量化 → 追问最多 2 条 / Still missing key quantity data → up to 2 follow-up questions

路径规范 / Path Convention

  • 本 skill 内所有引用均使用相对路径 / All references within this skill use relative paths(例如 / e.g. scripts/core.pyagents/references/usda_fdc.md

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

OpenClaw

90.62%
按下载量换算3,186

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

未展示

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

来源信息

继续浏览同类 Skills