{
  "schemaVersion": "1.0",
  "item": {
    "slug": "diet-tracker",
    "name": "Diet Tracker",
    "source": "tencent",
    "type": "skill",
    "category": "数据分析",
    "sourceUrl": "https://clawhub.ai/YonghaoZhao722/diet-tracker",
    "canonicalUrl": "https://clawhub.ai/YonghaoZhao722/diet-tracker",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/diet-tracker",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=diet-tracker",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "_meta.json",
      "references/food_database.json",
      "scripts/get_food_nutrition.py",
      "scripts/update_memory.py"
    ],
    "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. 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. 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-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.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/diet-tracker"
    },
    "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/diet-tracker",
    "agentPageUrl": "https://openagent3.xyz/skills/diet-tracker/agent",
    "manifestUrl": "https://openagent3.xyz/skills/diet-tracker/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/diet-tracker/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. 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. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Diet Tracker",
        "body": "This skill helps track daily diet and achieve weight loss goals with automated meal reminders."
      },
      {
        "title": "Trigger Conditions",
        "body": "User might say:\n\n\"I had [food] for lunch/dinner\"\n\"What's my remaining calorie budget?\"\n\"How many calories have I eaten today?\"\n\"Log my meal\"\n\"Check my diet progress\"\n\nOr automatically triggered by cron job for meal reminders."
      },
      {
        "title": "Cron Job Integration",
        "body": "This skill works with automated cron jobs:\n\nLunch reminder: ~12:30 (checks if lunch logged, sends reminder if not)\nDinner reminder: ~18:00 (checks if dinner logged, sends reminder if not)\n\nCron job system event: 饮食记录检查:午餐 or 饮食记录检查:晚餐"
      },
      {
        "title": "User Profile (Required)",
        "body": "The skill reads from USER.md:\n\nDaily calorie target (default: 1650 kcal)\nMacronutrient targets (protein/carbs/fat)\nHeight, weight, age, gender, activity level (for TDEE calculation)\n\nActivity levels:\n\nSedentary (little or no exercise)\nLightly active (light exercise 1-3 days/week)\nModerately active (moderate exercise 3-5 days/week)\nVery active (hard exercise 6-7 days/week)\nExtra active (very hard exercise + physical job)"
      },
      {
        "title": "When User Logs a Meal:",
        "body": "Identify food items from user's description\nFetch nutrition data via scripts/get_food_nutrition.py\n\nMUST GET: calories(kcal), protein(g), carbs(g), fat(g)\nSearches web for calorie/protein/carbs/fat info\nFalls back to references/food_database.json if needed\nIf complete nutrition data cannot be found, MUST clearly inform user of estimated values\n\n\nUpdate daily log via scripts/update_memory.py\n\nSaves to memory/YYYY-MM-DD.md\nRECORD FORMAT: Food Name - XX kcal (P: XXg, C: XXg, F: XXg)\nCalculates meal totals\nUpdates daily running totals\n\n\nReport to user:\n\nMUST REPORT: calories + protein/carbs/fat grams\nToday's consumed / remaining calories\nMUST REPORT: Remaining macronutrient budgets\nPredicted weight change based on deficit/surplus"
      },
      {
        "title": "When User Asks for Status:",
        "body": "Read current day's memory file\nCalculate totals consumed\nReport:\n\nRemaining calorie budget\nRemaining protein/carbs/fat (if targets set)\nWeight change prediction"
      },
      {
        "title": "Scripts",
        "body": "scripts/get_food_nutrition.py: Fetches nutrition info + calculates TDEE\nscripts/update_memory.py: Updates daily memory file with meal data\nreferences/food_database.json: Fallback database of common foods"
      },
      {
        "title": "Common Issues",
        "body": "Issue: \"Cannot read USER.md\" or missing user data\n\nCause: User profile not configured\nSolution: Ask user for height, weight, age, gender, activity level, and calorie target\n\nIssue: Nutrition lookup fails for uncommon foods\n\nCause: Food not found in online databases\nSolution: Ask user for approximate calorie count or use similar food from database\n\nIssue: Multiple food items in one meal\n\nCause: User says \"I had pizza, salad, and coke\"\nSolution: Process each item separately, sum the nutrition values"
      },
      {
        "title": "Daily Memory Entry (memory/YYYY-MM-DD.md)",
        "body": "REQUIRED FORMAT — Must include calories + macronutrients:\n\n## Diet Log\n\n**Breakfast**: [food] - [X] kcal (P: [X]g, C: [X]g, F: [X]g)\n**Lunch**: [food] - [X] kcal (P: [X]g, C: [X]g, F: [X]g)\n**Dinner**: [food] - [X] kcal (P: [X]g, C: [X]g, F: [X]g)\n\n**Daily Total**: [X] / [target] kcal\n- Protein: [X] / [target]g (remaining: [X]g)\n- Carbs: [X] / [target]g (remaining: [X]g)\n- Fat: [X] / [target]g (remaining: [X]g)\n**Predicted weight change**: [-/+ X] kg\n\n⚠️ Strictly prohibited to record only calories while omitting macronutrient grams!"
      },
      {
        "title": "Progressive Disclosure",
        "body": "Level 1 (frontmatter): Skill activation criteria\nLevel 2 (SKILL.md): Full workflow instructions (this file)\nLevel 3 (references/): Food database and nutrition guidelines"
      }
    ],
    "body": "Diet Tracker\n\nThis skill helps track daily diet and achieve weight loss goals with automated meal reminders.\n\nTrigger Conditions\n\nUser might say:\n\n\"I had [food] for lunch/dinner\"\n\"What's my remaining calorie budget?\"\n\"How many calories have I eaten today?\"\n\"Log my meal\"\n\"Check my diet progress\"\n\nOr automatically triggered by cron job for meal reminders.\n\nCron Job Integration\n\nThis skill works with automated cron jobs:\n\nLunch reminder: ~12:30 (checks if lunch logged, sends reminder if not)\nDinner reminder: ~18:00 (checks if dinner logged, sends reminder if not)\n\nCron job system event: 饮食记录检查:午餐 or 饮食记录检查:晚餐\n\nUser Profile (Required)\n\nThe skill reads from USER.md:\n\nDaily calorie target (default: 1650 kcal)\nMacronutrient targets (protein/carbs/fat)\nHeight, weight, age, gender, activity level (for TDEE calculation)\n\nActivity levels:\n\nSedentary (little or no exercise)\nLightly active (light exercise 1-3 days/week)\nModerately active (moderate exercise 3-5 days/week)\nVery active (hard exercise 6-7 days/week)\nExtra active (very hard exercise + physical job)\nWorkflow\nWhen User Logs a Meal:\nIdentify food items from user's description\nFetch nutrition data via scripts/get_food_nutrition.py\nMUST GET: calories(kcal), protein(g), carbs(g), fat(g)\nSearches web for calorie/protein/carbs/fat info\nFalls back to references/food_database.json if needed\nIf complete nutrition data cannot be found, MUST clearly inform user of estimated values\nUpdate daily log via scripts/update_memory.py\nSaves to memory/YYYY-MM-DD.md\nRECORD FORMAT: Food Name - XX kcal (P: XXg, C: XXg, F: XXg)\nCalculates meal totals\nUpdates daily running totals\nReport to user:\nMUST REPORT: calories + protein/carbs/fat grams\nToday's consumed / remaining calories\nMUST REPORT: Remaining macronutrient budgets\nPredicted weight change based on deficit/surplus\nWhen User Asks for Status:\nRead current day's memory file\nCalculate totals consumed\nReport:\nRemaining calorie budget\nRemaining protein/carbs/fat (if targets set)\nWeight change prediction\nScripts\nscripts/get_food_nutrition.py: Fetches nutrition info + calculates TDEE\nscripts/update_memory.py: Updates daily memory file with meal data\nreferences/food_database.json: Fallback database of common foods\nError Handling\nCommon Issues\n\nIssue: \"Cannot read USER.md\" or missing user data\n\nCause: User profile not configured\nSolution: Ask user for height, weight, age, gender, activity level, and calorie target\n\nIssue: Nutrition lookup fails for uncommon foods\n\nCause: Food not found in online databases\nSolution: Ask user for approximate calorie count or use similar food from database\n\nIssue: Multiple food items in one meal\n\nCause: User says \"I had pizza, salad, and coke\"\nSolution: Process each item separately, sum the nutrition values\nData Format\nDaily Memory Entry (memory/YYYY-MM-DD.md)\n\nREQUIRED FORMAT — Must include calories + macronutrients:\n\n## Diet Log\n\n**Breakfast**: [food] - [X] kcal (P: [X]g, C: [X]g, F: [X]g)\n**Lunch**: [food] - [X] kcal (P: [X]g, C: [X]g, F: [X]g)\n**Dinner**: [food] - [X] kcal (P: [X]g, C: [X]g, F: [X]g)\n\n**Daily Total**: [X] / [target] kcal\n- Protein: [X] / [target]g (remaining: [X]g)\n- Carbs: [X] / [target]g (remaining: [X]g)\n- Fat: [X] / [target]g (remaining: [X]g)\n**Predicted weight change**: [-/+ X] kg\n\n\n⚠️ Strictly prohibited to record only calories while omitting macronutrient grams!\n\nProgressive Disclosure\nLevel 1 (frontmatter): Skill activation criteria\nLevel 2 (SKILL.md): Full workflow instructions (this file)\nLevel 3 (references/): Food database and nutrition guidelines"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/YonghaoZhao722/diet-tracker",
    "publisherUrl": "https://clawhub.ai/YonghaoZhao722/diet-tracker",
    "owner": "YonghaoZhao722",
    "version": "1.2.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/diet-tracker",
    "downloadUrl": "https://openagent3.xyz/downloads/diet-tracker",
    "agentUrl": "https://openagent3.xyz/skills/diet-tracker/agent",
    "manifestUrl": "https://openagent3.xyz/skills/diet-tracker/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/diet-tracker/agent.md"
  }
}