{
  "schemaVersion": "1.0",
  "item": {
    "slug": "calorie-lookup",
    "name": "Calorie Lookup",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/LiuZX886/calorie-lookup",
    "canonicalUrl": "https://clawhub.ai/LiuZX886/calorie-lookup",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/calorie-lookup",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=calorie-lookup",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "AGENTS.md",
      "HOOKS.md",
      "README.md",
      "SKILL.md",
      "WORKFLOW.md",
      "agents/README.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/calorie-lookup"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/calorie-lookup",
    "agentPageUrl": "https://openagent3.xyz/skills/calorie-lookup/agent",
    "manifestUrl": "https://openagent3.xyz/skills/calorie-lookup/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/calorie-lookup/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "使用 / Usage",
        "body": "入口函数 / Entry functions：scripts/core.py 中的 lookup_meal(text, meal_type) / lookup_food(name, qty, unit)\n结果为 JSON / Returns JSON：items + totals + questions（最多 2 个追问 / up to 2 follow-up questions）"
      },
      {
        "title": "配置 / Configuration",
        "body": "环境变量 / Env var：SPOONACULAR_API_KEY（主数据源）/ USDA_FDC_API_KEY（后备）/ SPOONACULAR_API_KEY (primary) or USDA_FDC_API_KEY (fallback)\n缓存 / Cache：CALORIE_SKILL_CACHE_DB（默认本地 sqlite / defaults to local sqlite）"
      },
      {
        "title": "结构说明 / Module Structure",
        "body": "scripts/core.py：主逻辑（Spoonacular 主路由 + USDA 后备）/ Main logic (Spoonacular primary routing + USDA fallback)\nscripts/spoonacular.py：Spoonacular API 封装 / Spoonacular API wrapper\nscripts/translate.py：中英食物名字典（加速缓存，非主翻译路径）/ CN→EN dictionary (acceleration cache, not the primary translation path)\nscripts/usda_fdc.py：USDA API 封装 + 错误处理 / USDA API wrapper + error handling\nscripts/parser.py：文本解析 / Text parsing\nscripts/units.py：默认换算表（常改）/ Unit conversion & portion defaults\nscripts/cache.py：SQLite 缓存 / SQLite cache\nscripts/cooking.py：烹饪热量修正系数（USDA 数据源）/ Cooking calorie modifiers (USDA source)"
      },
      {
        "title": "行为约束 / Behavior Constraints",
        "body": "缺单位或无法换算：返回 questions 提示补充 / Missing unit or unconvertible: returns questions prompting user\n401/403/429/5xx：返回明确错误信息（适合直接在 Discord 显示）/ Returns clear error messages (suitable for Discord display)"
      },
      {
        "title": "工作流（含 Sub-agent 翻译 + 分解）/ Workflow (with Sub-agent Translation + Decomposition)",
        "body": "sub-agent 描述位于本 skill 的 agents/ 目录 / Sub-agent contracts are in agents/\nagents/calorie-lookup-image-recognizer.md：图像识别 Sub-agent 合约 / Image Recognizer Sub-agent contract\n非英语输入 → 触发 Decomposer Sub-agent（LLM 翻译 + 分解）/ Non-English input → triggers Decomposer Sub-agent (LLM translation + decomposition)\n复合菜/套餐/模糊描述 → 触发 Decomposer Sub-agent / Composite dishes / set meals / ambiguous descriptions → triggers Decomposer\n纯英语简单食材 → 直接调用 lookup_meal / Plain English simple ingredients → calls lookup_meal directly\n见 / See WORKFLOW.md 与 / and HOOKS.md\n分解后逐条调用 lookup_food（英文 name），再汇总 totals / After decomposition, calls lookup_food per item (English name), then aggregates totals\nscripts/translate.py 字典仅作为 Python 层的加速缓存，不替代 LLM 翻译 / The dictionary is only an acceleration cache, not a replacement for LLM translation\n仍缺关键量化 → 追问最多 2 条 / Still missing key quantity data → up to 2 follow-up questions"
      },
      {
        "title": "路径规范 / Path Convention",
        "body": "本 skill 内所有引用均使用相对路径 / All references within this skill use relative paths（例如 / e.g. scripts/core.py、agents/、references/usda_fdc.md）"
      }
    ],
    "body": "Calorie Lookup (Spoonacular + USDA)\n使用 / Usage\n入口函数 / Entry functions：scripts/core.py 中的 lookup_meal(text, meal_type) / lookup_food(name, qty, unit)\n结果为 JSON / Returns JSON：items + totals + questions（最多 2 个追问 / up to 2 follow-up questions）\n配置 / Configuration\n环境变量 / Env var：SPOONACULAR_API_KEY（主数据源）/ USDA_FDC_API_KEY（后备）/ SPOONACULAR_API_KEY (primary) or USDA_FDC_API_KEY (fallback)\n缓存 / Cache：CALORIE_SKILL_CACHE_DB（默认本地 sqlite / defaults to local sqlite）\n结构说明 / Module Structure\nscripts/core.py：主逻辑（Spoonacular 主路由 + USDA 后备）/ Main logic (Spoonacular primary routing + USDA fallback)\nscripts/spoonacular.py：Spoonacular API 封装 / Spoonacular API wrapper\nscripts/translate.py：中英食物名字典（加速缓存，非主翻译路径）/ CN→EN dictionary (acceleration cache, not the primary translation path)\nscripts/usda_fdc.py：USDA API 封装 + 错误处理 / USDA API wrapper + error handling\nscripts/parser.py：文本解析 / Text parsing\nscripts/units.py：默认换算表（常改）/ Unit conversion & portion defaults\nscripts/cache.py：SQLite 缓存 / SQLite cache\nscripts/cooking.py：烹饪热量修正系数（USDA 数据源）/ Cooking calorie modifiers (USDA source)\n行为约束 / Behavior Constraints\n缺单位或无法换算：返回 questions 提示补充 / Missing unit or unconvertible: returns questions prompting user\n401/403/429/5xx：返回明确错误信息（适合直接在 Discord 显示）/ Returns clear error messages (suitable for Discord display)\n工作流（含 Sub-agent 翻译 + 分解）/ Workflow (with Sub-agent Translation + Decomposition)\nsub-agent 描述位于本 skill 的 agents/ 目录 / Sub-agent contracts are in agents/\nagents/calorie-lookup-image-recognizer.md：图像识别 Sub-agent 合约 / Image Recognizer Sub-agent contract\n非英语输入 → 触发 Decomposer Sub-agent（LLM 翻译 + 分解）/ Non-English input → triggers Decomposer Sub-agent (LLM translation + decomposition)\n复合菜/套餐/模糊描述 → 触发 Decomposer Sub-agent / Composite dishes / set meals / ambiguous descriptions → triggers Decomposer\n纯英语简单食材 → 直接调用 lookup_meal / Plain English simple ingredients → calls lookup_meal directly\n见 / See WORKFLOW.md 与 / and HOOKS.md\n分解后逐条调用 lookup_food（英文 name），再汇总 totals / After decomposition, calls lookup_food per item (English name), then aggregates totals\nscripts/translate.py 字典仅作为 Python 层的加速缓存，不替代 LLM 翻译 / The dictionary is only an acceleration cache, not a replacement for LLM translation\n仍缺关键量化 → 追问最多 2 条 / Still missing key quantity data → up to 2 follow-up questions\n路径规范 / Path Convention\n本 skill 内所有引用均使用相对路径 / All references within this skill use relative paths（例如 / e.g. scripts/core.py、agents/、references/usda_fdc.md）"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/LiuZX886/calorie-lookup",
    "publisherUrl": "https://clawhub.ai/LiuZX886/calorie-lookup",
    "owner": "LiuZX886",
    "version": "0.3.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/calorie-lookup",
    "downloadUrl": "https://openagent3.xyz/downloads/calorie-lookup",
    "agentUrl": "https://openagent3.xyz/skills/calorie-lookup/agent",
    "manifestUrl": "https://openagent3.xyz/skills/calorie-lookup/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/calorie-lookup/agent.md"
  }
}