Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

dat-conventions

Skill by facebook

Documents Kotlin patterns, DatResult error handling, and session and capability conventions for building Android apps with the DAT SDK. It is aimed at developers writing Meta DAT SDK code on Android.

  • Score 68
  • 410 stars
  • NOASSERTION
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install dat-conventions

Built from the published package, never by AI.

git clone --depth 1 https://github.com/facebook/meta-wearables-dat-android /tmp/meta-wearables-dat-android && mkdir -p ~/.claude/skills && cp -r /tmp/meta-wearables-dat-android/plugins/mwdat-android/skills/dat-conventions ~/.claude/skills/dat-conventions

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install dat-conventions in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill gives an AI assistant the conventions for building Android apps with the Meta Wearables DAT SDK. It covers the four public modules (mwdat-core, mwdat-camera, mwdat-display and mwdat-mockdevice), Kotlin patterns for DatResult, and the rule to create a DeviceSession first and attach Camera or Display only after the session reaches STARTED. It also lists naming conventions and common pitfalls.

It includes Gradle commands to build, test, install and lint the app. It points to a public remote MCP docs server at https://mcp.developer.meta.com/wearables that offers search_dat_docs without authentication. MockDeviceKit examples show how to test registration and streaming without hardware. It suits developers writing DAT SDK code on Android who want consistent patterns for errors, state and capabilities.

Written from the project's SKILL.md and checked against it.

What it can do

  • Quick referenceLists Gradle commands to build, test, install and lint the Android app.
  • Session setupShows how to initialize Wearables, create a DeviceSession and wait for STARTED.
  • Kotlin patternsExplains DatResult handling with fold, onSuccess and the two-parameter onFailure.
  • Error handlingShows how to check permission status and surface typed DatResult errors.
  • Naming conventionsMaps types such as DeviceSession, Camera, Stream and Display to their purpose.
  • MockDeviceKit testingShows how to enable MockDeviceKit and pair simulated glasses for tests.
  • search_dat_docsSearches current DAT docs through the public remote MCP server, if the editor supports it.
  • Common pitfallsLists mistakes to avoid, such as calling SDK APIs before Wearables.initialize.

What you need

  • Android development environment
  • Gradle wrapper (./gradlew) in the project
  • Meta DAT SDK for Android

Try asking

  • How should I create a DeviceSession and attach a camera in my DAT Android app?
  • Show me how to handle DatResult failures with fold and onFailure in Kotlin.
  • How do I test DAT camera streaming with MockDeviceKit without hardware?

Good to know

  • Covers Android and Kotlin conventions only.
  • Avoid getOrThrow in user-facing samples; surface typed DatResult errors instead.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: plugins/mwdat-android/skills/dat-conventions/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to dat-conventions

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

dat-conventions: common questions

Does this skill help with DatResult error handling in Kotlin?

Yes. It explains using fold, onSuccess and the two-parameter onFailure overload, which gives access to the typed DatError description. It notes that getOrElse receives a raw Throwable instead.

When can I add a camera to a DAT session?

Capabilities such as Camera or Display can only be attached once the session reports DeviceSessionState.STARTED. The skill warns against calling addCamera immediately after session.start().

Does the DAT docs MCP server need authentication?

No. The source says the public docs server at mcp.developer.meta.com/wearables does not require authentication, so no tokens, OAuth or custom headers are needed.

How do I install dat-conventions?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is dat-conventions free?

The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.

Is dat-conventions safe to use?

It scores 68 of 100. Grades: maintenance A, licence F, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to dat-conventions?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

dat-conventions Install

Add to stack

Loading.