Install
openclaw skills install calorie-lookupSpoonacular 营养查询与热量估算(主数据源,USDA 后备)。支持搜寻优化、烹饪系数、交叉验证及图像识别。需要 API key 环境变量 SPOONACULAR_API_KEY 或 USDA_FDC_API_KEY。
openclaw skills install calorie-lookupscripts/core.py 中的 lookup_meal(text, meal_type) / lookup_food(name, qty, unit)SPOONACULAR_API_KEY(主数据源)/ USDA_FDC_API_KEY(后备)/ SPOONACULAR_API_KEY (primary) or USDA_FDC_API_KEY (fallback)CALORIE_SKILL_CACHE_DB(默认本地 sqlite / defaults to local sqlite)scripts/core.py:主逻辑(Spoonacular 主路由 + USDA 后备)/ Main logic (Spoonacular primary routing + USDA fallback)scripts/spoonacular.py:Spoonacular API 封装 / Spoonacular API wrapperscripts/translate.py:中英食物名字典(加速缓存,非主翻译路径)/ CN→EN dictionary (acceleration cache, not the primary translation path)scripts/usda_fdc.py:USDA API 封装 + 错误处理 / USDA API wrapper + error handlingscripts/parser.py:文本解析 / Text parsingscripts/units.py:默认换算表(常改)/ Unit conversion & portion defaultsscripts/cache.py:SQLite 缓存 / SQLite cachescripts/cooking.py:烹饪热量修正系数(USDA 数据源)/ Cooking calorie modifiers (USDA source)questions 提示补充 / Missing unit or unconvertible: returns questions prompting useragents/ 目录 / Sub-agent contracts are in agents/agents/calorie-lookup-image-recognizer.md:图像识别 Sub-agent 合约 / Image Recognizer Sub-agent contractlookup_meal / Plain English simple ingredients → calls lookup_meal directlyWORKFLOW.md 与 / and HOOKS.mdlookup_food(英文 name),再汇总 totals / After decomposition, calls lookup_food per item (English name), then aggregates totalsscripts/translate.py 字典仅作为 Python 层的加速缓存,不替代 LLM 翻译 / The dictionary is only an acceleration cache, not a replacement for LLM translationscripts/core.py、agents/、references/usda_fdc.md)