dat-conventions
OfficialWrite clean, async, iOS DAT code
Software Engineering#error handling#swift#ios#naming conventions#async await#wearables sdk#mock device
Authorfacebook
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill reduces confusion and inconsistencies when implementing the Meta Wearables Device Access Toolkit (DAT) on iOS by standardizing architecture choices, Swift concurrency patterns, naming, and module usage.
Core Features & Use Cases
- Async-first SDK usage: Use
async/awaiteverywhere and avoid blocking the main thread during streaming or frame handling. - Correct UI concurrency: Update UI from
@MainActorto keep rendering safe and predictable. - Readable, consistent code structure: Apply consistent naming for sessions, selectors, configurations, and publishers.
- Module-aligned development: Import the right frameworks (Core/Camera/Display/Mock) to match the capability you’re using.
- Practical error handling guidance: Use
do/catchandtry/awaitpatterns consistent with how the SDK throws typed errors.
Quick Start
Follow the conventions to structure your iOS DAT integration by configuring the SDK at launch and then using the shared entry point to start registration with async/await error handling.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: dat-conventions Download link: https://github.com/facebook/meta-wearables-dat-ios/archive/main.zip#dat-conventions Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.