core-guidelines

Installation
SKILL.md

Library architecture and conventions

Paths below are relative to packages/react-native-executorch/. Use the repository AGENTS.md to select task-specific skills and verification.

Core and extensions

The library has two layers:

  • cpp/core/ and src/core/ implement domain-agnostic tensors, models, schemas, runtime execution and resource ownership. Extend core when a foundational capability is needed; keep task-specific behavior out of it and verify affected callers.
  • cpp/extensions/<domain>/ implements native domain operations. src/extensions/<domain>/ contains wrappers, utilities and TypeScript task pipelines; src/hooks/ manages React loading and lifecycle.

Native and TypeScript domains mirror each other where bindings are needed. A task built from existing operations can be entirely TypeScript. Add C++ when the operation needs a new native capability or measurements justify it; see native extension guidance.

Installs
2
GitHub Stars
1.8K
First Seen
Oct 25, 2026
Security Audits