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

session-lifecycle

Skill by facebook

Explains device session states, pause and resume, and availability monitoring for iOS apps built on the DAT SDK with Meta glasses. Useful for developers who need to handle session changes correctly.

  • Score 69
  • 599 stars
  • NOASSERTION
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install session-lifecycle

Built from the published package, never by AI.

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

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

Step-by-step: install session-lifecycle in Claude Code

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

About

Session Lifecycle is an agent skill that guides iOS developers in managing device session states in DAT SDK integrations. It describes six states, from idle through starting, started, paused, stopping and stopped, and says what the app should do in each. The DAT SDK runs work inside sessions. Meta glasses expose device sessions and short system-owned transactions, and the app observes state changes while the device decides when to transition.

The skill shows how to observe state with stateStream() or statePublisher, handle DeviceSessionError cases, and track stream state transitions. It also covers pause and resume, where the app should wait rather than restart, and device availability through devicesStream() and DeviceSelector. It is aimed at developers building iOS apps on the DAT SDK who need to handle session changes.

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

What it can do

  • Session statesDescribes six session states from idle to stopped and the app action for each.
  • Observing session stateShows how to react to started, paused and stopped states with stateStream().
  • Session errorsLists DeviceSessionError cases and how to handle them, including typed throws on start().
  • Stream state transitionsExplains how a stream attached to a started session moves through its states.
  • Pause and resumeExplains that paused sessions keep the connection and should not be restarted by the app.
  • Device availabilityShows how to monitor available devices with devicesStream() and activeDeviceStream().

What you need

  • iOS
  • DAT SDK integration
  • Meta glasses

Try asking

  • Show me how to observe DeviceSession state changes in my iOS app
  • How should my DAT SDK app handle a paused device session?
  • Monitor when a Meta glasses device becomes available for a session

Good to know

  • Covers iOS only.
  • The device decides when sessions change state, so the app cannot control transitions.

Security check

A

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

Checked automatically: plugins/mwdat-ios/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 →
deploy-release-testvercel
94

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.

AAA Skill 144k
deepeval-tracingconfident-ai
94

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.

AAA Skill 20k
azure-container-registry-cligithub
94

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.

AAA Skill 42k
crabbox-appsopenclaw
94

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.

AAA Skill 395k
gke-batch-hpcgoogle
94

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.

AAA Skill 25k
gke-cost-analysisgoogle
94

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.

AAA Skill 25k

Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli

session-lifecycle: common questions

Who decides when a device session changes state?

The device decides when to transition. The app observes state changes and should not infer the cause of a transition.

Can my app restart a session while it is paused?

No. The skill says to wait for the session to return to started or move to stopped before doing more work.

Does reconnecting Bluetooth restart a session?

No. Restoring Bluetooth does not restart sessions, so start a new session once the device is available again.

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 69 of 100. Grades: maintenance A, licence F, quality A. 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.

session-lifecycle Install

Add to stack

Loading.