react-native-executorch
БесплатноБез исполняемых скриптовНе проверенBuild React Native apps with react-native-executorch: use pre-exported AI models and task hooks, integrate custom ExecuTorch .pte models, or build TypeScript…
от software-mansion-labs★ 313 звёзд на GitHubОб этом скилле
React Native ExecuTorch
Run AI on-device in React Native with a choice of integration levels:
- Ready-made task and model: choose a pre-exported configuration from
modelsand ause<Task>hook. Downloads, preprocessing, inference, postprocessing and React resource lifecycle are handled. - Custom model, existing task: supply your own
.pteand associated assets to a task whose input/output contract matches. A model need not be added to the shipped registry to use it in an app. - Custom model and pipeline: use
Model,Tensor,schema, domain operations and worklets to build the pipeline in TypeScript. Most integrations need no app-specific C++ code.
Treat custom models as a first-class path. Choose based on the user's model, inputs/outputs and desired control; do not restrict a custom architecture to the shipped task catalog or reimplement a supported task unnecessarily.
Version and environment first
For a new app, use the latest stable release and its matching documentation. For an existing app, inspect its installed version, lockfile, React Native/Expo setup, target platforms and relevant peers. Preserve the existing release unless an upgrade is needed for the user's task.
Read Getting Started
and use the site's version menu to select the matching release line. Default /docs/... links serve released docs;
/docs/next/... describes unreleased development, and /docs/<release-line>/... serves older snapshots.
Guide links in this skill use Markdown; the API reference links to HTML. Preserve the version segment
when selecting another release; if its Markdown page is unavailable, use the corresponding HTML page.
This skill provides integration guidance. Look up exact API signatures, model identifiers, platform requirements and dependency ranges in the matching docs and installed declarations. Consult migration guides for older apps rather than combining APIs from different releases.
Load references for the selected path
| Task | Read |
|---|---|
| Set up Expo/bare RN, install dependencies, provision binaries or manage downloads | setup.md |
| Select pre-exported models and use hooks for chat, vision, speech or retrieval | ready-made-tasks.md |
Export a PyTorch model, inspect a .pte, reuse a task, or implement a new pipeline |
custom-models.md |
| Diagnose setup, schema, execution, memory or output problems | troubleshooting.md |
For installation or native setup, start with setup.md. For custom models, read custom-models.md
before selecting an integration. Fetch the relevant version's detailed schema/backend/task docs as
needed; do not load every API page or model catalog.
Working approach
- Start by identifying the task and input/output contract. The ready-made catalog covers language models, vision-language chat, OCR, detection, segmentation, classification, depth, speech, embeddings, retrieval and more. Consult the version's Supported Models page for exact available configurations.
- Prefer a hook inside React components. Use
downloadpluscreate<Task>when manual lifetime or execution outside React is needed. Use primitives when the task contract does not fit. - Select model configuration objects from the documented registry. Verify identifiers and backends rather than guessing names or assuming every model has the same variants.
- Handle readiness, download progress and async errors before invoking inference. Serialize conflicting runs and stop work before disposing resources. Hooks manage React lifecycle; imperative pipelines require explicit disposal. Read the selected hook or factory documentation for its exact interface.
- A
.ptealone may be insufficient. Tokenizers, chat templates, labels, normalization, audio formats, tensor layouts and preprocessing/postprocessing are part of the model's contract. - Match the exported ExecuTorch format/operators and backend to the runtime shipped in the installed library. Inspect registered backends on the device; a successful download or schema inspection does not establish executable inference.
- For PyTorch →
.pte, use ExecuTorch Export Recipes. Follow its repository instructions, relevant export/backend skills and per-model dependency pins; seecustom-models.mdfor the workflow. Validate outputs before integrating the artifact in the app.
Finish with evidence
Typecheck
Установить react-native-executorch в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл react-native-executorch?
Build React Native apps with react-native-executorch: use pre-exported AI models and task hooks, integrate custom ExecuTorch .pte models, or build TypeScript inference pipelines from PyTorch model contracts. Use for setup, model selection, inference, export integration and troubleshooting; repository contribution workflows use the library's internal skills.
Как установить скилл react-native-executorch?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл react-native-executorch запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic