[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F28KEXWVXP0DJD6318XG38":3,"skill-same:01M7F28KEXWVXP0DJD6318XG38":207},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7F28KEXWVXP0DJD6318XG38","expo-prebuild-and-config-plugins",null,"Keeps ios\u002F and android\u002F generated from app.config.ts and tested config plugins. Use when adding a plugin, an Info.plist or AndroidManifest entry, or a prebuild step. Not for native code (native-modules-and-new-architecture).","zakariaf\u002FReactNative-Skills","zakariaf","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F2259803?v=4","01M7DEF0YMPS6Y6RQ4WGA0JH9R","Zakaria Fatahi","01M7F1VKYEK96M7SYJE1EPGD0A",13,"MIT","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexpo-prebuild-and-config-plugins\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: expo-prebuild-and-config-plugins\ndescription: Keeps ios\u002F and android\u002F generated from app.config.ts and tested config plugins. Use when adding a plugin, an Info.plist or AndroidManifest entry, or a prebuild step. Not for native code (native-modules-and-new-architecture).\n---\n\n# Expo prebuild and config plugins\n\nContinuous Native Generation: `ios\u002F` and `android\u002F` are build output of `app.config.ts`, its config\nplugins and the installed native packages. Every native change is a config key or one line in the\nplugin list; local plugins are typed, idempotent and tested; the generated folders stay out of git\nand out of every script's reach; a committed snapshot of the introspected native config makes each\nnative change visible in review. Two checkers prove it. Leaving this model is a recorded decision.\n\n## Rules that must hold\n\n1. **`app.config.ts` is the one config, and a pure function.** No `app.json`, `app.config.json` or\n   second `app.config.*`; it returns the object synchronously, the same environment gives the same\n   JSON, it holds no `null`, and it applies no plugin in code. Why: Expo reads `.ts` first and ignores\n   the rest; a Promise is refused; the fingerprint hashes the config; `null` reaches the app as `{}`\n   (all verified on SDK 57). (`single-config`, `config-evaluates`, `config-deterministic`,\n   `config-null`, `config-mods`)\n2. **`ios\u002F` and `android\u002F` are generated output.** `.gitignore` (and `.easignore`, which replaces it\n   for EAS) ignores `\u002Fios` and `\u002Fandroid`, anchored; git tracks nothing there; no npm script, `scripts\u002F`\n   file or CI step writes into them. Why: SDK 57's prebuild deletes them by default, EAS prebuilds\n   only when they are absent, and an unanchored `ios\u002F` also hides a local module's Swift code.\n   (`native-ignored`, `native-tracked`, `native-ignore-scope`, `easignore-native`, `native-edit`)\n3. **A config key before a plugin.** `ios.infoPlist`, `ios.entitlements`, `locales`,\n   `android.permissions`\u002F`blockedPermissions`, `ios.deploymentTarget` and expo-build-properties\n   (SDK versions, `manifestQueries`, cleartext, frameworks) cover most needs; a plugin only for what\n   none covers. Why: keys are validated, introspectable and maintained by Expo across upgrades.\n   (`builtin-first`)\n4. **Nothing reaches the native projects implicitly.** Every installed package whose plugin prebuild\n   applies on its own (`assets\u002Fauto-plugins.json`) is listed, with the options the app means, in every\n   variant; no plugin is listed twice; a permission a plugin adds whatever its options (expo-file-system's\n   storage pair, which every app gets through `expo`) is removed only by `android.blockedPermissions`\n   (exact case, `WRITE_EXTERNAL_STORAGE`): block it unless the app needs it (shared-storage access).\n   Why: the defaults add push and Sign in with Apple entitlements, permissions and English purpose\n   strings (seen in the reference app), and a run-once plugin silently drops a second entry's options\n   (verified). (`auto-plugin-listed`, `plugin-duplicate`)\n5. **Local plugins live in `plugins\u002Fwith-\u003Ccapability>.ts`, listed by path.** Default export (a typed\n   `ConfigPlugin\u003COptions | undefined>`, tagged `@public`), Expo's helpers from `'expo\u002Fconfig-plugins.js'`\n   on SDK 57 (bare from SDK 58), never `@expo\u002Fconfig-plugins`. Why: `npx expo config` then shows the\n   file; the bare specifier fails with `ERR_MODULE_NOT_FOUND` once Node imports the file as an ES\n   module (verified). (`plugin-entry`, `plugin-import`)\n6. **Typed mods first; text mods merge; dangerous mods are justified.** A text mod edits through\n   `CodeGenerator.mergeContents` or behind an `includes` check (inline or in a `plugins\u002Flib\u002F` helper);\n   `withDangerousMod` carries `\u002F\u002F dangerous-mod: \u003Creason>`, writes files only inside it (or helpers\n   it calls), and writes them whole or guards an append. Why: only typed mods are\n   introspected; dangerous mods run first and break silently when the SDK template changes.\n   (`dangerous-mod`, `text-mod-idempotent`)\n7. **Every plugin is idempotent and validates its options.** Applying it twice equals once; a bare\n   entry or a bad option throws a message showing the right entry. Why: `prebuild --no-clean` and\n   `expo run:*` rerun mods onto existing files (verified: an appending plugin left 1, 2, 3 copies).\n8. **Every local plugin has a sibling test that imports it and that Jest runs, through Expo's own mod chain.** `runMod`\n   (`test\u002Fconfig-plugins\u002Frun-mod.ts`), a fresh config per test, a second run, bad options, the other\n   platform untouched; the Jest config's test roots include `plugins\u002F`. Why: Expo ships no plugin\n   test harness, the `with*` helpers mutate the config they get, and an unreached test passes silently.\n   (`plugin-test`)\n9. **One owner per native key, and a deliberate order.** Mods run newest first: the plugin listed\n   first in `plugins` writes last and wins a shared key (verified). Two plugins on one file are tested\n   together. Why: otherwise a reorder silently changes the app.\n10. **Native changes are proven by introspection and reviewed as a snapshot.** `contracts\u002Fnative-config.json`\n    is regenerated with `--write` only after a deliberate change and committed with it. Why: the\n    generated folders never appear in a pull request; the snapshot shows a new permission or entitlement\n    from any plugin or package. (`native-snapshot`, `native-drift`)\n11. **Prebuild is clean in scripts and CI, and before every local build.** Never `--no-clean` in a\n    script; `npx expo prebuild --clean` before `expo run:*` or a local release build after any config,\n    plugin, package or variant change. Why: `expo run:*` builds an existing folder as it is (verified);\n    a layered prebuild depends on earlier runs. (`prebuild-clean`)\n12. **Leaving CNG is a recorded decision.** `contracts\u002Fnative-generation.json` `\"mode\": \"committed\"`\n    with a `reason` and `decidedOn`, both folders committed, no prebuild in any script; native keys\n    then change by hand. Why: committed folders and prebuild-only keys drift apart (expo-doctor reports\n    it). (`native-mode`)\n\n## Workflow\n\n1. **Place the change.** Read [references\u002Fapp-config.md](references\u002Fapp-config.md) (\"Built-in keys\n   before plugins\", \"Auto-applied plugins\"). A key covers it: edit `app.config.ts` and go to step 6.\n   A new native package: dependency-management installs it, then list its plugin here (rule 4).\n2. **First time in a repo:** read [references\u002Fcng-and-native-folders.md](references\u002Fcng-and-native-folders.md);\n   copy `templates\u002Fcontracts\u002Fnative-generation.json` to `contracts\u002F`; anchor `\u002Fios` and `\u002Fandroid` in\n   `.gitignore`; make sure the Jest config's test roots include `'\u003CrootDir>\u002Fplugins\u002F**\u002F'`\n   (unit-and-component-tests owns `jest.config.js`); copy `templates\u002Ftest\u002Fconfig-plugins\u002Frun-mod.ts`\n   and its test. Then `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-native-snapshot.mjs . --write` and read\n   every key of `contracts\u002Fnative-config.json`: it is the audit of what prebuild writes today.\n3. **Write the plugin** when no key covers the need: read\n   [references\u002Fconfig-plugins.md](references\u002Fconfig-plugins.md); copy\n   `templates\u002Fplugins\u002Fwith-android-optional-features.ts` and its test as the shape (or keep them when\n   the app needs optional hardware); [examples\u002Fwith-gradle-jvm-args.ts](examples\u002Fwith-gradle-jvm-args.ts)\n   shows a gradle.properties mod. Pure transform, option validation, one typed mod per file.\n4. **Test it** per [references\u002Ftesting-and-proof.md](references\u002Ftesting-and-proof.md) (levels 1 and 2):\n   `npx jest --ci --selectProjects unit --runTestsByPath plugins\u002F\u003Cfile>.test.ts`, and\n   `npx jest --listTests | grep plugins\u002F` lists it.\n5. **List it** in `app.config.ts` by path, with its options and a comment naming the owning skill, the\n   way [examples\u002Fapp-config-plugin-list.ts](examples\u002Fapp-config-plugin-list.ts) does. Variant-dependent\n   options are computed in the config (app-variants-and-environment owns the variants).\n6. **Prove it:** `APP_VARIANT=\u003Cv> EXPO_PUBLIC_APP_VARIANT=\u003Cv> npx expo config --type introspect --json`\n   for each variant; `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-native-snapshot.mjs .` and read every\n   `native-drift` line; when each one is intended, rerun with `--write`. Text or dangerous mods also\n   get `npx expo prebuild --clean --no-install --platform \u003Cp>`, then the same with `--no-clean`, and a\n   look at the generated file (the change appears once).\n7. **Run the app's gates:** `npm run typecheck`, `npx eslint . --max-warnings 0`, `npx jest --ci`.\n8. **Check:** `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-native-generation.mjs .` and the snapshot check.\n   Each `FAIL` names the file, the rule and the fix; [references\u002Fpitfalls-and-rules.md](references\u002Fpitfalls-and-rules.md)\n   explains every rule and error text. Fix and rerun until both print `RESULT: PASS`.\n9. **Leaving or returning to CNG:** stop and ask the developer first; it changes how every later\n   native change is made. Then follow \"When to leave CNG\" or \"Coming back to CNG\" in\n   [references\u002Fcng-and-native-folders.md](references\u002Fcng-and-native-folders.md).\n10. **Report** like [examples\u002Fnative-change-report.md](examples\u002Fnative-change-report.md): what changed,\n    the snapshot diff, the proof commands and every `RESULT` line, and what a build still has to show.\n\n## Definition of done\n\n- [ ] `app.config.ts` is the only app config; it evaluates for every variant, twice the same, without `null`.\n- [ ] Every native change is a config key or one entry in `plugins`; every installed auto-applied package is listed; no entry twice.\n- [ ] Local plugins sit in `plugins\u002F`, listed by path, default-export a typed plugin, import `expo\u002Fconfig-plugins.js` (SDK 57), use typed mods, guard text mods, justify dangerous ones.\n- [ ] Each plugin's sibling test passes, applies the plugin twice, covers bad options, and `npx jest --listTests` lists it.\n- [ ] Introspection reviewed for each variant; `contracts\u002Fnative-config.json` regenerated on purpose and committed with the change.\n- [ ] Text or dangerous mods: a clean and then a `--no-clean` prebuild show the change once.\n- [ ] `.gitignore` ignores `\u002Fios` and `\u002Fandroid` (anchored); git tracks nothing there; no script writes there or runs `--no-clean`; or the committed mode is recorded with its reason.\n- [ ] Expected SKIP line only while the app has no Jest config: `SKIP jest.config.js [plugin-test] not yet created (unit-and-component-tests creates it)`. `note:` lines are information, not failures.\n- [ ] `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-native-snapshot.mjs .` prints `RESULT: PASS`\n- [ ] `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-native-generation.mjs .` prints `RESULT: PASS`\n\n## Anti-patterns\n\n- **Opening `ios\u002F` in Xcode to fix a setting, or `sed -i` on `AndroidManifest.xml` in a script.** The\n  next prebuild erases it and the build differs by machine. Put it in a key or a plugin.\n- **A plugin for something a key does.** `LSApplicationQueriesSchemes` belongs in `ios.infoPlist`,\n  Android `\u003Cqueries>` in expo-build-properties' `manifestQueries`, permissions in `android.permissions`.\n- **Leaving an installed package off the plugin list \"because it works\".** Prebuild applies its plugin\n  with defaults: an `aps-environment` entitlement the signing profile lacks, `RECORD_AUDIO` for an app\n  that never records, generic English purpose strings App Review may find too vague.\n- **`import withX from '.\u002Fplugins\u002Fwith-x.ts'` and `withX(config)` in `app.config.ts`.** It works and it\n  hides the plugin from `npx expo config`; list `'.\u002Fplugins\u002Fwith-x.ts'` instead.\n- **`'expo\u002Fconfig-plugins'` on SDK 57** (or `'expo\u002Fconfig-plugins.js'` on SDK 58), or\n  `'@expo\u002Fconfig-plugins'` at any time.\n- **Appending to the manifest, a Gradle file or the Podfile without checking.** Every `--no-clean`\n  run adds another copy; replace by identity or use `CodeGenerator.mergeContents`.\n- **A shared `const BASE: ExpoConfig` in plugin tests.** The helpers write `config.mods` onto it and\n  later tests run earlier tests' mods.\n- **`npx expo run:ios` after changing the config, without a clean prebuild.** It builds the old project.\n- **`npx expo prebuild --no-clean` in CI or a build script.** The output then depends on the runner's history.\n- **`ios\u002F` in `.gitignore` instead of `\u002Fios`.** A local Expo module's native folder is never committed.\n- **An `.easignore` that forgets `\u002Fios` and `\u002Fandroid`.** EAS uploads the stale folders and skips prebuild.\n- **`--write` on the native snapshot to make the check pass.** Read each drift line first; an unexpected\n  permission is the finding.\n- **Committing the native folders \"for now\".** Record the decision with its reason, or keep them generated.\n\n## Files in this skill\n\n| File | What it is | Read\u002Frun when |\n|---|---|---|\n| [references\u002Fcng-and-native-folders.md](references\u002Fcng-and-native-folders.md) | Why generated folders; what SDK 57's prebuild does (clean default, package.json edits); `.gitignore`\u002F`.easignore`; EAS and `expo run`; local modules; leaving and returning to CNG; timings | Workflow steps 2 and 9 |\n| [references\u002Fapp-config.md](references\u002Fapp-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 |\n| [references\u002Fconfig-plugins.md](references\u002Fconfig-plugins.md) | Resolution and errors, local plugin form, imports per SDK, typed\u002Ftext\u002Fdangerous mods, mod order, idempotence, options, run-once, lifecycle code in modules | Workflow step 3 |\n| [references\u002Ftesting-and-proof.md](references\u002Ftesting-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 |\n| [references\u002Fpitfalls-and-rules.md](references\u002Fpitfalls-and-rules.md) | Symptoms with causes and fixes, every rule of both checkers, options, config keys, expected lines | Workflow step 8, whenever something fails |\n| `templates\u002Fplugins\u002Fwith-android-optional-features.ts` | A complete local plugin: optional Android hardware features (`\u003Cuses-feature required=\"false\">`) | Workflow step 3 |\n| `templates\u002Fplugins\u002Fwith-android-optional-features.test.ts` | Its tests: through `runMod`, iOS untouched, replace and keep, idempotent, bad options | With the plugin |\n| `templates\u002Ftest\u002Fconfig-plugins\u002Frun-mod.ts` | Runs the mods queued for one native file the way prebuild does, on test contents | Workflow step 2 |\n| `templates\u002Ftest\u002Fconfig-plugins\u002Frun-mod.test.ts` | Its tests, including mod order and the mutation of the config | With `run-mod.ts` |\n| `templates\u002Fcontracts\u002Fnative-generation.json` | The native-folder model: `generated` (default) or `committed` with reason and date | Workflow step 2; leaving CNG |\n| [examples\u002Fapp-config-plugin-list.ts](examples\u002Fapp-config-plugin-list.ts) | The shape of a Tasks app's plugin list, one owner comment per line | Workflow step 5 |\n| [examples\u002Fwith-gradle-jvm-args.ts](examples\u002Fwith-gradle-jvm-args.ts) | A gradle.properties plugin shape (replace by key) | Workflow step 3 |\n| [examples\u002Fnative-change-report.md](examples\u002Fnative-change-report.md) | A report with real snapshot drift and proof output | Workflow step 10 |\n| `scripts\u002Fcheck-native-generation.mjs` | The CNG checker: config, plugin list, local plugin sources and tests, native folders, scripts, contract | Workflow step 8 |\n| `scripts\u002Fcheck-native-snapshot.mjs` | Introspects the native config, compares it with `contracts\u002Fnative-config.json`; `--write` regenerates it | Workflow steps 2 and 6 |\n| `scripts\u002Flib\u002Fcng-scan.mjs` | Helpers: ignore-file matcher, config evaluation, plugin entries, Jest reach | Only when changing a checker |\n| `scripts\u002Flib\u002Fsource-scan.mjs` | Dependency-free source lexer (synced from the library; do not edit here) | Only when changing a checker |\n| `scripts\u002Fcheck-lib.mjs` | Shared checker library (synced from the library; do not edit here) | Never by hand |\n| `scripts\u002Fselftest.mjs` | Runs both checkers against the fixtures | After changing a checker, a template or the data |\n| `tests\u002Fbases\u002F` | 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 |\n| `tests\u002Ffixtures\u002F` | Overlay cases per checker: good, one bad case per rule, pass and error cases | When adding a rule |\n| `assets\u002Fauto-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 |\n| `assets\u002Fshared.json` | The shared files this skill syncs in | When adding a shared file |\n\n## Related skills\n\n- `app-variants-and-environment` - `app.config.ts` identities per variant and the `APP_VARIANT` resolver this config calls.\n- `dependency-management` - installing the native package before its plugin is listed.\n- `native-modules-and-new-architecture` - native code in a local Expo module (Expo's official `expo-module` skill is the API reference).\n- `unit-and-component-tests` - the Jest config whose test roots must include `plugins\u002F`.\n- `typescript-and-lint-rules` - the Node-code lint block and `.gitignore` for `app.config.ts` and `plugins\u002F`.\n- `naming-conventions` - `plugins\u002Fwith-\u003Ccapability>.ts` and the `with\u003CCapability>` export.\n- `architecture-and-boundaries` - app code never imports `app.config.ts` or `plugins\u002F`.\n- `expo-sdk-upgrade` - the SDK move (the import spelling flip, template changes plugins must survive).\n- `ios-simulator-build`, `android-emulator-build` - clean prebuild and builds on named devices.\n- `eas-build-and-submit` - EAS profiles; EAS runs prebuild when the folders are absent.\n- `ota-updates` - runtime versions from the fingerprint, which hashes this config and its plugins.\n- `permissions-and-system-prompts`, `privacy-and-store-declarations` - purpose-string wording and the store declarations the native snapshot feeds.\n- `expo-project-bootstrap` - a new app's first config and `.gitignore`.\n","# Expo prebuild and config plugins\n\nContinuous Native Generation: `ios\u002F` and `android\u002F` are build output of `app.config.ts`, its config\nplugins and the installed native packages. Every native change is a config key or one line in the\nplugin list; local plugins are typed, idempotent and tested; the generated folders stay out of git\nand out of every script's reach; a committed snapshot of the introspected native config makes each\nnative change visible in review. Two checkers prove it. Leaving this model is a recorded decision.\n\n## Rules that must hold\n\n1. **`app.config.ts` is the one config, and a pure function.** No `app.json`, `app.config.json` or\n   second `app.config.*`; it returns the object synchronously, the same environment gives the same\n   JSON, it holds no `null`, and it applies no plugin in code. Why: Expo reads `.ts` first and ignores\n   the rest; a Promise is refused; the fingerprint hashes the config; `null` reaches the app as `{}`\n   (all verified on SDK 57). (`single-config`, `config-evaluates`, `config-deterministic`,\n   `config-null`, `config-mods`)\n2. **`ios\u002F` and `android\u002F` are generated output.** `.gitignore` (and `.easignore`, which replaces it\n   for EAS) ignores `\u002Fios` and `\u002Fandroid`, anchored; git tracks nothing there; no npm script, `scripts\u002F`\n   file or CI step writes into them. Why: SDK 57's prebuild deletes them by default, EAS prebuilds\n   only when they are absent, and an unanchored `ios\u002F` also hides a local module's Swift code.\n   (`native-ignored`, `native-tracked`, `native-ignore-scope`, `easignore-native`, `native-edit`)\n3. **A config key before a plugin.** `ios.infoPlist`, `ios.entitlements`, `locales`,\n   `android.permissions`\u002F`blockedPermissions`, `ios.deploymentTarget` and expo-build-properties\n   (SDK versions, `manifestQueries`, cleartext, frameworks) cover most needs; a plugin only for what\n   none covers. Why: keys are validated, introspectable and maintained by Expo across upgrades.\n   (`builtin-first`)\n4. **Nothing reaches the native projects implicitly.** Every installed package whose plugin prebuild\n   applies on its own (`assets\u002Fauto-plugins.json`) is listed, with the options the app means, in every\n   variant; no plugin is listed twice; a permission a plugin adds whatever its options (expo-file-system's\n   storage pair, which every app gets through `expo`) is removed only by `android.blockedPermissions`\n   (exact case, `WRITE_EXTERNAL_STORAGE`): block it unless the app needs it (shared-storage access).\n   Why: the defaults add push and Sign in with Apple entitlements, permissions and English purpose\n   strings (seen in the reference app), and a run-once plugin silently drops a second entry's options\n   (verified). (`auto-plugin-listed`, `plugin-duplicate`)\n5. **Local plugins live in `plugins\u002Fwith-\u003Ccapability>.ts`, listed by path.** Default export (a typed\n   `ConfigPlugin\u003COptions | undefined>`, tagged `@public`), Expo's helpers from `'expo\u002Fconfig-plugins.js'`\n   on SDK 57 (bare from SDK 58), never `@expo\u002Fconfig-plugins`. Why: `npx expo config` then shows the\n   file; the bare specifier fails with `ERR_MODULE_NOT_FOUND` once Node imports the file as an ES\n   module (verified). (`plugin-entry`, `plugin-import`)\n6. **Typed mods first; text mods merge; dangerous mods are justified.** A text mod edits through\n   `CodeGenerator.mergeContents` or behind an `includes` check (inline or in a `plugins\u002Flib\u002F` helper);\n   `withDangerousMod` carries `\u002F\u002F dangerous-mod: \u003Creason>`, writes files only inside it (or helpers\n   it calls), and writes them whole or guards an append. Why: only typed mods are\n   introspected; dangerous mods run first and break silently when the SDK template changes.\n   (`dangerous-mod`, `text-mod-idempotent`)\n7. **Every plugin is idempotent and validates its options.** Applying it twice equals once; a bare\n   entry or a bad option throws a message showing the right entry. Why: `prebuild --no-clean` and\n   `expo run:*` rerun mods onto existing files (verified: an appending plugin left 1, 2, 3 copies).\n8. **Every local plugin has a sibling test that imports it and that Jest runs, through Expo's own mod chain.** `runMod`\n   (`test\u002Fconfig-plugins\u002Frun-mod.ts`), a fresh config per test, a second run, bad options, the other\n   platform untouched; the Jest config's test roots include `plugins\u002F`. Why: Expo ships no plugin\n   test harness, the `with*` helpers mutate the config they get, and an unreached test passes silently.\n   (`plugin-test`)\n9. **One owner per native key, and a deliberate order.** Mods run newest first: the plugin listed\n   first in `plugins` writes last and wins a shared key (verified). Two plugins on one file are tested\n   together. Why: otherwise a reorder silently changes the app.\n10. **Native changes are proven by introspection and reviewed as a snapshot.** `contracts\u002Fnative-config.json`\n    is regenerated with `--write` only after a deliberate change and committed with it. Why: the\n    generated folders never appear in a pull request; the snapshot shows a new permission or entitlement\n    from any plugin or package. (`native-snapshot`, `native-drift`)\n11. **Prebuild is clean in scripts and CI, and before every local build.** Never `--no-clean` in a\n    script; `npx expo prebuild --clean` before `expo run:*` or a local release build after any config,\n    plugin, package or variant change. Why: `expo run:*` builds an existing folder as it is (verified);\n    a layered prebuild depends on earlier runs. (`prebuild-clean`)\n12. **Leaving CNG is a recorded decision.** `contracts\u002Fnative-generation.json` `\"mode\": \"committed\"`\n    with a `reason` and `decidedOn`, both folders committed, no prebuild in any script; native keys\n    then change by hand. Why: committed folders and prebuild-only keys drift apart (expo-doctor reports\n    it). (`native-mode`)\n\n## Workflow\n\n1. **Place the change.** Read [references\u002Fapp-config.md](references\u002Fapp-config.md) (\"Built-in keys\n   before plugins\", \"Auto-applied plugins\"). A key covers it: edit `app.config.ts` and go to step 6.\n   A new native package: dependency-management installs it, then list its plugin here (rule 4).\n2. **First time in a repo:** read [references\u002Fcng-and-native-folders.md](references\u002Fcng-and-native-folders.md);\n   copy `templates\u002Fcontracts\u002Fnative-generation.json` to `contracts\u002F`; anchor `\u002Fios` and `\u002Fandroid` in\n   `.gitignore`; make sure the Jest config's test roots include `'\u003CrootDir>\u002Fplugins\u002F**\u002F'`\n   (unit-and-component-tests owns `jest.config.js`); copy `templates\u002Ftest\u002Fconfig-plugins\u002Frun-mod.ts`\n   and its test. Then `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-native-snapshot.mjs . --write` and read\n   every key of `contracts\u002Fnative-config.json`: it is the audit of what prebuild writes today.\n3. **Write the plugin** when no key covers the need: read\n   [references\u002Fconfig-plugins.md](references\u002Fconfig-plugins.md); copy\n   `templates\u002Fplugins\u002Fwith-android-optional-features.ts` and its test as the shape (or keep them when\n   the app needs optional hardware); [examples\u002Fwith-gradle-jvm-args.ts](examples\u002Fwith-gradle-jvm-args.ts)\n   shows a gradle.properties mod. Pure transform, option validation, one typed mod per file.\n4. **Test it** per [references\u002Ftesting-and-proof.md](references\u002Ftesting-and-proof.md) (levels 1 and 2):\n   `npx jest --ci --selectProjects unit --runTestsByPath plugins\u002F\u003Cfile>.test.ts`, and\n   `npx jest --listTests | grep plugins\u002F` lists it.\n5. **List it** in `app.config.ts` by path, with its options and a comment naming the owning skill, the\n   way [examples\u002Fapp-config-plugin-list.ts](examples\u002Fapp-config-plugin-list.ts) does. Variant-dependent\n   options are computed in the config (app-variants-and-environment owns the variants).\n6. **Prove it:** `APP_VARIANT=\u003Cv> EXPO_PUBLIC_APP_VARIANT=\u003Cv> npx expo config --type introspect --json`\n   for each variant; `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-native-snapshot.mjs .` and read every\n   `native-drift` line; when each one is intended, rerun with `--write`. Text or dangerous mods also\n   get `npx expo prebuild --clean --no-install --platform \u003Cp>`, then the same with `--no-clean`, and a\n   look at the generated file (the change appears once).\n7. **Run the app's gates:** `npm run typecheck`, `npx eslint . --max-warnings 0`, `npx jest --ci`.\n8. **Check:** `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-native-generation.mjs .` and the snapshot check.\n   Each `FAIL` names the file, the rule and the fix; [references\u002Fpitfalls-and-rules.md](references\u002Fpitfalls-and-rules.md)\n   explains every rule and error text. Fix and rerun until both print `RESULT: PASS`.\n9. **Leaving or returning to CNG:** stop and ask the developer first; it changes how every later\n   native change is made. Then follow \"When to leave CNG\" or \"Coming back to CNG\" in\n   [references\u002Fcng-and-native-folders.md](references\u002Fcng-and-native-folders.md).\n10. **Report** like [examples\u002Fnative-change-report.md](examples\u002Fnative-change-report.md): what changed,\n    the snapshot diff, the proof commands and every `RESULT` line, and what a build still has to show.\n\n## Definition of done\n\n- [ ] `app.config.ts` is the only app config; it evaluates for every variant, twice the same, without `null`.\n- [ ] Every native change is a config key or one entry in `plugins`; every installed auto-applied package is listed; no entry twice.\n- [ ] Local plugins sit in `plugins\u002F`, listed by path, default-export a typed plugin, import `expo\u002Fconfig-plugins.js` (SDK 57), use typed mods, guard text mods, justify dangerous ones.\n- [ ] Each plugin's sibling test passes, applies the plugin twice, covers bad options, and `npx jest --listTests` lists it.\n- [ ] Introspection reviewed for each variant; `contracts\u002Fnative-config.json` regenerated on purpose and committed with the change.\n- [ ] Text or dangerous mods: a clean and then a `--no-clean` prebuild show the change once.\n- [ ] `.gitignore` ignores `\u002Fios` and `\u002Fandroid` (anchored); git tracks nothing there; no script writes there or runs `--no-clean`; or the committed mode is recorded with its reason.\n- [ ] Expected SKIP line only while the app has no Jest config: `SKIP jest.config.js [plugin-test] not yet created (unit-and-component-tests creates it)`. `note:` lines are information, not failures.\n- [ ] `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-native-snapshot.mjs .` prints `RESULT: PASS`\n- [ ] `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-native-generation.mjs .` prints `RESULT: PASS`\n\n## Anti-patterns\n\n- **Opening `ios\u002F` in Xcode to fix a setting, or `sed -i` on `AndroidManifest.xml` in a script.** The\n  next prebuild erases it and the build differs by machine. Put it in a key or a plugin.\n- **A plugin for something a key does.** `LSApplicationQueriesSchemes` belongs in `ios.infoPlist`,\n  Android `\u003Cqueries>` in expo-build-properties' `manifestQueries`, permissions in `android.permissions`.\n- **Leaving an installed package off the plugin list \"because it works\".** Prebuild applies its plugin\n  with defaults: an `aps-environment` entitlement the signing profile lacks, `RECORD_AUDIO` for an app\n  that never records, generic English purpose strings App Review may find too vague.\n- **`import withX from '.\u002Fplugins\u002Fwith-x.ts'` and `withX(config)` in `app.config.ts`.** It works and it\n  hides the plugin from `npx expo config`; list `'.\u002Fplugins\u002Fwith-x.ts'` instead.\n- **`'expo\u002Fconfig-plugins'` on SDK 57** (or `'expo\u002Fconfig-plugins.js'` on SDK 58), or\n  `'@expo\u002Fconfig-plugins'` at any time.\n- **Appending to the manifest, a Gradle file or the Podfile without checking.** Every `--no-clean`\n  run adds another copy; replace by identity or use `CodeGenerator.mergeContents`.\n- **A shared `const BASE: ExpoConfig` in plugin tests.** The helpers write `config.mods` onto it and\n  later tests run earlier tests' mods.\n- **`npx expo run:ios` after changing the config, without a clean prebuild.** It builds the old project.\n- **`npx expo prebuild --no-clean` in CI or a build script.** The output then depends on the runner's history.\n- **`ios\u002F` in `.gitignore` instead of `\u002Fios`.** A local Expo module's native folder is never committed.\n- **An `.easignore` that forgets `\u002Fios` and `\u002Fandroid`.** EAS uploads the stale folders and skips prebuild.\n- **`--write` on the native snapshot to make the check pass.** Read each drift line first; an unexpected\n  permission is the finding.\n- **Committing the native folders \"for now\".** Record the decision with its reason, or keep them generated.\n\n## Files in this skill\n\n| File | What it is | Read\u002Frun when |\n|---|---|---|\n| [references\u002Fcng-and-native-folders.md](references\u002Fcng-and-native-folders.md) | Why generated folders; what SDK 57's prebuild does (clean default, package.json edits); `.gitignore`\u002F`.easignore`; EAS and `expo run`; local modules; leaving and returning to CNG; timings | Workflow steps 2 and 9 |\n| [references\u002Fapp-config.md](references\u002Fapp-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 |\n| [references\u002Fconfig-plugins.md](references\u002Fconfig-plugins.md) | Resolution and errors, local plugin form, imports per SDK, typed\u002Ftext\u002Fdangerous mods, mod order, idempotence, options, run-once, lifecycle code in modules | Workflow step 3 |\n| [references\u002Ftesting-and-proof.md](references\u002Ftesting-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 |\n| [references\u002Fpitfalls-and-rules.md](references\u002Fpitfalls-and-rules.md) | Symptoms with causes and fixes, every rule of both checkers, options, config keys, expected lines | Workflow step 8, whenever something fails |\n| `templates\u002Fplugins\u002Fwith-android-optional-features.ts` | A complete local plugin: optional Android hardware features (`\u003Cuses-feature required=\"false\">`) | Workflow step 3 |\n| `templates\u002Fplugins\u002Fwith-android-optional-features.test.ts` | Its tests: through `runMod`, iOS untouched, replace and keep, idempotent, bad options | With the plugin |\n| `templates\u002Ftest\u002Fconfig-plugins\u002Frun-mod.ts` | Runs the mods queued for one native file the way prebuild does, on test contents | Workflow step 2 |\n| `templates\u002Ftest\u002Fconfig-plugins\u002Frun-mod.test.ts` | Its tests, including mod order and the mutation of the config | With `run-mod.ts` |\n| `templates\u002Fcontracts\u002Fnative-generation.json` | The native-folder model: `generated` (default) or `committed` with reason and date | Workflow step 2; leaving CNG |\n| [examples\u002Fapp-config-plugin-list.ts](examples\u002Fapp-config-plugin-list.ts) | The shape of a Tasks app's plugin list, one owner comment per line | Workflow step 5 |\n| [examples\u002Fwith-gradle-jvm-args.ts](examples\u002Fwith-gradle-jvm-args.ts) | A gradle.properties plugin shape (replace by key) | Workflow step 3 |\n| [examples\u002Fnative-change-report.md](examples\u002Fnative-change-report.md) | A report with real snapshot drift and proof output | Workflow step 10 |\n| `scripts\u002Fcheck-native-generation.mjs` | The CNG checker: config, plugin list, local plugin sources and tests, native folders, scripts, contract | Workflow step 8 |\n| `scripts\u002Fcheck-native-snapshot.mjs` | Introspects the native config, compares it with `contracts\u002Fnative-config.json`; `--write` regenerates it | Workflow steps 2 and 6 |\n| `scripts\u002Flib\u002Fcng-scan.mjs` | Helpers: ignore-file matcher, config evaluation, plugin entries, Jest reach | Only when changing a checker |\n| `scripts\u002Flib\u002Fsource-scan.mjs` | Dependency-free source lexer (synced from the library; do not edit here) | Only when changing a checker |\n| `scripts\u002Fcheck-lib.mjs` | Shared checker library (synced from the library; do not edit here) | Never by hand |\n| `scripts\u002Fselftest.mjs` | Runs both checkers against the fixtures | After changing a checker, a template or the data |\n| `tests\u002Fbases\u002F` | 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 |\n| `tests\u002Ffixtures\u002F` | Overlay cases per checker: good, one bad case per rule, pass and error cases | When adding a rule |\n| `assets\u002Fauto-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 |\n| `assets\u002Fshared.json` | The shared files this skill syncs in | When adding a shared file |\n\n## Related skills\n\n- `app-variants-and-environment` - `app.config.ts` identities per variant and the `APP_VARIANT` resolver this config calls.\n- `dependency-management` - installing the native package before its plugin is listed.\n- `native-modules-and-new-architecture` - native code in a local Expo module (Expo's official `expo-module` skill is the API reference).\n- `unit-and-component-tests` - the Jest config whose test roots must include `plugins\u002F`.\n- `typescript-and-lint-rules` - the Node-code lint block and `.gitignore` for `app.config.ts` and `plugins\u002F`.\n- `naming-conventions` - `plugins\u002Fwith-\u003Ccapability>.ts` and the `with\u003CCapability>` export.\n- `architecture-and-boundaries` - app code never imports `app.config.ts` or `plugins\u002F`.\n- `expo-sdk-upgrade` - the SDK move (the import spelling flip, template changes plugins must survive).\n- `ios-simulator-build`, `android-emulator-build` - clean prebuild and builds on named devices.\n- `eas-build-and-submit` - EAS profiles; EAS runs prebuild when the folders are absent.\n- `ota-updates` - runtime versions from the fingerprint, which hashes this config and its plugins.\n- `permissions-and-system-prompts`, `privacy-and-store-declarations` - purpose-string wording and the store declarations the native snapshot feeds.\n- `expo-project-bootstrap` - a new app's first config and `.gitignore`.\n",{"name":5,"description":7},"main","41a0e66d4d09de5b46e6537f59a97c7192473486","skills\u002Fexpo-prebuild-and-config-plugins",2,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills","https:\u002F\u002Fzakaria.dev\u002FReactNative-Skills\u002F","https:\u002F\u002Fgithub.com\u002Fzakariaf","https:\u002F\u002Fzakaria.dev","Seniore Software Engineer","2026-10-22 07:05:00",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add zakariaf\u002FReactNative-Skills --skill expo-prebuild-and-config-plugins",{"tool":40,"command":41},"bunx","bunx skills add zakariaf\u002FReactNative-Skills --skill expo-prebuild-and-config-plugins",{"tool":43,"command":44},"pnpm","pnpm dlx skills add zakariaf\u002FReactNative-Skills --skill expo-prebuild-and-config-plugins","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexpo-prebuild-and-config-plugins\u002FSKILL.md",true,[48,54,58,64,70,74,78,82,86,90,94,98,102,106,110,114,118,122,126,130,134,138,142,146,152,156,160,164,168,172,176,180,184,188,192,196,200,204],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"assets\u002Fauto-plugins.json","ASSET","资产文件",3722,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexpo-prebuild-and-config-plugins\u002Fassets\u002Fauto-plugins.json",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"assets\u002Fshared.json",155,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexpo-prebuild-and-config-plugins\u002Fassets\u002Fshared.json",{"path":59,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":62,"sourceHtmlUrl":63},"examples\u002Fapp-config-plugin-list.ts","SCRIPT","脚本",2357,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexpo-prebuild-and-config-plugins\u002Fexamples\u002Fapp-config-plugin-list.ts",{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"examples\u002Fnative-change-report.md","REFERENCE","参考文档",4394,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexpo-prebuild-and-config-plugins\u002Fexamples\u002Fnative-change-report.md",{"path":71,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":72,"sourceHtmlUrl":73},"examples\u002Fwith-gradle-jvm-args.ts",1851,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexpo-prebuild-and-config-plugins\u002Fexamples\u002Fwith-gradle-jvm-args.ts",{"path":75,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":76,"sourceHtmlUrl":77},"references\u002Fapp-config.md",14424,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexpo-prebuild-and-config-plugins\u002Freferences\u002Fapp-config.md",{"path":79,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":80,"sourceHtmlUrl":81},"references\u002Fcng-and-native-folders.md",10539,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexpo-prebuild-and-config-plugins\u002Freferences\u002Fcng-and-native-folders.md",{"path":83,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":84,"sourceHtmlUrl":85},"references\u002Fconfig-plugins.md",10879,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexpo-prebuild-and-config-plugins\u002Freferences\u002Fconfig-plugins.md",{"path":87,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":88,"sourceHtmlUrl":89},"references\u002Fpitfalls-and-rules.md",17765,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexpo-prebuild-and-config-plugins\u002Freferences\u002Fpitfalls-and-rules.md",{"path":91,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":92,"sourceHtmlUrl":93},"references\u002Ftesting-and-proof.md",9163,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexpo-prebuild-and-config-plugins\u002Freferences\u002Ftesting-and-proof.md",{"path":95,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":96,"sourceHtmlUrl":97},"scripts\u002Fcheck-lib.mjs",119923,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexpo-prebuild-and-config-plugins\u002Fscripts\u002Fcheck-lib.mjs",{"path":99,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":100,"sourceHtmlUrl":101},"scripts\u002Fcheck-native-generation.mjs",66576,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexpo-prebuild-and-config-plugins\u002Fscripts\u002Fcheck-native-generation.mjs",{"path":103,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":104,"sourceHtmlUrl":105},"scripts\u002Fcheck-native-snapshot.mjs",17439,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexpo-prebuild-and-config-plugins\u002Fscripts\u002Fcheck-native-snapshot.mjs",{"path":107,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":108,"sourceHtmlUrl":109},"scripts\u002Flib\u002Fcng-scan.mjs",15214,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexpo-prebuild-and-config-plugins\u002Fscripts\u002Flib\u002Fcng-scan.mjs",{"path":111,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":112,"sourceHtmlUrl":113},"scripts\u002Flib\u002Fsource-scan.mjs",35908,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexpo-prebuild-and-config-plugins\u002Fscripts\u002Flib\u002Fsource-scan.mjs",{"path":115,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":116,"sourceHtmlUrl":117},"scripts\u002Fselftest.mjs",1210,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexpo-prebuild-and-config-plugins\u002Fscripts\u002Fselftest.mjs",{"path":119,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":120,"sourceHtmlUrl":121},"templates\u002Fcontracts\u002Fnative-generation.json",524,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexpo-prebuild-and-config-plugins\u002Ftemplates\u002Fcontracts\u002Fnative-generation.json",{"path":123,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":124,"sourceHtmlUrl":125},"templates\u002Fplugins\u002Fwith-android-optional-features.test.ts",3964,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexpo-prebuild-and-config-plugins\u002Ftemplates\u002Fplugins\u002Fwith-android-optional-features.test.ts",{"path":127,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":128,"sourceHtmlUrl":129},"templates\u002Fplugins\u002Fwith-android-optional-features.ts",3405,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexpo-prebuild-and-config-plugins\u002Ftemplates\u002Fplugins\u002Fwith-android-optional-features.ts",{"path":131,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":132,"sourceHtmlUrl":133},"templates\u002Ftest\u002Fconfig-plugins\u002Frun-mod.test.ts",2576,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexpo-prebuild-and-config-plugins\u002Ftemplates\u002Ftest\u002Fconfig-plugins\u002Frun-mod.test.ts",{"path":135,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":136,"sourceHtmlUrl":137},"templates\u002Ftest\u002Fconfig-plugins\u002Frun-mod.ts",2052,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexpo-prebuild-and-config-plugins\u002Ftemplates\u002Ftest\u002Fconfig-plugins\u002Frun-mod.ts",{"path":139,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":140,"sourceHtmlUrl":141},"tests\u002Fbases\u002Fapp\u002Fapp.config.ts",1958,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexpo-prebuild-and-config-plugins\u002Ftests\u002Fbases\u002Fapp\u002Fapp.config.ts",{"path":143,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":144,"sourceHtmlUrl":145},"tests\u002Fbases\u002Fapp\u002Fdot-github\u002Fworkflows\u002Fci.yml",334,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexpo-prebuild-and-config-plugins\u002Ftests\u002Fbases\u002Fapp\u002Fdot-github\u002Fworkflows\u002Fci.yml",{"path":147,"resourceType":148,"resourceTypeDesc":149,"sizeBytes":150,"sourceHtmlUrl":151},"tests\u002Fbases\u002Fapp\u002Fdot-gitignore","OTHER","其他",129,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexpo-prebuild-and-config-plugins\u002Ftests\u002Fbases\u002Fapp\u002Fdot-gitignore",{"path":153,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":154,"sourceHtmlUrl":155},"tests\u002Fbases\u002Fapp\u002Fjest.config.js",398,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexpo-prebuild-and-config-plugins\u002Ftests\u002Fbases\u002Fapp\u002Fjest.config.js",{"path":157,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":158,"sourceHtmlUrl":159},"tests\u002Fbases\u002Fapp\u002Fpackage.json",708,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexpo-prebuild-and-config-plugins\u002Ftests\u002Fbases\u002Fapp\u002Fpackage.json",{"path":161,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":162,"sourceHtmlUrl":163},"tests\u002Fbases\u002Fapp\u002Fscripts\u002Frelease\u002Fread-gradle-version.ts",369,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexpo-prebuild-and-config-plugins\u002Ftests\u002Fbases\u002Fapp\u002Fscripts\u002Frelease\u002Fread-gradle-version.ts",{"path":165,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":166,"sourceHtmlUrl":167},"tests\u002Fbases\u002Fapp\u002Fsrc\u002Ffeatures\u002Ftasks\u002Ftask-title.ts",112,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexpo-prebuild-and-config-plugins\u002Ftests\u002Fbases\u002Fapp\u002Fsrc\u002Ffeatures\u002Ftasks\u002Ftask-title.ts",{"path":169,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":170,"sourceHtmlUrl":171},"tests\u002Fbases\u002Fsnapshot\u002Fapp.config.ts",324,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexpo-prebuild-and-config-plugins\u002Ftests\u002Fbases\u002Fsnapshot\u002Fapp.config.ts",{"path":173,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":174,"sourceHtmlUrl":175},"tests\u002Fbases\u002Fsnapshot\u002Fcontracts\u002Fnative-config.json",5152,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexpo-prebuild-and-config-plugins\u002Ftests\u002Fbases\u002Fsnapshot\u002Fcontracts\u002Fnative-config.json",{"path":177,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":178,"sourceHtmlUrl":179},"tests\u002Fbases\u002Fsnapshot\u002Fintrospect.json",22931,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexpo-prebuild-and-config-plugins\u002Ftests\u002Fbases\u002Fsnapshot\u002Fintrospect.json",{"path":181,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":182,"sourceHtmlUrl":183},"tests\u002Fbases\u002Fsnapshot\u002Fpackage.json",142,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexpo-prebuild-and-config-plugins\u002Ftests\u002Fbases\u002Fsnapshot\u002Fpackage.json",{"path":185,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":186,"sourceHtmlUrl":187},"tests\u002Ffixtures\u002Fcheck-native-generation\u002FCASES.json",56896,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexpo-prebuild-and-config-plugins\u002Ftests\u002Ffixtures\u002Fcheck-native-generation\u002FCASES.json",{"path":189,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":190,"sourceHtmlUrl":191},"tests\u002Ffixtures\u002Fcheck-native-generation\u002Fgood\u002FEXPECT.txt",38,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexpo-prebuild-and-config-plugins\u002Ftests\u002Ffixtures\u002Fcheck-native-generation\u002Fgood\u002FEXPECT.txt",{"path":193,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":194,"sourceHtmlUrl":195},"tests\u002Ffixtures\u002Fcheck-native-generation\u002FSUITE.json",1946,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexpo-prebuild-and-config-plugins\u002Ftests\u002Ffixtures\u002Fcheck-native-generation\u002FSUITE.json",{"path":197,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":198,"sourceHtmlUrl":199},"tests\u002Ffixtures\u002Fcheck-native-snapshot\u002FCASES.json",2894,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexpo-prebuild-and-config-plugins\u002Ftests\u002Ffixtures\u002Fcheck-native-snapshot\u002FCASES.json",{"path":201,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":202,"sourceHtmlUrl":203},"tests\u002Ffixtures\u002Fcheck-native-snapshot\u002Fgood\u002FEXPECT.txt",68,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexpo-prebuild-and-config-plugins\u002Ftests\u002Ffixtures\u002Fcheck-native-snapshot\u002Fgood\u002FEXPECT.txt",{"path":205,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":190,"sourceHtmlUrl":206},"tests\u002Ffixtures\u002Fcheck-native-snapshot\u002FSUITE.json","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexpo-prebuild-and-config-plugins\u002Ftests\u002Ffixtures\u002Fcheck-native-snapshot\u002FSUITE.json",[208,215,221,228,235,242],{"skillNo":209,"name":210,"nameZh":6,"description":211,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":212,"categories":213,"keywords":214,"publishedAt":19},"01M7F2S4KZG97D21GEJ2GKKYK1","demo","Planted skill folder (never scanned).","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-support\u002Ftests\u002Fbases\u002Fapp\u002Fskills\u002Fdemo\u002FSKILL.md",[],[],{"skillNo":216,"name":210,"nameZh":6,"description":217,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":218,"categories":219,"keywords":220,"publishedAt":19},"01M7F2S1F4ATZ49909EDKWA9E6","Planted installed skill (its files must never be scanned).","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-support\u002Ftests\u002Fbases\u002Fapp\u002F.agents\u002Fskills\u002Fdemo\u002FSKILL.md",[],[],{"skillNo":222,"name":223,"nameZh":6,"description":224,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":225,"categories":226,"keywords":227,"publishedAt":19},"01M7F2RXGPZJ5Q1FV2HQ1PJ6AX","web-support","Ships the web build of an Expo app: platform files, APIs missing in react-native-web, expo-sqlite headers. Use when adding web, a .web.tsx file or expo export --platform web. Not for responsive layout (adaptive-layout).","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-support\u002FSKILL.md",[],[],{"skillNo":229,"name":230,"nameZh":6,"description":231,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":232,"categories":233,"keywords":234,"publishedAt":19},"01M7F2RQ43JFA4QFWQEHBET08G","value-objects-money-and-units","Stores money as ISO 4217 minor units, quantities in canonical units, instants as epoch ms. Use when adding a price, currency, tax, split, unit or timestamp, or a total is a cent off. Not for calendar days (dates-streaks-and-statistics).","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fvalue-objects-money-and-units\u002FSKILL.md",[],[],{"skillNo":236,"name":237,"nameZh":6,"description":238,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":239,"categories":240,"keywords":241,"publishedAt":19},"01M7F2RHR7H8VVZDP16FJNJV11","unit-and-component-tests","Sets up Jest, checks unit, component and route tests (RNTL 14, renderWithProviders, SDK mocks, fakes, fast-check, Stryker). Use when writing a test or mock, or Jest fails or flakes. Not for goldens (golden-and-snapshot-tests).","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002FSKILL.md",[],[],{"skillNo":243,"name":244,"nameZh":6,"description":245,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":246,"categories":247,"keywords":248,"publishedAt":19},"01M7F2RAEDWQ6H4514HFRWJAE6","ui-states-and-feedback","Builds loading, empty, failed and offline states, delayed skeletons, toasts, banners, confirms, Undo. Use when a screen loads data, shows a spinner, toast, retry or delete prompt. Not for failure values (error-handling-typed-results).","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fui-states-and-feedback\u002FSKILL.md",[],[]]