homekit

Manage HomeKit homes, rooms, accessories, and commission Matter devices.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/KumarAdi8/AgentKit --skill homekit-kumaradi8
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: homekit
Source: https://github.com/KumarAdi8/AgentKit/tree/main/skills/homekit
Command: npx skills add https://github.com/KumarAdi8/AgentKit --skill homekit-kumaradi8

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provides clear, actionable guidance for building iOS apps that manage HomeKit homes, rooms, and accessories and for commissioning Matter devices into an ecosystem, reducing integration errors and entitlement/configuration pitfalls.

Core Features & Use Cases

  • Home and Accessory Management: Patterns for initializing a single HMHomeManager, observing homes/rooms/accessories, and wiring HMHomeDelegate and HMAccessoryDelegate for reliable state updates.
  • Characteristics and Scenes: Read, write, and subscribe to HMCharacteristic values safely, create and execute HMActionSet scenes, and configure time or event-based HMTrigger automation.
  • Matter Commissioning: End-to-end guidance for MatterSupport commissioning flows including MatterAddDeviceRequest usage, filtering device criteria, and implementing a MatterAddDeviceExtensionRequestHandler for validation, room selection, and commissioning.
  • Real-world Example: Implement a SwiftUI HomeStore that shares a single HMHomeManager, displays rooms and accessories, enables characteristic writes with metadata checks, and uses a Matter extension to validate and persist commissioned devices.

Quick Start

Add HomeKit capability, implement a single shared HMHomeManager with its delegate, and call the system pairing UI or MatterAddDeviceRequest to add accessories and commission devices.

Frequently Asked Questions about homekit

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

FAQPage Schema
How do I commission a Matter device into a HomeKit ecosystem using Swift?

To commission a Matter device, use the MatterAddDeviceRequest API to invoke the system pairing UI and implement a MatterAddDeviceExtensionRequestHandler to validate criteria, select a room, and finalize the onboarding workflow.

What is the correct way to manage HMHomeManager lifecycle in an iOS app?

Managing HMHomeManager lifecycle requires initializing a single shared HMHomeManager instance, wiring HMHomeDelegate and HMAccessoryDelegate protocols, and observing homes, rooms, and accessories for reliable state updates.

How do I read and write HMCharacteristic values safely in HomeKit?

Reading and writing HMCharacteristic values safely involves subscribing to characteristic updates, checking metadata before performing writes, and executing HMActionSet scenes for automated device control.

Do I need a MatterSupport extension to onboard Matter accessories in iOS 26+?

Yes, onboarding Matter accessories in iOS 26+ requires a MatterSupport extension with a MatterAddDeviceExtensionRequestHandler to handle commissioning callbacks, device validation, and room selection.

How do I configure time and event-based triggers for HomeKit automation?

Configuring HomeKit automation requires creating HMTrigger objects, linking them to HMActionSet scenes, and defining time-based or event-based conditions to execute accessory actions automatically.

Can I use SwiftUI to display HomeKit rooms and accessories from a shared HMHomeManager?

Yes, you can implement a SwiftUI HomeStore that shares a single HMHomeManager, displays rooms and accessories, and enables characteristic writes with metadata checks for HomeKit integration.