Skip to main content
skill CX Codex

dockkit — Claude Code skill: motorized camera tracking

A skill for the DockKit framework: write Swift code that drives motorized docks and gimbals so the iPhone physically follows a subject.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add dpearson2699/swift-ios-skills --skill dockkit -a claude-code
Open on GitHub

What dockkit does

The skill covers DockKit work in Swift apps. It walks through accessory discovery, system tracking of faces and bodies, custom observations, motor control and framing. System tracking is the default: the framework reads camera frames and turns the motors to keep a subject in view. An app can switch it off and feed in its own observations instead, from Vision or a custom model.

Custom tracking means sending observations to the accessory at 10-30 fps. Pick the observation type from .humanFace, .humanBody and .object, and give the rect in normalized coordinates with a lower-left origin — the same system Vision uses, so no conversion is needed. System tracking state does not survive app termination or background transitions, so set it explicitly when you need a value.

The skill needs a physical compatible accessory and a real device; the Simulator will not talk to dock hardware. Your app has to use AVFoundation camera APIs, since DockKit hooks into the capture pipeline. No special entitlements or DockKit-specific Info.plist keys are required, but camera access still needs NSCameraUsageDescription. iOS 17+ and Swift 6.3.

What it helps with

  • connect a motorized dock and react to its state changes
  • turn system face and body tracking on or off
  • feed Vision detections into the accessory as observations
  • frame a subject in the left or right third
  • let a user pick a subject by tapping the frame

Example prompts for the agent

  • Watch for dock connections with DockAccessoryManager.shared and handle .docked and .undocked
  • Disable system tracking and send .humanBody observations at 30 fps
  • Set framing mode to .left so the subject stays in the left third

How to install dockkit

1Skills CLI (Vercel)

npx skills add dpearson2699/swift-ios-skills --skill dockkit -a claude-code

2Manually: put the files in place

~/.claude/skills/dockkit/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/dockkit/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about dockkit

How do I install dockkit in Claude Code?

Run npx skills add dpearson2699/swift-ios-skills --skill dockkit -a claude-code. The skill lands in ~/.claude/skills/dockkit/SKILL.md.

What does dockkit do?

It helps you write DockKit code: accessory discovery, system and custom subject tracking, motor control and framing.

Can I test dockkit in the Simulator?

No. You need a physical compatible accessory and a real device; the Simulator cannot reach dock hardware.

Similar skills

Everything for Mobile →

From the same set69

gamekit Guides Apple GameKit integration in Swift projects. Useful when implementing Game Center authentication, leaderboards, and achievements. CX Codex +1 3,100installs swift-security Guides AI agents through Apple Keychain, Secure Enclave, and CryptoKit workflows. Useful for securing client data storage on iOS and macOS. CX Codex +1 3,000installs relevancekit A skill that teaches your agent to attach RelevanceKit context to watchOS widgets, so the Smart Stack surfaces them at the right moment. CX Codex +1 3,000installs appmigrationkit This skill guides Claude Code in setting up cross-platform data transfers between iOS and Android using the AppMigrationKit framework. CX Codex +1 3,000installs audioaccessorykit Guides automatic audio switching setup for third-party Bluetooth headphones with AudioAccessoryKit on iOS 26.4+. Useful when companion apps and extensions handle accessory state. CX Codex +1 3,000installs ios-simulator This skill manages iOS Simulator with xcrun simctl, covering app launches, locations, permissions, logs, screenshots, and boot failure checks. CX Codex +1 3,000installs adattributionkit Guides Apple mobile developers through privacy-focused ad attribution in iOS 17.4+. Use it to register impressions, handle postbacks, and update conversion values. CX Codex +1 3,100installs app-store-optimization Structures App Store Connect metadata to improve organic search ranking and download conversion. It balances keywords across titles, subtitles, and the indexed keyword field. CX Codex +1 2,900installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor