core-motion

Access CoreMotion sensor data for iOS and watchOS apps.

Updated Apr 30, 2026
One-click install
npx skills add https://github.com/onymchat/onym-ios --skill core-motion-onymchat
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: core-motion
Source: https://github.com/onymchat/onym-ios/tree/main/.claude/skills/core-motion
Command: npx skills add https://github.com/onymchat/onym-ios --skill core-motion-onymchat

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provide access to accelerometer, gyroscope, magnetometer, pedometer, and activity data to power motion-aware features.

Core Features & Use Cases

  • Access raw and processed motion data for fitness, navigation, and interactive experiences.
  • Detect user activity (walking, running, cycling) and track device motion for UI or gaming.
  • Use processed device motion to derive attitude, gravity, and heading for AR or location-based apps.

Quick Start

Create a single CMMotionManager instance and start device motion or pedometer updates to begin consuming motion data.

Frequently Asked Questions about core-motion

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

FAQPage Schema
How do I read accelerometer and gyroscope data in an iOS app?

Read accelerometer and gyroscope data in an iOS app by instantiating CMMotionManager and starting device motion updates to consume raw and processed sensor inputs for interactive experiences.

Can I detect user activity like walking or running on watchOS?

Detect user activity like walking or running on watchOS by using CMMotionActivityManager to track activity types and CMPedometer to count steps for fitness and health monitoring features.

What's the best way to track steps and altitude using CoreMotion?

Track steps and altitude using CoreMotion by initializing CMPedometer for step counts and accessing processed device motion data to derive altitude changes for navigation and fitness applications.

Do I need a single CMMotionManager instance for multiple motion sensors?

You need a single CMMotionManager instance to access multiple motion sensors simultaneously, as it centrally manages accelerometer, gyroscope, magnetometer, and pedometer update streams for your iOS or watchOS app.

How does device motion provide attitude and gravity data for AR apps?

Device motion provides attitude and gravity data for AR apps by processing raw sensor inputs to derive device orientation, heading, and gravity vectors, enabling accurate spatial tracking and location-based interactions.

What are common pitfalls when setting up motion sensor updates?

Common pitfalls when setting up motion sensor updates include creating multiple CMMotionManager instances, failing to properly start and stop update streams, and not handling sensor availability checks before accessing pedometer or activity data.