add-native
Plugin check: Run
node "${PLUGIN_ROOT}/scripts/check-version.js"- if it outputs a message, show it to the user before proceeding.
📋 Shared instructions: shared-instructions.md — read first.
Working directory: before any project read or command, execute
native-artifact-compatibility.md Step 0.
Resolve --working-dir / owner context there; use the resolved absolute root for
every shell call and file tool, not a previous shell's cwd.
Add Native Capability
Entry routing: use the shared App feature entry points preflight before the workflow below.
The leaf generates typed wrappers under src/native/ for native capabilities that
the upstream template already ships. Screens import the wrapper instead of touching
Expo modules directly, so the discriminated-union result contract stays consistent.