What problem does it solve?
This Skill eliminates the complexity of implementing low-level hardware interactions, audio routing, and power management in macOS applications, which requires navigating specialized IOKit, CoreAudio, and IOPMLib APIs with strict memory management and entitlement requirements.
Core Features & Use Cases
- IOKit & HID Device Access: Enumerate USB devices, manage custom HID peripherals (gamepads, joysticks, custom input devices), and traverse the IORegistry to read hardware properties.
- Audio Control: Route audio to specific output devices via AVAudioEngine, play system sounds with NSSound, and configure CoreAudio audio units for custom audio workflows.
- Power Management: Create scoped power assertions to prevent system sleep during critical operations, and monitor battery state, charge level, and warning levels.
- Use Case: If you are building a macOS creative tool that supports custom input devices, routes audio to professional USB audio interfaces, and keeps the system awake during large project exports, this skill provides production-ready, safety-checked code patterns.
Quick Start
Use the macos-iokit-hardware skill to implement USB gamepad input handling, route audio to a selected USB audio device, and add a power assertion to prevent system sleep during a batch file export in your macOS application.