Build on-device AI features in React Native and Expo apps with React Native ExecuTorch.

No licenceAuto-check passedAI & LLM Engineering

Install On Device AI

skills CLI
$ npx skills add software-mansion-labs/skills --skill on-device-ai -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install software-mansion-labs/skills on-device-ai --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/software-mansion-labs/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/react-native-best-practices/references/on-device-ai .claude/skills/on-device-ai && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
on-device-ai
GitHub stars
291
Token cost
~2.3k tokens
SKILL.md length
587 words
Files
5
Skills in repo
20
Repo updated
First seen
Licence
None found

At a glance

Build on-device AI features in React Native and Expo apps with React Native ExecuTorch.

  • Adding AI to a mobile app without cloud dependencies — chatbots
  • SKILL.md covers Decision Tree, Critical Rules, Minimal Setup and Hook Quick Reference, plus 3 more sections
  • Calls npx
  • Image classification

What it does

On Device AI is an agent skill from software-mansion-labs/skills. Build on-device AI features in React Native and Expo apps with React Native ExecuTorch. Use when adding AI to a mobile app without cloud dependencies — chatbots, image classification, object detection, OCR, semantic or instance segmentation, style transfer, image generation, pose estimation, speech-to-text, text-to-speech, voice activity detection, semantic search with embeddings, tokenization, privacy / PII redaction, or vision-language image understanding. Also use when mentioning offline / on-device / privacy…

Its SKILL.md is about 2.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files (for example `llm.md`, `setup.md` and `speech.md`).

It sits in AI & LLM Engineering, covering Cross-platform mobile apps, Computer vision and Structured output and tool calling. It works with React Native and Expo. The repository describes itself as: Software Mansion's set of skills for AI-assisted React Native development.

When your agent uses it

  • Adding AI to a mobile app without cloud dependencies — chatbots
  • Image classification
  • Object detection
  • Instance segmentation

Example prompts

  • “/on-device-ai”

Requirements

  • Node.js

What it can do on your machine

Read from SKILL.md and the folder at commit e3f00cd. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • docs.swmansion.com
    • github.com
    • huggingface.co

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

On Device AI loads about 2.3k tokens when it runs. Until then it costs about 255 tokens; SKILL.md has 587 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~255
When it runs · the whole SKILL.md, loaded when a task matches
~2.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 587 words (~2,318 tokens).

“Software Mansion's production patterns for on-device AI in React Native and Expo using React Native ExecuTorch.”

— opening of SKILL.md by software-mansion-labs
name
on-device-ai

Read the full SKILL.md on GitHub

Files

SKILL.md and 4 other files in skills/react-native-best-practices/references/on-device-ai of software-mansion-labs/skills.

  • SKILL.md
  • llm.md
  • setup.md
  • speech.md
  • vision.md

Open the folder on GitHubat commit e3f00cd

Compare with similar skills

On Device AI next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

On Device AI compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
On Device AI this skillsoftware-mansion-labs/skills291—~2.3kAutomated safety check: PassNone
AI SDK Developmenttrypostit/trypost6911 repos~3.5kAutomated safety check: PassMIT
Xsaimoeru-ai/airi50k1 repos~1.3kAutomated safety check: PassMIT
React Native Best Practicesvercel-labs/openreview1.7k17 repos~1.1kAutomated safety check: PassMIT
Appllama App Design SkillAppllama/appllama-skills2.5k1 repos~5kAutomated safety check: PassMIT
Appllama UsageAppllama/appllama-skills2.5k1 repos~1.6kAutomated safety check: PassMIT

Similar skills

  • AI SDK Development

    trypostit/trypost

    TRIGGER when working with ai-sdk which is Laravel official first-party AI SDK.

    691 GitHub starsUsed in 1 repo~3.5k tokens
    AI & LLM EngineeringAuto-check passed
  • Xsai

    moeru-ai/airi

    A skill your agent uses when the user is building with xsai or any @xsai/ package, or is evaluating xsAI for a small OpenAI-compatible workflow with text generation, streaming, tool calling…

    50k GitHub starsUsed in 1 repo~1.3k tokens
    AI & LLM EngineeringAuto-check passed
  • React Native Best Practices

    vercel-labs/openreview

    Official

    A prioritized rule set for React Native and Expo apps covering list performance, animation, navigation, UI patterns, state, rendering, monorepos and configuration.

    1.7k GitHub starsUsed in 17 repos~1.1k tokens
    MobileAuto-check passed
  • Appllama App Design Skill

    Appllama/appllama-skills

    Build native-feeling, benchmark-quality mobile app screens (Expo / React Native).

    2.5k GitHub starsUsed in 1 repo~5k tokens
    MobileAuto-check passed
  • Appllama Usage

    Appllama/appllama-skills

    Use the Appllama MCP (mcp.appllama.io) well — research real top-grossing mobile apps, their screens, flows, and UI elements, then build from what you learn.

    2.5k GitHub starsUsed in 1 repo~1.6k tokens
    MobileAuto-check passed
  • Release Sample Sweep

    Atmosphere/atmosphere

    Run the pre-release end-to-end sweep of every user-facing surface — the 33 samples under samples/ (booted from their packaged artifacts and driven in a real browser via chrome-devtools MCP), the…

    3.8k GitHub stars~4.2k tokensUpdated yesterday
    MobileAuto-check passed

More from software-mansion-labs/skills

All 20 skills in this repo
  • Detour Onboarding

    software-mansion-labs/skills

    Complete onboarding guide for developers who are new to Detour, the open-source deferred deep linking SDK by Software Mansion.

    291 GitHub stars~2.8k tokensUpdated 12 days ago
    Auto-check passed
  • Typegpu

    software-mansion-labs/skills

    TypeGPU is type-safe WebGPU in TypeScript. An agent skill from software-mansion-labs/skills.

    291 GitHub starsUsed in 2 repos~5.6k tokens
    Auto-check passed
  • Enable Worklets Bundle Mode

    software-mansion-labs/skills

    Enable react-native-worklets Bundle Mode (imports inside worklets, third party libraries on worklet runtimes) in an Expo, RN CLI or brownfield React Native app, including the mandatory…

    291 GitHub stars~4k tokensUpdated 12 days ago
    Auto-check passed
  • Moq Kit

    software-mansion-labs/skills

    Software Mansion's moq-kit — native Swift (iOS) and Kotlin (Android) SDKs for Media over QUIC (moq-lite) live streaming: sub-second-latency playback, camera/microphone/screen publishing, and…

    291 GitHub stars~5k tokensUpdated 12 days ago
    Auto-check passed
  • React Native Moq

    software-mansion-labs/skills

    Software Mansion's react-native-moq — Media over QUIC (MoQ) live streaming for React Native: sub-second-latency video/audio playback, camera/mic/screen publishing, and realtime data tracks over a…

    291 GitHub stars~1.6k tokensUpdated 12 days ago
    Auto-check passed
  • Expo Horizon

    software-mansion-labs/skills

    Software Mansion's guide for migrating Expo SDK apps to Meta Quest using expo-horizon packages.

    291 GitHub stars~2.8k tokensUpdated 12 days ago
    Auto-check passed

Questions about On Device AI

What does On Device AI do?

Build on-device AI features in React Native and Expo apps with React Native ExecuTorch. On Device AI is an agent skill from software-mansion-labs/skills. Build on-device AI features in React Native and Expo apps with React Native ExecuTorch.

When should I use On Device AI?

On Device AI fits situations like: adding AI to a mobile app without cloud dependencies — chatbots; image classification; object detection; instance segmentation.

How do I install On Device AI in Claude Code?

Run `npx skills add software-mansion-labs/skills --skill on-device-ai -a claude-code`. Or copy the skill folder (skills/react-native-best-practices/references/on-device-ai in software-mansion-labs/skills) into .claude/skills/on-device-ai in your project. Claude Code loads it when a task matches its description.

How do I install On Device AI in Codex?

Run `npx skills add software-mansion-labs/skills --skill on-device-ai -a codex`. Or copy the skill folder (skills/react-native-best-practices/references/on-device-ai in software-mansion-labs/skills) into .agents/skills/on-device-ai in your project. Codex loads it when a task matches its description.

Can I use On Device AI in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add software-mansion-labs/skills --skill on-device-ai -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/on-device-ai, .gemini/skills/on-device-ai, .github/skills/on-device-ai and .opencode/skills/on-device-ai in your project.

What does On Device AI need to run?

Going by SKILL.md and its folder, On Device AI needs the command-line tools its instructions call (npx). Our summary lists: Node.js.

Does On Device AI access the network?

SKILL.md names 3 domains. As links in the text: docs.swmansion.com, github.com and huggingface.co. This is read from the text; nothing was executed.

Is On Device AI safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does On Device AI use?

No licence was found for On Device AI or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does On Device AI use?

About 2.3k tokens (SKILL.md is roughly 9.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to On Device AI?

Skills that share tags, products or a category with On Device AI: AI SDK Development (trypostit/trypost, 691 stars), Xsai (moeru-ai/airi, 50k stars), React Native Best Practices (vercel-labs/openreview, 1.7k stars) and Appllama App Design Skill (Appllama/appllama-skills, 2.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains On Device AI?

software-mansion-labs (a GitHub organization) maintains it in software-mansion-labs/skills, which has 291 GitHub stars. The repository holds 20 skills in this directory. The repository was last updated on September 28, 2026.

Source: software-mansion-labs/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.