Agent skill · software engineering · dpearson2699

sensorkit

Access research-grade sensor data using SensorKit for approved studies. Use when an app needs SensorKit entitlement setup, Research Sensor & Usage Data authorization, ambient light, recorded motion, device usage, keyboard metrics, visits, speech, face, wrist temperature, ECG, PPG, acoustic settings, or sleep-session data. Route ordinary motion to CoreMotion and health records/workouts to HealthKit.

Why this skill is useful

Provides specific commands and configurations for integrating SensorKit with iOS apps, which are not widely known.

What it needs

Requires xcode installed locally. Requires apple account access. About 6k tokens when loaded. Last updated 2026-07-31. 973 stars on the source repository.

What this skill does

SensorKit Choose the exact SRSensor and verify its individual availability. Use CoreMotion for ordinary motion/activity features and HealthKit for health records and workouts. Contents Overview and Requirements Entitlements Info.plist Configuration Authorization Available Sensors SRSensorReader Recording and Fetching Data SRDevice Common Mistakes Review Checklist References Overview and Requirements SensorKit enables research apps to record and fetch sensor data across iPhone and Apple Watch. The framework requires: 1. Apple-approved research study -- submit a proposal at researchandcare.org. 2. SensorKit entitlement -- Apple grants com.apple.developer.sensorkit.reader.allow only for approved studies. 3. Manual provisioning profile -- Xcode requires an explicit App ID with the SensorKit capability enabled. 4. User authorization -- the system presents a Research Sensor & Usage Data sheet that users approve per-sensor. 5. Delayed retrieval -- design fetch timing around the canonical Data Holding Period. An app can access up to 7 days of prior recorded data for an active sensor. Entitlements Add the SensorKit reader entitlement to a .entitlements file. List only the sensors Apple approved for the study. Common entitlement values include: Load the Entitlement and Usage-Detail Catalog when selecting the exact entitlement string and NSSensorKitUsageDetail key for each approved sensor. Recheck specialized sensors against their individual SRSensor pages. For manual signing, set Code Signing Entitlements to the entitlements file, Code Signing Identity to Apple Developer, Code Signing Style to Manual, and Provisioning Profile to the explicit profile with SensorKit capability. Info.plist Configuration Three keys are required: If Required is true and the user denies that sensor, the system warns them that the study needs it and offers a chance to reconsider. Use the exact usage-detail dictionary for each requested sensor. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills dpearson2699/sensorkit

View the source on GitHub

Browse the @skills marketplace