Skip to main content
skill CX Codex

sensorkit — Claude Code skill for SensorKit setup

This skill guides SensorKit setup for research apps on iPhone and Apple Watch. Use it to configure sensor access, request consent, record readings, and fetch them later.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add dpearson2699/swift-ios-skills --skill sensorkit -a claude-code
Open on GitHub

What sensorkit does

The skill covers SensorKit configuration: selecting sensors, adding the entitlement, setting Info.plist usage details, and requesting Research Sensor & Usage Data consent. Each sensor gets its own SRSensorReader, and its availability needs a separate check. Recording starts and stops through the reader; a fetch request specifies a time range and device.

SensorKit requires an Apple-approved research study, the granted entitlement, and a manually managed provisioning profile with the SensorKit capability enabled. Users authorize access sensor by sensor. For an active sensor, an app can retrieve up to 7 days of earlier recordings, so fetch timing affects how the app handles its data. Use CoreMotion for general motion features and HealthKit for health records or workouts.

What it helps with

  • configure SensorKit entitlements for approved sensors
  • add sensor-specific usage explanations to Info.plist
  • request permission to read research sensor data
  • record readings and fetch them for a chosen period

Example prompts for the agent

  • Set up SensorKit access to the ambient light sensor and request user consent.
  • Check the Info.plist settings needed for the motion sensor.
  • Show me how to fetch SensorKit readings for a selected time range.

How to install sensorkit

1Skills CLI (Vercel)

npx skills add dpearson2699/swift-ios-skills --skill sensorkit -a claude-code

2Manually: put the files in place

~/.claude/skills/sensorkit/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/sensorkit/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about sensorkit

How do I install sensorkit in Claude Code?

Run npx skills add dpearson2699/swift-ios-skills --skill sensorkit -a claude-code. The skill file is placed at ~/.claude/skills/sensorkit/SKILL.md.

What does sensorkit do?

It guides SensorKit setup for research apps, including entitlements, sensor usage descriptions, authorization, recording, and data retrieval.

What do I need to use SensorKit?

The study must be approved by Apple, with a SensorKit entitlement granted and a manually managed provisioning profile that enables the SensorKit capability. Users must authorize the requested sensors.

Similar skills

Everything for Mobile →

From the same set86

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor