session-lifecycle
Skill by facebook
Session Lifecycle is an agent skill that explains how to manage session and stream state in Android integrations of the DAT SDK. It covers session states, pause and resume behavior, and device availability monitoring.
Install session-lifecycle
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/session-lifecycle ~/.claude/skills/session-lifecycleRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/facebook/meta-wearables-dat-android /tmp/meta-wearables-dat-android && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/meta-wearables-dat-android/plugins/mwdat-android/skills/session-lifecycle ~/.gemini/antigravity-cli/skills/session-lifecycleAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Session Lifecycle is an agent skill that explains how to manage session and stream state in DAT SDK integrations on Android. It covers the DeviceSession states from IDLE to STOPPED, how to observe them with Kotlin flows, and when to add camera capabilities. It also describes the stream state flow, pause and resume behavior, and how to watch device availability through Wearables.devices.
The skill shows how to create a session with Wearables.createSession, start it, and handle failures through the errors flow. It notes that STOPPED is terminal, so a new session must be created for the next connection. It is aimed at developers building Android apps with the DAT SDK who need to handle pauses, disconnects and typed errors.
Written from the project's SKILL.md and checked against it.
What it can do
- Session statesExplains the IDLE, STARTING, STARTED, PAUSED, STOPPING and STOPPED states and the app action for each.
- Observe session stateShows how to collect session state and errors with Kotlin flows before calling start().
- Stream stateDescribes the camera stream state flow from STOPPED through STREAMING to CLOSED.
- Pause and resumeExplains what happens to the connection and capabilities when a session is paused.
- Device availabilityShows how to collect Wearables.devices and use device metadata before creating a new session.
- Error handling checklistLists typed DeviceSessionError and StreamError failures to surface in the app.
What you need
- Android
- DAT SDK integration
Try asking
- Explain the DeviceSession states and what my app should do in each one.
- Write Kotlin code to create a session and observe its state and errors.
- When should I create a new session after a session has stopped?
Good to know
- STOPPED is terminal, so a stopped session cannot be restarted.
- start() and stop() are fire-and-forget and return Unit.
- Adding a camera fails while the session is IDLE or after it is STOPPED.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: plugins/mwdat-android/skills/session-lifecycle/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to session-lifecycle
All alternatives →Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.
Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.
Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.
Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.
Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.
Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.
Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli
session-lifecycle: common questions
What is the difference between session state and stream state?
Session state tracks the DeviceSession from IDLE to STOPPED. Stream state is a separate flow that starts after a camera is added, from STOPPED through STREAMING to CLOSED.
What happens when a session is paused?
The device connection may stay active, attached capabilities stop doing useful work, and the app should wait for the next observed session state instead of forcing a restart.
Can a stopped session be restarted?
No. The source says STOPPED is terminal, so the app should call Wearables.createSession again for the next connection.
How do I install session-lifecycle?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is session-lifecycle free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is session-lifecycle 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 session-lifecycle?
Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.
