{
  "schemaVersion": "1.0",
  "item": {
    "slug": "opencal",
    "name": "OpenCal",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/neikfu/opencal",
    "canonicalUrl": "https://clawhub.ai/neikfu/opencal",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/opencal",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=opencal",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.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. 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-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/opencal"
    },
    "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/opencal",
    "agentPageUrl": "https://openagent3.xyz/skills/opencal/agent",
    "manifestUrl": "https://openagent3.xyz/skills/opencal/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/opencal/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": "OpenCal",
        "body": "OpenCal is a calorie & nutrition tracker with a beautiful iOS app. This skill lets your AI agent log meals, check progress, and update goals — so the user never has to open the app to track what they eat.\n\n\"I just had a burrito for lunch\" → agent searches, scales, logs it → it shows up in the app instantly."
      },
      {
        "title": "Setup",
        "body": "Download OpenCal from the App Store\nSign in and set your calorie/macro goals\nGo to Profile → API Keys → Generate\nSet the key:\nexport OPENCAL_API_KEY=\"sk_your-key-here\""
      },
      {
        "title": "When to use this skill",
        "body": "User saysWhat to do\"I had a chicken sandwich for lunch\"Search food → scale nutrition → log it\"What did I eat today?\"Fetch today's log and summarize\"How much protein do I have left?\"Fetch log totals and compare to goals\"I want to cut to 1800 calories\"Update their calorie goal\"That last entry was wrong, remove it\"Delete the log entry\"What's in a banana?\"Search and show nutrition info (don't log)"
      },
      {
        "title": "Log a meal",
        "body": "The most common flow. User says something like \"I had 200g chicken breast for lunch\":\n\n1. Search for the food:\n\ncurl -s \"${OPENCAL_BASE_URL:-https://api.opencal.ai}/api/v1/food/search?q=chicken+breast&limit=5\" \\\n  -H \"Authorization: Bearer $OPENCAL_API_KEY\" | jq '.results[] | {name, calories, protein, carbs, fat}'\n\nResults are per 100g. Pick the best match.\n\n2. Scale to the actual amount and log:\n\ncurl -s -X POST \"${OPENCAL_BASE_URL:-https://api.opencal.ai}/api/v1/food/log\" \\\n  -H \"Authorization: Bearer $OPENCAL_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"name\": \"Chicken Breast\",\n    \"amount\": 200, \"unit\": \"g\",\n    \"calories\": 330, \"protein\": 62, \"carbs\": 0, \"fat\": 7.2,\n    \"mealType\": \"lunch\"\n  }'\n\nMultiply all nutrition values by amount / 100. The entry appears in the app immediately.\n\nUse mealType: breakfast, lunch, dinner, or snack.\nAdd \"loggedAt\": \"2026-02-18T12:00:00Z\" to backfill a past meal (defaults to now).\n\n3. Confirm with the user: \"Logged 200g chicken breast for lunch — 330 kcal, 62g protein.\""
      },
      {
        "title": "Check daily progress",
        "body": "curl -s \"${OPENCAL_BASE_URL:-https://api.opencal.ai}/api/v1/food/log?date=2026-02-18\" \\\n  -H \"Authorization: Bearer $OPENCAL_API_KEY\" | jq '{totals, entries: [.entries[] | {name, calories, mealType}]}'\n\nOmit ?date= for today. Returns each entry plus totals (calories, protein, carbs, fat)."
      },
      {
        "title": "Check and update goals",
        "body": "# Current goals\ncurl -s \"${OPENCAL_BASE_URL:-https://api.opencal.ai}/api/v1/goals\" \\\n  -H \"Authorization: Bearer $OPENCAL_API_KEY\" | jq\n\n# Update (only include fields to change)\ncurl -s -X PUT \"${OPENCAL_BASE_URL:-https://api.opencal.ai}/api/v1/goals\" \\\n  -H \"Authorization: Bearer $OPENCAL_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"calorieGoal\": 1800, \"proteinGrams\": 160}'"
      },
      {
        "title": "Delete a log entry",
        "body": "Get the entry ID from the daily log, then:\n\ncurl -s -X DELETE \"${OPENCAL_BASE_URL:-https://api.opencal.ai}/api/v1/food/log/{id}\" \\\n  -H \"Authorization: Bearer $OPENCAL_API_KEY\""
      },
      {
        "title": "Important notes",
        "body": "Search results are per 100g — always scale before logging\nIf the user doesn't mention an amount, ask — don't guess\nIf search returns nothing, try shorter/simpler terms (e.g. \"rice\" instead of \"steamed jasmine rice\")\nAlways confirm what you logged so the user can correct mistakes\nRate limit: 100 requests/min"
      }
    ],
    "body": "OpenCal\n\nOpenCal is a calorie & nutrition tracker with a beautiful iOS app. This skill lets your AI agent log meals, check progress, and update goals — so the user never has to open the app to track what they eat.\n\n\"I just had a burrito for lunch\" → agent searches, scales, logs it → it shows up in the app instantly.\n\nSetup\nDownload OpenCal from the App Store\nSign in and set your calorie/macro goals\nGo to Profile → API Keys → Generate\nSet the key:\nexport OPENCAL_API_KEY=\"sk_your-key-here\"\n\nWhen to use this skill\nUser says\tWhat to do\n\"I had a chicken sandwich for lunch\"\tSearch food → scale nutrition → log it\n\"What did I eat today?\"\tFetch today's log and summarize\n\"How much protein do I have left?\"\tFetch log totals and compare to goals\n\"I want to cut to 1800 calories\"\tUpdate their calorie goal\n\"That last entry was wrong, remove it\"\tDelete the log entry\n\"What's in a banana?\"\tSearch and show nutrition info (don't log)\nLog a meal\n\nThe most common flow. User says something like \"I had 200g chicken breast for lunch\":\n\n1. Search for the food:\n\ncurl -s \"${OPENCAL_BASE_URL:-https://api.opencal.ai}/api/v1/food/search?q=chicken+breast&limit=5\" \\\n  -H \"Authorization: Bearer $OPENCAL_API_KEY\" | jq '.results[] | {name, calories, protein, carbs, fat}'\n\n\nResults are per 100g. Pick the best match.\n\n2. Scale to the actual amount and log:\n\ncurl -s -X POST \"${OPENCAL_BASE_URL:-https://api.opencal.ai}/api/v1/food/log\" \\\n  -H \"Authorization: Bearer $OPENCAL_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"name\": \"Chicken Breast\",\n    \"amount\": 200, \"unit\": \"g\",\n    \"calories\": 330, \"protein\": 62, \"carbs\": 0, \"fat\": 7.2,\n    \"mealType\": \"lunch\"\n  }'\n\n\nMultiply all nutrition values by amount / 100. The entry appears in the app immediately.\n\nUse mealType: breakfast, lunch, dinner, or snack. Add \"loggedAt\": \"2026-02-18T12:00:00Z\" to backfill a past meal (defaults to now).\n\n3. Confirm with the user: \"Logged 200g chicken breast for lunch — 330 kcal, 62g protein.\"\n\nCheck daily progress\ncurl -s \"${OPENCAL_BASE_URL:-https://api.opencal.ai}/api/v1/food/log?date=2026-02-18\" \\\n  -H \"Authorization: Bearer $OPENCAL_API_KEY\" | jq '{totals, entries: [.entries[] | {name, calories, mealType}]}'\n\n\nOmit ?date= for today. Returns each entry plus totals (calories, protein, carbs, fat).\n\nCheck and update goals\n# Current goals\ncurl -s \"${OPENCAL_BASE_URL:-https://api.opencal.ai}/api/v1/goals\" \\\n  -H \"Authorization: Bearer $OPENCAL_API_KEY\" | jq\n\n# Update (only include fields to change)\ncurl -s -X PUT \"${OPENCAL_BASE_URL:-https://api.opencal.ai}/api/v1/goals\" \\\n  -H \"Authorization: Bearer $OPENCAL_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"calorieGoal\": 1800, \"proteinGrams\": 160}'\n\nDelete a log entry\n\nGet the entry ID from the daily log, then:\n\ncurl -s -X DELETE \"${OPENCAL_BASE_URL:-https://api.opencal.ai}/api/v1/food/log/{id}\" \\\n  -H \"Authorization: Bearer $OPENCAL_API_KEY\"\n\nImportant notes\nSearch results are per 100g — always scale before logging\nIf the user doesn't mention an amount, ask — don't guess\nIf search returns nothing, try shorter/simpler terms (e.g. \"rice\" instead of \"steamed jasmine rice\")\nAlways confirm what you logged so the user can correct mistakes\nRate limit: 100 requests/min"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/neikfu/opencal",
    "publisherUrl": "https://clawhub.ai/neikfu/opencal",
    "owner": "neikfu",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/opencal",
    "downloadUrl": "https://openagent3.xyz/downloads/opencal",
    "agentUrl": "https://openagent3.xyz/skills/opencal/agent",
    "manifestUrl": "https://openagent3.xyz/skills/opencal/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/opencal/agent.md"
  }
}