healthkit

Query HKHealthStore and manage HealthKit authorization requests for health data.

299|16|Updated Feb 19, 2026
One-click install
npx skills add https://github.com/Prisma-Labs-Dev/apple-skills --skill healthkit-prisma-labs-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: healthkit
Source: https://github.com/Prisma-Labs-Dev/apple-skills/tree/main/skills/healthkit
Command: npx skills add https://github.com/Prisma-Labs-Dev/apple-skills --skill healthkit-prisma-labs-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the complex HealthKit API, allowing developers to quickly query, read, and write health and fitness data without navigating the entire Apple documentation suite.

Core Features & Use Cases

  • Data Access: Easily query HKHealthStore for heart rate, steps, workouts, and body measurements.
  • Authorization Management: Streamline the process of requesting user permissions for health data.
  • Use Case: Build a fitness dashboard that tracks active energy burned and heart rate recovery by using this Skill to fetch and format the relevant HealthKit samples.

Quick Start

Use the healthkit skill to query the user's average heart rate for the last seven days.

Frequently Asked Questions about healthkit

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

FAQPage Schema
How do I request HealthKit authorization for reading heart rate and step data in Swift?

To request HealthKit authorization in Swift, you must manage authorization requests through the HKHealthStore interface. This streamlines the process of securely prompting users for permissions to access their health and fitness data.

How do I query HKHealthStore for historical workout and body measurement data?

You query HKHealthStore by interacting with the HealthKit framework to read HKQuantitySample types. This allows you to easily fetch and format historical health data, including workouts, active energy burned, and body measurements.

Can I use HealthKit to build a fitness dashboard that tracks active energy burned and heart rate recovery?

Yes, you can use HealthKit to build a fitness dashboard by querying HKHealthStore for active energy burned and heart rate samples. It facilitates reading these biometric metrics to securely track user activity over time.

Does this approach require navigating the entire Apple Health documentation suite to fetch biometric metrics?

No, this approach simplifies the complex HealthKit API so you do not need to navigate the entire Apple documentation suite. It provides an interface to directly query and manage health data without that overhead.

What specific HKQuantitySample types can I read when integrating Apple Health data into my iOS apps?

When integrating Apple Health data, you can read HKQuantitySample types such as heart rate, steps, workouts, and body measurements. This provides secure access to user biometric and activity metrics for health-focused applications.