meta-wearables-implementation-recipes
Turn a selected Meta Wearables API row and vertical-slice playbook into source-aligned Swift, Kotlin/Java, or Ray-Ban Display Web App implementation scaffolding with explicit compile, privacy, lifecycle, fallback, and physical-device gates. Use when building or reviewing a concrete iOS DAT, Android DAT, native Display, Web App, or cross-platform wearable feature after route selection.
- License 许可
- MIT
- 最近更新
- 2026-11-10
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- meta-wearables-implementation-recipes
- description
- Turn a selected Meta Wearables API row and vertical-slice playbook into source-aligned Swift, Kotlin/Java, or Ray-Ban Display Web App implementation scaffolding with explicit compile, privacy, lifecycle, fallback, and physical-device gates. Use when building or reviewing a concrete iOS DAT, Android DAT, native Display, Web App, or cross-platform wearable feature after route selection.
- allowed-tools
- Bash(uv run *), Read, Grep, Glob
- last_verified
- 1787356800000
02 资源文件 38
- 资产文件assets/meta-wearables-android-camera-starter/MetaWearablesAndroidCameraStarter.kt13.1 KB
- 资产文件assets/meta-wearables-android-camera-starter/README.md2.2 KB
- 资产文件assets/meta-wearables-android-display-starter/MetaWearablesAndroidDisplayStarter.kt14.1 KB
- 资产文件assets/meta-wearables-android-display-starter/README.md2.1 KB
- 资产文件assets/meta-wearables-android-mockdevice-starter/MetaWearablesAndroidMockDeviceStarter.kt5.7 KB
- 资产文件assets/meta-wearables-android-mockdevice-starter/README.md2.3 KB
- 资产文件assets/meta-wearables-android-target-starter/.gitignore122 B
- 资产文件assets/meta-wearables-android-target-starter/app/build.gradle.kts2.0 KB
- 资产文件assets/meta-wearables-android-target-starter/app/proguard-rules.pro145 B
- 资产文件assets/meta-wearables-android-target-starter/app/src/main/AndroidManifest.xml1.5 KB
- 资产文件assets/meta-wearables-android-target-starter/app/src/main/java/example/metawearables/targetstarter/MainActivity.kt2.3 KB
- 资产文件assets/meta-wearables-android-target-starter/app/src/main/res/values/strings.xml131 B
- 资产文件assets/meta-wearables-android-target-starter/build.gradle.kts125 B
- 资产文件assets/meta-wearables-android-target-starter/gradle.properties136 B
- 资产文件assets/meta-wearables-android-target-starter/gradle/libs.versions.toml631 B
- 资产文件assets/meta-wearables-android-target-starter/gradle/wrapper/gradle-wrapper.properties253 B
- 资产文件assets/meta-wearables-android-target-starter/README.md3.8 KB
- 资产文件assets/meta-wearables-android-target-starter/settings.gradle.kts1.1 KB
- 资产文件assets/meta-wearables-domain-starter/Package.swift520 B
- 资产文件assets/meta-wearables-domain-starter/Sources/MetaWearablesDomain/MetaWearablesDomain.swift5.9 KB
- 资产文件assets/meta-wearables-domain-starter/Tests/MetaWearablesDomainTests/MetaWearablesDomainTests.swift2.6 KB
- 资产文件assets/meta-wearables-ios-camera-starter/MetaWearablesCameraStarter.swift8.2 KB
- 资产文件assets/meta-wearables-ios-camera-starter/README.md2.1 KB
- 资产文件assets/meta-wearables-ios-display-starter/MetaWearablesDisplayStarter.swift6.9 KB
- 资产文件assets/meta-wearables-ios-mockdevice-starter/MetaWearablesMockDeviceStarter.swift4.4 KB
- 资产文件assets/meta-wearables-ios-mockdevice-starter/README.md2.0 KB
- 资产文件assets/meta-wearables-ios-mockdevice-test-client-starter/MetaWearablesMockDeviceTestClientStarter.swift4.2 KB
- 资产文件assets/meta-wearables-ios-mockdevice-test-client-starter/README.md2.0 KB
- 资产文件assets/meta-wearables-web-starter/index.html2.5 KB
- 资产文件assets/meta-wearables-web-starter/package.json128 B
- 脚本assets/meta-wearables-web-starter/src/display-state.mjs5.5 KB
- 脚本assets/meta-wearables-web-starter/src/main.mjs2.6 KB
- 脚本assets/meta-wearables-web-starter/test/display-state.test.mjs3.2 KB
- 参考文档references/implementation-handoff-template.yaml2.3 KB
- 参考文档references/implementation-recipes.md20.7 KB
- 参考文档references/starters.md4.2 KB
- 脚本scripts/validate_implementation_handoff.py8.8 KB
- 脚本scripts/validate_recipe_reference.py2.7 KB
03 SKILL.md 正文
Meta Wearables implementation recipes
Use this skill after route selection and the full-surface audit. It turns one outcome into a narrow adapter implementation handoff. It never flattens DAT, native Display, Web Apps, and phone fallback into one fictional SDK.
Apply the shared rules — evidence ladder, device labels, secrets, claims.
Read before acting
- Inspect the actual target project, package graph, deployment/min SDK, privacy configuration, entitlements/manifest, and existing adapter.
- Filter exact
IOS-*,AND-*,WEB-*, compatibility, and evidence rows from the source-pinned API manifest. - Choose one vertical-slice playbook and read the architecture contract for ownership, epochs, cancellation, fallback, and test seams.
- Read the iOS API atlas, Android API atlas, or Web Apps route for the selected target.
- Carry the selected entry from the capability/evidence plan — owner skills, route, privacy path, fallback, evidence levels, proof task IDs — into the handoff.
- Read the on-device compliance contract before describing camera, audio, sensor, storage, or network processing.
- When a build, connected, physical, signed, or release claim is in scope, read the target-preflight reference and carry its
PRE-*status into the handoff. - Pick a starter from the starter table. Load implementation-recipes.md only for the selected surface (iOS DAT 0.9 session/camera/Display, Android DAT 0.9
DeviceSession/Camera/Display, Web App focus/input/host-exit, shared domain outcome).
Scripts
$SKILL below is this skill's directory — the folder holding this SKILL.md. Find it by name in your tool's skills folder (some tools prefix it, e.g. meta-wearables-ops__meta-wearables-implementation-recipes).
Validate the implementation-handoff packet before scaffolding. The manifest and plan default to the sibling sdk-audit copies; owner_roles must name skills in this plugin:
uv run $SKILL/scripts/validate_implementation_handoff.py <packet>
With no packet argument it checks the bundled template; add --allow-placeholders for it. A real ready-for-implementation packet must resolve its target tuple and every to-verify field; --allow-placeholders is for drafts only.
After editing the bundled recipe reference, run uv run $SKILL/scripts/validate_recipe_reference.py. Missing sections, unbalanced code fences, lost markers, or secret-like literals are blockers.
Workflow
- Create and validate the handoff packet: route, API rows, evidence tasks, owners, target tuple, lifecycle, privacy/data path, tests, fallback, next proof task.
- Freeze the outcome, primary surface, phone fallback, exact target tuple, package/artifact or hosted revision, requested proof level, and open gates.
- Select one playbook and one starter; carry the playbook's API/evidence row IDs into the recipe.
- Resolve the release's generated API before writing imports. Mark unresolved names
to-verifywith a clear placeholder. - Build the smallest adapter: registration/permission, device and capability gate, session ownership, bounded data path, user projection, stop/cancellation, typed fallback.
- Run the shared-domain starter tests (and the Web App starter tests for a Web route), then add reducer/fake/MockDevice/browser cases before asking for a target build.
- Stop when a
to-verifysymbol or missing artifact blocks compile — do not hide it behind placeholder code.
Required output
- Selected playbook, normalized API/evidence row IDs, and the handoff packet path with its validator receipt.
- Exact target/package/artifact/hosted revision tuple and remaining
to-verifysymbols. - Adapter skeleton with explicit compile-gate comments and the starter test result.
- State owner, session epoch, resource stop order, cancellation, and fallback.
- Processing location, consent, retention/deletion, network, and thermal path.
- Reducer/fake/MockDevice/browser/build/connected/physical test cases.
- Next proof task, unresolved questions, and source-refresh trigger.
Hard boundaries
- Use the 0.9 consolidated
Cameraownership path; do not generate removedaddStreamcode from older examples. - Keep iOS
AsyncSequence/publisher, AndroidFlow/DatResult, and Web App browser events inside their adapters; translate them to typed product events. - Do not invent a native MWDATAudio module. Name phone microphone, HFP input, A2DP output, and remote processing separately.
Related skills
- Route planner — route choice and architecture
- SDK audit — API rows and capability plan
- DAT integration — iOS and Android DAT
- Web Apps
- Device proof
- Trust and release — on-device compliance
Sources
04 同仓库更多 Skills
no-description
暂无简介
good-skill
Fixture skill that satisfies every rule.
broken-link
Links to a reference file that does not exist.
Bad_Name
Name violates the kebab-case rule and does not match the directory.
skill-authoring
Write, review, and validate portable agent skills in SKILL.md format. Use when creating a new skill, editing an existing one, or asked whether a skill follows the Agent Skills spec.
weigh-bags
Record scale readings for each bag — empty (tare), outbound, current, final — and reconcile them against the itemised inventory to find unaccounted weight. Use when the user gives a bag weight, says how heavy something is, weighs their luggage, or asks how close to the limit they are. Appends to bags.yaml and runs scripts/reconcile.py.