{
  "schemaVersion": "1.0",
  "item": {
    "slug": "oura-analytics",
    "name": "Oura Ring Analytics",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/kesslerio/oura-analytics",
    "canonicalUrl": "https://clawhub.ai/kesslerio/oura-analytics",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/oura-analytics",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=oura-analytics",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "CHANGELOG.md",
      "README.md",
      "SECURITY.md",
      "SKILL.md",
      "pyproject.toml",
      "references/SCHEMA.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/oura-analytics"
    },
    "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/oura-analytics",
    "agentPageUrl": "https://openagent3.xyz/skills/oura-analytics/agent",
    "manifestUrl": "https://openagent3.xyz/skills/oura-analytics/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/oura-analytics/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": "Quick Start",
        "body": "# Set Oura API token\nexport OURA_API_TOKEN=\"your_personal_access_token\"\n\n# Fetch sleep data (last 7 days)\npython {baseDir}/scripts/oura_api.py sleep --days 7\n\n# Get readiness summary\npython {baseDir}/scripts/oura_api.py readiness --days 7\n\n# Generate weekly report\npython {baseDir}/scripts/oura_api.py report --type weekly"
      },
      {
        "title": "When to Use",
        "body": "Use this skill when:\n\nFetching Oura Ring metrics (sleep, readiness, activity, HRV)\nAnalyzing recovery trends over time\nCorrelating sleep quality with productivity/events\nSetting up automated alerts for low readiness\nGenerating daily/weekly/monthly health reports"
      },
      {
        "title": "1. Data Fetching",
        "body": "export PYTHONPATH=\"{baseDir}/scripts\"\npython - <<'PY'\nfrom oura_api import OuraClient\n\nclient = OuraClient(token=\"YOUR_TOKEN\")\nsleep_data = client.get_sleep(start_date=\"2026-01-01\", end_date=\"2026-01-16\")\nreadiness_data = client.get_readiness(start_date=\"2026-01-01\", end_date=\"2026-01-16\")\nprint(len(sleep_data), len(readiness_data))\nPY"
      },
      {
        "title": "2. Trend Analysis",
        "body": "export PYTHONPATH=\"{baseDir}/scripts\"\npython - <<'PY'\nfrom oura_api import OuraClient, OuraAnalyzer\n\nclient = OuraClient(token=\"YOUR_TOKEN\")\nsleep_data = client.get_sleep(start_date=\"2026-01-01\", end_date=\"2026-01-16\")\nreadiness_data = client.get_readiness(start_date=\"2026-01-01\", end_date=\"2026-01-16\")\n\nanalyzer = OuraAnalyzer(sleep_data, readiness_data)\navg_sleep = analyzer.average_metric(sleep_data, \"score\")\navg_readiness = analyzer.average_metric(readiness_data, \"score\")\ntrend = analyzer.trend(sleep_data, \"average_hrv\")\nprint(avg_sleep, avg_readiness, trend)\nPY"
      },
      {
        "title": "3. Alerts",
        "body": "python {baseDir}/scripts/alerts.py --days 7 --readiness 60 --efficiency 80"
      },
      {
        "title": "Environment",
        "body": "Required:\n\nOURA_API_TOKEN\n\nOptional (used for alerts/reports/timezone/output):\n\nKESSLER_TELEGRAM_BOT_TOKEN (fallback to TELEGRAM_BOT_TOKEN)\nTELEGRAM_CHAT_ID\nUSER_TIMEZONE\nOURA_OUTPUT_DIR"
      },
      {
        "title": "Scripts",
        "body": "scripts/oura_api.py - Oura Cloud API wrapper with OuraAnalyzer and OuraReporter classes\nscripts/alerts.py - Threshold-based notifications (CLI: python {baseDir}/scripts/alerts.py --days 7 --readiness 60)\nscripts/weekly_report.py - Weekly report generator"
      },
      {
        "title": "References",
        "body": "references/api.md - Oura Cloud API documentation\nreferences/metrics.md - Metric definitions and interpretations"
      },
      {
        "title": "Automation (Cron Jobs)",
        "body": "Cron jobs are configured in OpenClaw's gateway, not in this repo. Add these to your OpenClaw setup:"
      },
      {
        "title": "Daily Morning Briefing (8:00 AM)",
        "body": "openclaw cron add \\\n  --name \"Daily Oura Health Report (Hybrid)\" \\\n  --cron \"0 8 * * *\" \\\n  --tz \"America/Los_Angeles\" \\\n  --session isolated \\\n  --wake next-heartbeat \\\n  --deliver \\\n  --channel telegram \\\n  --target \"<YOUR_TELEGRAM_CHAT_ID>\" \\\n  --message \"Run the daily Oura health report with hybrid format: Execute bash /path/to/your/scripts/daily-oura-report-hybrid.sh\""
      },
      {
        "title": "Weekly Sleep Report (Sunday 8:00 AM)",
        "body": "openclaw cron add \\\n  --name \"Weekly Oura Sleep Report\" \\\n  --cron \"0 8 * * 0\" \\\n  --tz \"America/Los_Angeles\" \\\n  --session isolated \\\n  --wake next-heartbeat \\\n  --deliver \\\n  --channel telegram \\\n  --target \"<YOUR_TELEGRAM_CHAT_ID>\" \\\n  --message \"Run weekly Oura sleep report: bash /path/to/your/oura-weekly-sleep-alert.sh\""
      },
      {
        "title": "Daily Obsidian Note (8:15 AM)",
        "body": "openclaw cron add \\\n  --name \"Daily Obsidian Note\" \\\n  --cron \"15 8 * * *\" \\\n  --tz \"America/Los_Angeles\" \\\n  --session isolated \\\n  --wake next-heartbeat \\\n  --message \"Create daily Obsidian note with Oura data. Run: source /path/to/venv/bin/activate && python /path/to/daily-note.py\"\n\nNote: Replace /path/to/your/ with your actual paths and <YOUR_TELEGRAM_CHAT_ID> with your Telegram channel/group ID."
      }
    ],
    "body": "Oura Analytics\nQuick Start\n# Set Oura API token\nexport OURA_API_TOKEN=\"your_personal_access_token\"\n\n# Fetch sleep data (last 7 days)\npython {baseDir}/scripts/oura_api.py sleep --days 7\n\n# Get readiness summary\npython {baseDir}/scripts/oura_api.py readiness --days 7\n\n# Generate weekly report\npython {baseDir}/scripts/oura_api.py report --type weekly\n\nWhen to Use\n\nUse this skill when:\n\nFetching Oura Ring metrics (sleep, readiness, activity, HRV)\nAnalyzing recovery trends over time\nCorrelating sleep quality with productivity/events\nSetting up automated alerts for low readiness\nGenerating daily/weekly/monthly health reports\nCore Workflows\n1. Data Fetching\nexport PYTHONPATH=\"{baseDir}/scripts\"\npython - <<'PY'\nfrom oura_api import OuraClient\n\nclient = OuraClient(token=\"YOUR_TOKEN\")\nsleep_data = client.get_sleep(start_date=\"2026-01-01\", end_date=\"2026-01-16\")\nreadiness_data = client.get_readiness(start_date=\"2026-01-01\", end_date=\"2026-01-16\")\nprint(len(sleep_data), len(readiness_data))\nPY\n\n2. Trend Analysis\nexport PYTHONPATH=\"{baseDir}/scripts\"\npython - <<'PY'\nfrom oura_api import OuraClient, OuraAnalyzer\n\nclient = OuraClient(token=\"YOUR_TOKEN\")\nsleep_data = client.get_sleep(start_date=\"2026-01-01\", end_date=\"2026-01-16\")\nreadiness_data = client.get_readiness(start_date=\"2026-01-01\", end_date=\"2026-01-16\")\n\nanalyzer = OuraAnalyzer(sleep_data, readiness_data)\navg_sleep = analyzer.average_metric(sleep_data, \"score\")\navg_readiness = analyzer.average_metric(readiness_data, \"score\")\ntrend = analyzer.trend(sleep_data, \"average_hrv\")\nprint(avg_sleep, avg_readiness, trend)\nPY\n\n3. Alerts\npython {baseDir}/scripts/alerts.py --days 7 --readiness 60 --efficiency 80\n\nEnvironment\n\nRequired:\n\nOURA_API_TOKEN\n\nOptional (used for alerts/reports/timezone/output):\n\nKESSLER_TELEGRAM_BOT_TOKEN (fallback to TELEGRAM_BOT_TOKEN)\nTELEGRAM_CHAT_ID\nUSER_TIMEZONE\nOURA_OUTPUT_DIR\nScripts\nscripts/oura_api.py - Oura Cloud API wrapper with OuraAnalyzer and OuraReporter classes\nscripts/alerts.py - Threshold-based notifications (CLI: python {baseDir}/scripts/alerts.py --days 7 --readiness 60)\nscripts/weekly_report.py - Weekly report generator\nReferences\nreferences/api.md - Oura Cloud API documentation\nreferences/metrics.md - Metric definitions and interpretations\nAutomation (Cron Jobs)\n\nCron jobs are configured in OpenClaw's gateway, not in this repo. Add these to your OpenClaw setup:\n\nDaily Morning Briefing (8:00 AM)\nopenclaw cron add \\\n  --name \"Daily Oura Health Report (Hybrid)\" \\\n  --cron \"0 8 * * *\" \\\n  --tz \"America/Los_Angeles\" \\\n  --session isolated \\\n  --wake next-heartbeat \\\n  --deliver \\\n  --channel telegram \\\n  --target \"<YOUR_TELEGRAM_CHAT_ID>\" \\\n  --message \"Run the daily Oura health report with hybrid format: Execute bash /path/to/your/scripts/daily-oura-report-hybrid.sh\"\n\nWeekly Sleep Report (Sunday 8:00 AM)\nopenclaw cron add \\\n  --name \"Weekly Oura Sleep Report\" \\\n  --cron \"0 8 * * 0\" \\\n  --tz \"America/Los_Angeles\" \\\n  --session isolated \\\n  --wake next-heartbeat \\\n  --deliver \\\n  --channel telegram \\\n  --target \"<YOUR_TELEGRAM_CHAT_ID>\" \\\n  --message \"Run weekly Oura sleep report: bash /path/to/your/oura-weekly-sleep-alert.sh\"\n\nDaily Obsidian Note (8:15 AM)\nopenclaw cron add \\\n  --name \"Daily Obsidian Note\" \\\n  --cron \"15 8 * * *\" \\\n  --tz \"America/Los_Angeles\" \\\n  --session isolated \\\n  --wake next-heartbeat \\\n  --message \"Create daily Obsidian note with Oura data. Run: source /path/to/venv/bin/activate && python /path/to/daily-note.py\"\n\n\nNote: Replace /path/to/your/ with your actual paths and <YOUR_TELEGRAM_CHAT_ID> with your Telegram channel/group ID."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/kesslerio/oura-analytics",
    "publisherUrl": "https://clawhub.ai/kesslerio/oura-analytics",
    "owner": "kesslerio",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/oura-analytics",
    "downloadUrl": "https://openagent3.xyz/downloads/oura-analytics",
    "agentUrl": "https://openagent3.xyz/skills/oura-analytics/agent",
    "manifestUrl": "https://openagent3.xyz/skills/oura-analytics/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/oura-analytics/agent.md"
  }
}