{
  "schemaVersion": "1.0",
  "item": {
    "slug": "healthkit-sync",
    "name": "HealthKit Sync",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/mneves75/healthkit-sync",
    "canonicalUrl": "https://clawhub.ai/mneves75/healthkit-sync",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/healthkit-sync",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=healthkit-sync",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "references/ARCHITECTURE.md",
      "references/CLI-REFERENCE.md",
      "references/SECURITY.md",
      "TESTING.md",
      "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/healthkit-sync"
    },
    "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/healthkit-sync",
    "agentPageUrl": "https://openagent3.xyz/skills/healthkit-sync/agent",
    "manifestUrl": "https://openagent3.xyz/skills/healthkit-sync/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/healthkit-sync/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": "HealthKit Sync CLI",
        "body": "Securely sync Apple HealthKit data from iPhone to Mac over local network using mTLS."
      },
      {
        "title": "When to Use This Skill",
        "body": "User asks about syncing health data from iPhone\nUser mentions healthsync CLI commands\nUser wants to fetch steps, heart rate, sleep, or workout data\nUser needs to pair a Mac with an iOS device\nUser asks about the iOS Health Sync project architecture\nUser mentions certificate pinning or mTLS patterns"
      },
      {
        "title": "Pairing Flow (First Time)",
        "body": "# 1. Discover devices on local network\nhealthsync discover\n\n# 2. On iOS app: tap \"Share\" to generate QR code, then \"Copy\"\n# 3. Scan QR from clipboard (Universal Clipboard)\nhealthsync scan\n\n# Alternative: scan from image file\nhealthsync scan --file ~/Desktop/qr.png"
      },
      {
        "title": "Fetching Health Data",
        "body": "# Check connection status\nhealthsync status\n\n# List enabled data types\nhealthsync types\n\n# Fetch data as CSV (default)\nhealthsync fetch --start 2026-01-01T00:00:00Z --end 2026-12-31T23:59:59Z --types steps\n\n# Fetch multiple types as JSON\nhealthsync fetch --start 2026-01-01T00:00:00Z --end 2026-12-31T23:59:59Z \\\n  --types steps,heartRate,sleepAnalysis --format json | jq\n\n# Pipe to file\nhealthsync fetch --start 2026-01-01T00:00:00Z --end 2026-12-31T23:59:59Z \\\n  --types steps > steps.csv"
      },
      {
        "title": "Available Health Data Types",
        "body": "Activity: steps, distanceWalkingRunning, distanceCycling, activeEnergyBurned, basalEnergyBurned, exerciseTime, standHours, flightsClimbed, workouts\n\nHeart: heartRate, restingHeartRate, walkingHeartRateAverage, heartRateVariability\n\nVitals: bloodPressureSystolic, bloodPressureDiastolic, bloodOxygen, respiratoryRate, bodyTemperature, vo2Max\n\nSleep: sleepAnalysis, sleepInBed, sleepAsleep, sleepAwake, sleepREM, sleepCore, sleepDeep\n\nBody: weight, height, bodyMassIndex, bodyFatPercentage, leanBodyMass"
      },
      {
        "title": "Configuration",
        "body": "Config stored at ~/.healthsync/config.json (permissions: 0600):\n\n{\n  \"host\": \"192.168.1.x\",\n  \"port\": 8443,\n  \"fingerprint\": \"sha256-certificate-fingerprint\"\n}\n\nToken stored in macOS Keychain under service org.mvneves.healthsync.cli."
      },
      {
        "title": "Certificate Pinning",
        "body": "The CLI validates server certificates by SHA256 fingerprint (TOFU model):\n\nFirst pairing stores fingerprint from QR code\nSubsequent connections verify fingerprint matches\nMismatch = connection rejected (MITM protection)"
      },
      {
        "title": "Local Network Only",
        "body": "Host validation restricts connections to:\n\nlocalhost, *.local domains\nPrivate IPv4: 192.168.*, 10.*, 172.16-31.*\nIPv6 loopback: ::1, link-local: fe80::"
      },
      {
        "title": "Keychain Storage",
        "body": "Tokens never stored in config file - always in Keychain with:\n\nkSecAttrAccessibleWhenUnlocked protection class\nService: org.mvneves.healthsync.cli\nAccount: token-{host}"
      },
      {
        "title": "Project Structure",
        "body": "ai-health-sync-ios-clawdbot/\n├── iOS Health Sync App/          # Swift 6 iOS app\n│   ├── Services/Security/        # CertificateService, KeychainStore, PairingService\n│   ├── Services/HealthKit/       # HealthKitService, HealthSampleMapper\n│   ├── Services/Network/         # NetworkServer (TLS), HTTPTypes\n│   └── Services/Audit/           # AuditService (SwiftData)\n└── macOS/HealthSyncCLI/          # Swift Package CLI"
      },
      {
        "title": "Troubleshooting",
        "body": "\"No devices found\":\n\nEnsure iOS app is running with sharing enabled\nBoth devices must be on same Wi-Fi network\nCheck firewall isn't blocking mDNS (port 5353)\n\n\"Pairing code expired\":\n\nGenerate new QR code on iOS app (codes expire in 5 minutes)\n\n\"Certificate mismatch\":\n\nDelete ~/.healthsync/config.json and re-pair\nServer certificate may have been regenerated\n\n\"Connection refused\":\n\niOS app server may not be running\nRun healthsync status --dry-run to test without connecting"
      },
      {
        "title": "See Also",
        "body": "CLI Reference - Detailed command documentation\nSecurity Patterns - mTLS and certificate pinning patterns\nArchitecture - iOS app architecture details"
      }
    ],
    "body": "HealthKit Sync CLI\n\nSecurely sync Apple HealthKit data from iPhone to Mac over local network using mTLS.\n\nWhen to Use This Skill\nUser asks about syncing health data from iPhone\nUser mentions healthsync CLI commands\nUser wants to fetch steps, heart rate, sleep, or workout data\nUser needs to pair a Mac with an iOS device\nUser asks about the iOS Health Sync project architecture\nUser mentions certificate pinning or mTLS patterns\nCLI Quick Reference\nPairing Flow (First Time)\n# 1. Discover devices on local network\nhealthsync discover\n\n# 2. On iOS app: tap \"Share\" to generate QR code, then \"Copy\"\n# 3. Scan QR from clipboard (Universal Clipboard)\nhealthsync scan\n\n# Alternative: scan from image file\nhealthsync scan --file ~/Desktop/qr.png\n\nFetching Health Data\n# Check connection status\nhealthsync status\n\n# List enabled data types\nhealthsync types\n\n# Fetch data as CSV (default)\nhealthsync fetch --start 2026-01-01T00:00:00Z --end 2026-12-31T23:59:59Z --types steps\n\n# Fetch multiple types as JSON\nhealthsync fetch --start 2026-01-01T00:00:00Z --end 2026-12-31T23:59:59Z \\\n  --types steps,heartRate,sleepAnalysis --format json | jq\n\n# Pipe to file\nhealthsync fetch --start 2026-01-01T00:00:00Z --end 2026-12-31T23:59:59Z \\\n  --types steps > steps.csv\n\nAvailable Health Data Types\n\nActivity: steps, distanceWalkingRunning, distanceCycling, activeEnergyBurned, basalEnergyBurned, exerciseTime, standHours, flightsClimbed, workouts\n\nHeart: heartRate, restingHeartRate, walkingHeartRateAverage, heartRateVariability\n\nVitals: bloodPressureSystolic, bloodPressureDiastolic, bloodOxygen, respiratoryRate, bodyTemperature, vo2Max\n\nSleep: sleepAnalysis, sleepInBed, sleepAsleep, sleepAwake, sleepREM, sleepCore, sleepDeep\n\nBody: weight, height, bodyMassIndex, bodyFatPercentage, leanBodyMass\n\nConfiguration\n\nConfig stored at ~/.healthsync/config.json (permissions: 0600):\n\n{\n  \"host\": \"192.168.1.x\",\n  \"port\": 8443,\n  \"fingerprint\": \"sha256-certificate-fingerprint\"\n}\n\n\nToken stored in macOS Keychain under service org.mvneves.healthsync.cli.\n\nSecurity Architecture\nCertificate Pinning\n\nThe CLI validates server certificates by SHA256 fingerprint (TOFU model):\n\nFirst pairing stores fingerprint from QR code\nSubsequent connections verify fingerprint matches\nMismatch = connection rejected (MITM protection)\nLocal Network Only\n\nHost validation restricts connections to:\n\nlocalhost, *.local domains\nPrivate IPv4: 192.168.*, 10.*, 172.16-31.*\nIPv6 loopback: ::1, link-local: fe80::\nKeychain Storage\n\nTokens never stored in config file - always in Keychain with:\n\nkSecAttrAccessibleWhenUnlocked protection class\nService: org.mvneves.healthsync.cli\nAccount: token-{host}\nProject Structure\nai-health-sync-ios-clawdbot/\n├── iOS Health Sync App/          # Swift 6 iOS app\n│   ├── Services/Security/        # CertificateService, KeychainStore, PairingService\n│   ├── Services/HealthKit/       # HealthKitService, HealthSampleMapper\n│   ├── Services/Network/         # NetworkServer (TLS), HTTPTypes\n│   └── Services/Audit/           # AuditService (SwiftData)\n└── macOS/HealthSyncCLI/          # Swift Package CLI\n\nTroubleshooting\n\n\"No devices found\":\n\nEnsure iOS app is running with sharing enabled\nBoth devices must be on same Wi-Fi network\nCheck firewall isn't blocking mDNS (port 5353)\n\n\"Pairing code expired\":\n\nGenerate new QR code on iOS app (codes expire in 5 minutes)\n\n\"Certificate mismatch\":\n\nDelete ~/.healthsync/config.json and re-pair\nServer certificate may have been regenerated\n\n\"Connection refused\":\n\niOS app server may not be running\nRun healthsync status --dry-run to test without connecting\nSee Also\nCLI Reference - Detailed command documentation\nSecurity Patterns - mTLS and certificate pinning patterns\nArchitecture - iOS app architecture details"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/mneves75/healthkit-sync",
    "publisherUrl": "https://clawhub.ai/mneves75/healthkit-sync",
    "owner": "mneves75",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/healthkit-sync",
    "downloadUrl": "https://openagent3.xyz/downloads/healthkit-sync",
    "agentUrl": "https://openagent3.xyz/skills/healthkit-sync/agent",
    "manifestUrl": "https://openagent3.xyz/skills/healthkit-sync/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/healthkit-sync/agent.md"
  }
}