healthkit

Authorize and query Apple Health data using HealthKit.

981|50|Updated Mar 3, 2026
One-click install
npx skills add https://github.com/dpearson2699/swift-ios-skills --skill healthkit-dpearson2699
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: healthkit
Source: https://github.com/dpearson2699/swift-ios-skills/tree/main/skills/healthkit
Command: npx skills add https://github.com/dpearson2699/swift-ios-skills --skill healthkit-dpearson2699

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enables seamless integration with Apple Health, allowing your application to read, write, and query vital health and fitness data.

Core Features & Use Cases

  • Health Data Access: Authorize and access a wide range of HealthKit data types including steps, heart rate, active energy, and more.
  • Data Management: Save new health data like workout sessions or custom measurements.
  • Background Updates: Receive notifications for new data even when your app isn't active.
  • Use Case: Display a user's daily step count and active calories burned directly within your fitness app, or record a new running workout session to HealthKit.

Quick Start

Request authorization to read step count and active energy burned from Apple Health.

Frequently Asked Questions about healthkit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I read and write Apple Health data in my iOS app?

To read and write Apple Health data, you use HealthKit to request authorization for specific data types. Once authorized, you can execute sample and statistics queries to read data, or use data saving methods to write new health metrics and workout sessions.

Can my iOS app receive background updates from HealthKit?

Yes, your iOS app can receive HealthKit background delivery notifications. This mechanism alerts your app to new health and fitness data even when the app is not actively running in the foreground.

How do I record a running workout session to Apple Health?

You record a running workout session to Apple Health by using HealthKit's data saving capabilities. This allows your fitness tracking application to log custom measurements and workout sessions directly to the iOS health ecosystem.

What do I need to start integrating HealthKit into my fitness tracking app?

To start integrating HealthKit, you need an iOS application environment. You must request user authorization to access specific HealthKit data types like steps, heart rate, and active energy before executing queries or saving data.

What types of health and fitness data can I query using HealthKit?

Using HealthKit, you can query a wide range of health and fitness data types including steps, heart rate, active energy, and custom measurements. You retrieve this data through sample and statistics queries.