core-motion

Access accelerometer, gyroscope, magnetometer, and pedometer data via CoreMotion.

155|22|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/omarshahine/HomeClaw --skill core-motion-omarshahine
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: core-motion
Source: https://github.com/omarshahine/HomeClaw/tree/main/.agents/skills/core-motion
Command: npx skills add https://github.com/omarshahine/HomeClaw --skill core-motion-omarshahine

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides access to a device's motion sensors, enabling applications to understand and react to physical movement, orientation, and activity.

Core Features & Use Cases

  • Sensor Data Access: Read data from accelerometers, gyroscopes, and magnetometers.
  • Activity Recognition: Detect if the user is walking, running, cycling, or in a vehicle.
  • Pedometer Data: Track steps, distance, and floors climbed.
  • Use Case: Develop a fitness app that counts steps and detects running vs. walking, or a game that uses device tilt for control.

Quick Start

Start receiving accelerometer updates at 60 Hz and print the X, Y, and Z values to the console.

Frequently Asked Questions about core-motion

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

FAQPage Schema
How do I access accelerometer and gyroscope data for a mobile app?

Access accelerometer and gyroscope data through the CoreMotion framework, which provides real-time sensor readings from device hardware. It supports configuring update frequencies like 60 Hz for applications.

What is activity recognition and how does it detect walking or running?

Activity recognition uses device motion sensors to detect physical movements like walking, running, cycling, or driving. The CoreMotion framework analyzes sensor data patterns to classify current user activity.

Can I track steps and distance without a dedicated fitness app?

Track steps and distance using the built-in pedometer functionality provided by CoreMotion. It processes sensor data to count steps, calculate distance traveled, and track altitude changes without external devices.

Does CoreMotion support magnetometer data for navigation applications?

Yes, CoreMotion supports magnetometer data access alongside accelerometers and gyroscopes. This provides compass heading and orientation data necessary for developing navigation applications.

What are the limitations of using device sensors for motion detection?

Device motion sensors require specific hardware availability and consume battery during continuous updates. Limitations include potential sensor noise, calibration drift, and background processing constraints for activity detection.