Manages Expo's Continuous Native Generation: keeps ios/ and android/ as build output from app.config.ts and config plugins. Use when adding plugins, Info.plist/AndroidManifest entries, or prebuild steps.
Ships in react-native. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Continuous Native Generation: ios/ and android/ are build output of app.config.ts, its config
plugins and the installed native packages. Every native change is a config key or one line in the
plugin list; local plugins are typed, idempotent and tested; the generated folders stay out of git
and out of every script's reach; a committed snapshot of the introspected native config makes each
native change visible in review. Two checkers prove it. Leaving this model is a recorded decision.
app.config.ts is the one config, and a pure function. No app.json, app.config.json or
second app.config.*; it returns the object synchronously, the same environment gives the same
JSON, it holds no null, and it applies no plugin in code. Why: Expo reads .ts first and ignores
the rest; a Promise is refused; the fingerprint hashes the config; null reaches the app as {}
(all verified on SDK 57). (single-config, config-evaluates, config-deterministic,
config-null, config-mods)ios/ and android/ are generated output. .gitignore (and .easignore, which replaces it
for EAS) ignores /ios and /android, anchored; git tracks nothing there; no npm script, scripts/
file or CI step writes into them. Why: SDK 57's prebuild deletes them by default, EAS prebuilds
only when they are absent, and an unanchored ios/ also hides a local module's Swift code.
(native-ignored, native-tracked, native-ignore-scope, easignore-native, native-edit)ios.infoPlist, ios.entitlements, locales,
android.permissions/blockedPermissions, ios.deploymentTarget and expo-build-properties
(SDK versions, manifestQueries, cleartext, frameworks) cover most needs; a plugin only for what
none covers. Why: keys are validated, introspectable and maintained by Expo across upgrades.
(builtin-first)assets/auto-plugins.json) is listed, with the options the app means, in every
variant; no plugin is listed twice; a permission a plugin adds whatever its options (expo-file-system's
storage pair, which every app gets through expo) is removed only by android.blockedPermissions
(exact case, WRITE_EXTERNAL_STORAGE): block it unless the app needs it (shared-storage access).
Why: the defaults add push and Sign in with Apple entitlements, permissions and English purpose
strings (seen in the reference app), and a run-once plugin silently drops a second entry's options
(verified). (auto-plugin-listed, plugin-duplicate)plugins/with-<capability>.ts, listed by path. Default export (a typed
ConfigPlugin<Options | undefined>, tagged @public), Expo's helpers from 'expo/config-plugins.js'
on SDK 57 (bare from SDK 58), never @expo/config-plugins. Why: npx expo config then shows the
file; the bare specifier fails with ERR_MODULE_NOT_FOUND once Node imports the file as an ES
module (verified). (plugin-entry, plugin-import)CodeGenerator.mergeContents or behind an includes check (inline or in a plugins/lib/ helper);
withDangerousMod carries // dangerous-mod: <reason>, writes files only inside it (or helpers
it calls), and writes them whole or guards an append. Why: only typed mods are
introspected; dangerous mods run first and break silently when the SDK template changes.
(dangerous-mod, text-mod-idempotent)prebuild --no-clean and
expo run:* rerun mods onto existing files (verified: an appending plugin left 1, 2, 3 copies).runMod
(test/config-plugins/run-mod.ts), a fresh config per test, a second run, bad options, the other
platform untouched; the Jest config's test roots include plugins/. Why: Expo ships no plugin
test harness, the with* helpers mutate the config they get, and an unreached test passes silently.
(plugin-test)plugins writes last and wins a shared key (verified). Two plugins on one file are tested
together. Why: otherwise a reorder silently changes the app.contracts/native-config.json
is regenerated with --write only after a deliberate change and committed with it. Why: the
generated folders never appear in a pull request; the snapshot shows a new permission or entitlement
from any plugin or package. (native-snapshot, native-drift)--no-clean in a
script; npx expo prebuild --clean before expo run:* or a local release build after any config,
plugin, package or variant change. Why: expo run:* builds an existing folder as it is (verified);
a layered prebuild depends on earlier runs. (prebuild-clean)contracts/native-generation.json "mode": "committed"
with a reason and decidedOn, both folders committed, no prebuild in any script; native keys
then change by hand. Why: committed folders and prebuild-only keys drift apart (expo-doctor reports
it). (native-mode)app.config.ts and go to step 6.
A new native package: dependency-management installs it, then list its plugin here (rule 4).templates/contracts/native-generation.json to contracts/; anchor /ios and /android in
.gitignore; make sure the Jest config's test roots include '<rootDir>/plugins/**/'
(unit-and-component-tests owns jest.config.js); copy templates/test/config-plugins/run-mod.ts
and its test. Then node ${CLAUDE_SKILL_DIR}/scripts/check-native-snapshot.mjs . --write and read
every key of contracts/native-config.json: it is the audit of what prebuild writes today.templates/plugins/with-android-optional-features.ts and its test as the shape (or keep them when
the app needs optional hardware); examples/with-gradle-jvm-args.ts
shows a gradle.properties mod. Pure transform, option validation, one typed mod per file.npx jest --ci --selectProjects unit --runTestsByPath plugins/<file>.test.ts, and
npx jest --listTests | grep plugins/ lists it.app.config.ts by path, with its options and a comment naming the owning skill, the
way examples/app-config-plugin-list.ts does. Variant-dependent
options are computed in the config (app-variants-and-environment owns the variants).APP_VARIANT=<v> EXPO_PUBLIC_APP_VARIANT=<v> npx expo config --type introspect --json
for each variant; node ${CLAUDE_SKILL_DIR}/scripts/check-native-snapshot.mjs . and read every
native-drift line; when each one is intended, rerun with --write. Text or dangerous mods also
get npx expo prebuild --clean --no-install --platform <p>, then the same with --no-clean, and a
look at the generated file (the change appears once).npm run typecheck, npx eslint . --max-warnings 0, npx jest --ci.node ${CLAUDE_SKILL_DIR}/scripts/check-native-generation.mjs . and the snapshot check.
Each FAIL names the file, the rule and the fix; references/pitfalls-and-rules.md
explains every rule and error text. Fix and rerun until both print RESULT: PASS.RESULT line, and what a build still has to show.app.config.ts is the only app config; it evaluates for every variant, twice the same, without null.plugins; every installed auto-applied package is listed; no entry twice.plugins/, listed by path, default-export a typed plugin, import expo/config-plugins.js (SDK 57), use typed mods, guard text mods, justify dangerous ones.npx jest --listTests lists it.contracts/native-config.json regenerated on purpose and committed with the change.--no-clean prebuild show the change once..gitignore ignores /ios and /android (anchored); git tracks nothing there; no script writes there or runs --no-clean; or the committed mode is recorded with its reason.SKIP jest.config.js [plugin-test] not yet created (unit-and-component-tests creates it). note: lines are information, not failures.node ${CLAUDE_SKILL_DIR}/scripts/check-native-snapshot.mjs . prints RESULT: PASSnode ${CLAUDE_SKILL_DIR}/scripts/check-native-generation.mjs . prints RESULT: PASSios/ in Xcode to fix a setting, or sed -i on AndroidManifest.xml in a script. The
next prebuild erases it and the build differs by machine. Put it in a key or a plugin.LSApplicationQueriesSchemes belongs in ios.infoPlist,
Android <queries> in expo-build-properties' manifestQueries, permissions in android.permissions.aps-environment entitlement the signing profile lacks, RECORD_AUDIO for an app
that never records, generic English purpose strings App Review may find too vague.import withX from './plugins/with-x.ts' and withX(config) in app.config.ts. It works and it
hides the plugin from npx expo config; list './plugins/with-x.ts' instead.'expo/config-plugins' on SDK 57 (or 'expo/config-plugins.js' on SDK 58), or
'@expo/config-plugins' at any time.--no-clean
run adds another copy; replace by identity or use CodeGenerator.mergeContents.const BASE: ExpoConfig in plugin tests. The helpers write config.mods onto it and
later tests run earlier tests' mods.npx expo run:ios after changing the config, without a clean prebuild. It builds the old project.npx expo prebuild --no-clean in CI or a build script. The output then depends on the runner's history.ios/ in .gitignore instead of /ios. A local Expo module's native folder is never committed..easignore that forgets /ios and /android. EAS uploads the stale folders and skips prebuild.--write on the native snapshot to make the check pass. Read each drift line first; an unexpected
permission is the finding.| File | What it is | Read/run when |
|---|---|---|
| references/cng-and-native-folders.md | Why generated folders; what SDK 57's prebuild does (clean default, package.json edits); .gitignore/.easignore; EAS and expo run; local modules; leaving and returning to CNG; timings | Workflow steps 2 and 9 |
| references/app-config.md | How Expo finds, loads and serializes the config; context; determinism; what ships; expo config types; built-in keys before plugins; auto-applied plugins; variants | Workflow step 1 |
| references/config-plugins.md | Resolution and errors, local plugin form, imports per SDK, typed/text/dangerous mods, mod order, idempotence, options, run-once, lifecycle code in modules | Workflow step 3 |
| references/testing-and-proof.md | The four proof levels, runMod recipes, Jest reach, introspection and the snapshot, prebuild checks, blind spots, CI | Workflow steps 4 and 6 |
| references/pitfalls-and-rules.md | Symptoms with causes and fixes, every rule of both checkers, options, config keys, expected lines | Workflow step 8, whenever something fails |
templates/plugins/with-android-optional-features.ts | A complete local plugin: optional Android hardware features (<uses-feature required="false">) | Workflow step 3 |
templates/plugins/with-android-optional-features.test.ts | Its tests: through runMod, iOS untouched, replace and keep, idempotent, bad options | With the plugin |
templates/test/config-plugins/run-mod.ts | Runs the mods queued for one native file the way prebuild does, on test contents | Workflow step 2 |
templates/test/config-plugins/run-mod.test.ts | Its tests, including mod order and the mutation of the config | With run-mod.ts |
templates/contracts/native-generation.json | The native-folder model: generated (default) or committed with reason and date | Workflow step 2; leaving CNG |
| examples/app-config-plugin-list.ts | The shape of a Tasks app's plugin list, one owner comment per line | Workflow step 5 |
| examples/with-gradle-jvm-args.ts | A gradle.properties plugin shape (replace by key) | Workflow step 3 |
| examples/native-change-report.md | A report with real snapshot drift and proof output | Workflow step 10 |
scripts/check-native-generation.mjs | The CNG checker: config, plugin list, local plugin sources and tests, native folders, scripts, contract | Workflow step 8 |
scripts/check-native-snapshot.mjs | Introspects the native config, compares it with contracts/native-config.json; --write regenerates it | Workflow steps 2 and 6 |
scripts/lib/cng-scan.mjs | Helpers: ignore-file matcher, config evaluation, plugin entries, Jest reach | Only when changing a checker |
scripts/lib/source-scan.mjs | Dependency-free source lexer (synced from the library; do not edit here) | Only when changing a checker |
scripts/check-lib.mjs | Shared checker library (synced from the library; do not edit here) | Never by hand |
scripts/selftest.mjs | Runs both checkers against the fixtures | After changing a checker, a template or the data |
tests/bases/ | The fixture base apps: a Tasks app (with planted decoys added by the suite) and a saved introspection with its snapshot | When adding a fixture |
tests/fixtures/ | Overlay cases per checker: good, one bad case per rule, pass and error cases | When adding a rule |
assets/auto-plugins.json | The packages SDK 57's prebuild applies on its own, the exempt ones, observed defaults, and the permissions only blockedPermissions removes | When the SDK moves |
assets/shared.json | The shared files this skill syncs in | When adding a shared file |
app-variants-and-environment - app.config.ts identities per variant and the APP_VARIANT resolver this config calls.dependency-management - installing the native package before its plugin is listed.native-modules-and-new-architecture - native code in a local Expo module (Expo's official expo-module skill is the API reference).unit-and-component-tests - the Jest config whose test roots must include plugins/.typescript-and-lint-rules - the Node-code lint block and .gitignore for app.config.ts and plugins/.naming-conventions - plugins/with-<capability>.ts and the with<Capability> export.architecture-and-boundaries - app code never imports app.config.ts or plugins/.expo-sdk-upgrade - the SDK move (the import spelling flip, template changes plugins must survive).ios-simulator-build, android-emulator-build - clean prebuild and builds on named devices.eas-build-and-submit - EAS profiles; EAS runs prebuild when the folders are absent.ota-updates - runtime versions from the fingerprint, which hashes this config and its plugins.permissions-and-system-prompts, privacy-and-store-declarations - purpose-string wording and the store declarations the native snapshot feeds.expo-project-bootstrap - a new app's first config and .gitignore.assets/auto-plugins.json (opens in a new tab)assets/shared.json (opens in a new tab)examples/app-config-plugin-list.ts (opens in a new tab)examples/native-change-report.md (opens in a new tab)examples/with-gradle-jvm-args.ts (opens in a new tab)references/app-config.md (opens in a new tab)references/cng-and-native-folders.md (opens in a new tab)references/config-plugins.md (opens in a new tab)references/pitfalls-and-rules.md (opens in a new tab)references/testing-and-proof.md (opens in a new tab)scripts/check-lib.mjs (opens in a new tab)scripts/check-native-generation.mjs (opens in a new tab)scripts/check-native-snapshot.mjs (opens in a new tab)scripts/lib/cng-scan.mjs (opens in a new tab)scripts/lib/source-scan.mjs (opens in a new tab)scripts/selftest.mjs (opens in a new tab)templates/contracts/native-generation.json (opens in a new tab)templates/plugins/with-android-optional-features.test.ts (opens in a new tab)templates/plugins/with-android-optional-features.ts (opens in a new tab)templates/test/config-plugins/run-mod.test.ts (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/react-native:expo-prebuild-and-config-pluginsfrom react-native
npx claudepluginhub zakariaf/reactnative-skills --plugin react-native73 skills in this plugin
/accessibility-as-codeEnforces a11y labels, 44pt targets, 200% text, VoiceOver, TalkBack. Use when adding a pressable, swipe or a11y label, text clips when large, contrast fails or Reduce Motion is missed. Not for RTL (rtl-and-direction)./adaptive-layoutLays screens out by window, not device: breakpoints, master-detail panes, readable widths, grids. Use when making screens responsive or for tablets, iPad, foldables, rotation, split screen, orientation lock. Not for tab bars (navigation-and-routing)./admob-ads-and-consentBuilds AdMob ads behind a port - banners, interstitials, rewarded, UMP consent then ATT, pacing, ADS_MODE test IDs. Use when touching ads, consent, ATT, ad IDs or rewarded perks. Not for purchases (in-app-purchases).Other plugins' skills for the same job