·healthkit
</>

healthkit

使用 HealthKit 讀取、寫入和查詢 Apple Health 資料。涵蓋 HKHealthStore 授權、樣本查詢、統計查詢、圖表統計收集查詢、保存 HKQuantitySample 數據、後台交付、使用 HKWorkoutSession 和 HKLiveWorkoutBuilder、HKUnit 和 HKQuantityTypeIdentifier 值進行鍛鍊。在與 Apple Health 整合、顯示健康指標、記錄運動或啟用後台健康數據傳輸時使用。

41安裝·16熱度·@dpearson2699

安裝

$npx skills add https://github.com/dpearson2699/swift-ios-skills --skill healthkit

如何安裝 healthkit

透過命令列快速安裝 healthkit AI 技能到你的開發環境

  1. 開啟終端機: 開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 執行安裝指令: 複製並執行以下指令:npx skills add https://github.com/dpearson2699/swift-ios-skills --skill healthkit
  3. 驗證安裝: 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

來源:dpearson2699/swift-ios-skills。

SKILL.md

查看原文

Read and write health and fitness data from the Apple Health store. Covers authorization, queries, writing samples, background delivery, and workout sessions. Targets Swift 6.2 / iOS 26+.

Always check availability before accessing HealthKit. iPad and some devices do not support it.

Create a single HKHealthStore instance and reuse it throughout your app. It is thread-safe.

使用 HealthKit 讀取、寫入和查詢 Apple Health 資料。涵蓋 HKHealthStore 授權、樣本查詢、統計查詢、圖表統計收集查詢、保存 HKQuantitySample 數據、後台交付、使用 HKWorkoutSession 和 HKLiveWorkoutBuilder、HKUnit 和 HKQuantityTypeIdentifier 值進行鍛鍊。在與 Apple Health 整合、顯示健康指標、記錄運動或啟用後台健康數據傳輸時使用。 來源:dpearson2699/swift-ios-skills。

可引用資訊

為搜尋與 AI 引用準備的穩定欄位與指令。

安裝指令
npx skills add https://github.com/dpearson2699/swift-ios-skills --skill healthkit
分類
</>開發工具
認證
收錄時間
2026-03-09
更新時間
2026-03-10

Browse more skills from dpearson2699/swift-ios-skills

快速解答

什麼是 healthkit?

使用 HealthKit 讀取、寫入和查詢 Apple Health 資料。涵蓋 HKHealthStore 授權、樣本查詢、統計查詢、圖表統計收集查詢、保存 HKQuantitySample 數據、後台交付、使用 HKWorkoutSession 和 HKLiveWorkoutBuilder、HKUnit 和 HKQuantityTypeIdentifier 值進行鍛鍊。在與 Apple Health 整合、顯示健康指標、記錄運動或啟用後台健康數據傳輸時使用。 來源:dpearson2699/swift-ios-skills。

如何安裝 healthkit?

開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/dpearson2699/swift-ios-skills --skill healthkit 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

這個 Skill 的原始碼在哪?

https://github.com/dpearson2699/swift-ios-skills