corehaptics

Guide iOS Core Haptics usage with CHHapticEngine and pattern playback APIs.

Updated May 6, 2026
One-click install
npx skills add https://github.com/Roy-wonji/claude-config --skill corehaptics-roy-wonji
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: corehaptics
Source: https://github.com/Roy-wonji/claude-config/tree/main/skills/apple-skills/skills/corehaptics
Command: npx skills add https://github.com/Roy-wonji/claude-config --skill corehaptics-roy-wonji

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Core Haptics developers need quick, accurate guidance on how to create and control a haptic engine, play patterns, and understand related APIs without manually searching scattered references.

Core Features & Use Cases

  • Core Haptics API discovery: Quickly answers questions about CHHapticEngine setup, lifecycle, and playback responsibilities.
  • Pattern playback guidance: Helps map how engines relate to CHHapticPattern and pattern players for tactile feedback.
  • Related references: Uses the provided index and engine documentation files to ground responses in specific sections.

Quick Start

Ask for the correct way to initialize CHHapticEngine, start it, play a haptic pattern, and then stop it safely.

Frequently Asked Questions about corehaptics

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

FAQPage Schema
How do I initialize and start a CHHapticEngine for iOS haptic feedback?

To initialize a CHHapticEngine for iOS haptic feedback, you need to set up the engine instance and explicitly start it before playback. This Skill provides concise guidance on engine lifecycle setup and lists reference file paths for deeper implementation details.

What is the correct way to play and stop a CHHapticPattern safely?

Playing a CHHapticPattern safely requires creating a pattern player from the initialized CHHapticEngine and managing the start and stop lifecycle. This Skill guides you through pattern player creation and safe playback termination with relevant API references.

How does CHHapticEngine map to CHHapticPattern and pattern players?

CHHapticEngine serves as the central controller that manages the lifecycle and execution of CHHapticPattern objects through pattern players. This Skill helps map these relationships for tactile feedback playback and provides reference material for understanding the hierarchy.

Can I use Core Haptics APIs to create custom tactile feedback patterns in Swift?

Yes, you can use Core Haptics APIs in Swift to create custom tactile feedback patterns by defining CHHapticPattern instances and executing them via CHHapticEngine. This Skill answers API discovery questions and directs you to specific reference sections for pattern creation.

Why does my Core Haptics engine fail to play haptic patterns on iOS?

Core Haptics engine failures during haptic pattern playback often stem from incorrect CHHapticEngine initialization or not starting the engine before creating pattern players. This Skill provides troubleshooting guidance by mapping correct setup steps and referencing relevant documentation files.

Do I need to manually stop the CHHapticEngine after tactile playback?

Yes, you need to manually stop the CHHapticEngine safely after tactile playback to release resources and prevent issues. This Skill explains the engine's start and stop responsibilities and points to reference files for proper lifecycle management.