Agent skill · software engineering · dpearson2699
dockkit
Control motorized camera docks and enable intelligent subject tracking using DockKit. Use when discovering DockKit-compatible accessories, implementing camera subject tracking for faces or bodies, controlling dock motors for pan and tilt, configuring framing behavior, setting regions of interest, or building video apps with automatic camera tracking.
Why this skill is useful
Provides specific commands and integration patterns for controlling motorized camera docks that the AI wouldn't reliably generate on its own.
What it needs
Requires swift installed locally. About 8k tokens when loaded. Last updated 2026-07-31. 973 stars on the source repository.
What this skill does
DockKit Framework for integrating with motorized camera stands and gimbals that physically track subjects by rotating the iPhone. DockKit handles motor control, subject detection, and framing so camera apps get 360-degree pan and 90-degree tilt tracking with no additional code. Apps can override system tracking to supply custom observations, control motors directly, or adjust framing. iOS 17+, Swift 6.3. Contents Setup Discovering Accessories System Tracking Custom Tracking Framing and Region of Interest Motor Control Animations Tracking State and Subject Selection Accessory Events Battery Monitoring Common Mistakes Review Checklist References Setup Import DockKit: DockKit requires a physical DockKit-compatible accessory and a real device. The Simulator cannot connect to dock hardware. DockKit itself requires no special entitlements or DockKit-specific Info.plist keys. Camera apps that use device cameras still need normal camera privacy handling, including NSCameraUsageDescription. The framework communicates with paired accessories automatically through the DockKit system daemon. The app must use AVFoundation camera APIs. DockKit hooks into the camera pipeline to analyze frames for system tracking. Discovering Accessories Use DockAccessoryManager.shared to observe dock connections: accessoryStateChanges emits DockAccessory.StateChange values with state, accessory, and trackingButtonEnabled. Use accessory.identifier for the name, category, and UUID; hardware details are available via firmwareVersion and hardwareModel. System Tracking System tracking is DockKit's default mode. When enabled, the system analyzes camera frames through built-in ML inference, detects faces and bodies, and drives the motors to keep subjects in frame. Any app using AVFoundation camera APIs benefits automatically. Enable or Disable System tracking state does not persist across app termination, reboots, or background/foreground transitions. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills dpearson2699/dockkit