·healthkit
</>

healthkit

使用 HealthKit 读取、写入和查询 Apple Health 数据。涵盖 HKHealthStore 授权、样本查询、统计查询、图表统计收集查询、保存 HKQuantitySample 数据、后台交付、使用 HKWorkoutSession 和 HKLiveWorkoutBuilder、HKUnit 和 HKQuantityTypeIdentifier 值进行锻炼。在与 Apple Health 集成、显示健康指标、记录锻炼或启用后台健康数据传输时使用。

54安装·26热度·@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-11

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