[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F2GWQ86AMH6KXHZF95B2YW":3,"skill-same:01M7F2GWQ86AMH6KXHZF95B2YW":228},{"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},"01M7F2GWQ86AMH6KXHZF95B2YW","permissions-and-system-prompts",null,"Builds OS permission asks - on the press, pre-prompt, denied vs blocked, Settings link, purpose strings, Android rules. Use when adding a camera, photo, location or contacts ask, or a dialog misbehaves. Not for ATT (admob-ads-and-consent).","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\u002Fpermissions-and-system-prompts\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: permissions-and-system-prompts\ndescription: Builds OS permission asks - on the press, pre-prompt, denied vs blocked, Settings link, purpose strings, Android rules. Use when adding a camera, photo, location or contacts ask, or a dialog misbehaves. Not for ATT (admob-ads-and-consent).\n---\n\n# Permissions and system prompts\n\nMakes every OS permission in an Expo app (camera, microphone, photos, location, contacts, calendar,\nmotion, notifications, Bluetooth) asked at the moment a person presses the control that needs it,\nthrough one gate that knows the seven states, explains only when the control cannot, respects a\nrefusal, leads a blocked permission to the Settings app, and re-reads the state on every return to\nthe foreground; with a translated, specific purpose string in the build and a test for every outcome\non iOS and Android. App Tracking Transparency is `admob-ads-and-consent`'s: it asks through the\nConsentPort, and this skill leaves it alone.\n\n## Rules that must hold\n\n1. **Ask from the press that needs the permission.** A request runs in the press handler of the\n   control (`gate.requestAccess(onAllowed)` in the feature's model), never at launch, in the root\n   layout or root navigator, in an effect, or at module scope. Why: a dialog without context is\n   refused far more often, and on iOS that one refusal is final. (`ask-from-action`)\n2. **Every permission is in `contracts\u002Fpermissions.json`.** One entry per kind: the feature it serves,\n   `askedFrom` (the model that asks), platforms, the purpose-string key, `shouldExplainFirst` and the\n   sheet copy keys; no code reads a kind the contract lacks, no entry outlives its code. Why: the\n   inventory is what the reviewer, the store privacy forms and every other rule check against.\n   (`contract`, `undeclared-permission`, `contract-unused`)\n3. **Only service adapters touch the OS, and they map every answer to the seven states.** `granted`,\n   `limited`, `provisional`, `undetermined`, `denied`, `blocked`, `unavailable`: `canAskAgain` tells\n   denied from blocked, `accessPrivileges` and location accuracy give limited, a thrown call answers\n   unavailable (never rejects). Why: `status: 'denied'` alone cannot say whether a dialog can still\n   appear, and partial access is neither yes nor no. (`request-boundary`, `can-ask-again`,\n   `photos-limited`)\n4. **Ask through `usePermissionGate`, never a module's permission hook.** The gate reads the state\n   fresh at the press, runs one ask at a time and returns the sheet to show; `useCameraPermissions`\n   and friends ask with none of that. Why: Android throws on a second request while one is open, and\n   a cached state misleads the decision. (`system-hook`)\n5. **Explain first only when the control does not explain the need, with exactly one \"Continue\".**\n   The explain sheet opens the system dialog and has no close, cancel, \"Not now\" or \"Allow\" button,\n   no incentive and no picture of the alert; Android's rationale (after one refusal) has \"Continue\"\n   and \"No thanks\" (the contract's `explain.dismiss` key is that \"No thanks\": only the rationale\n   uses it, never the explain sheet). Why: Apple rejects pre-alert screens that offer a way around the alert or mimic\n   it; Android requires a way out of the rationale. (`asked-from`, `copy-keys`)\n6. **Respect a refusal.** After \"Don't allow\" nothing follows: no sheet, no Settings link, no retry;\n   the control says the feature is off and the feature keeps a path without the permission. Why:\n   Android's guidance forbids pushing people to Settings after a no, and App Review 5.1.1(iv) asks for\n   alternatives.\n7. **A blocked permission leads to the Settings app.** On a later press the settings sheet says what\n   is off and opens `Linking.openSettings()`; the app never re-requests a dialog that cannot appear.\n   Why: without it, a blocked feature is a dead button. (`open-settings`)\n8. **The state on screen is re-read on every return to the foreground.** Through the status mirror\n   (`useSyncExternalStore` over AppState), never `useState` plus an effect or a stored flag. Why:\n   people change permissions in Settings, Android resets unused apps and expires one-time grants, and\n   neither OS reliably restarts the app. (`recheck-on-active`)\n9. **Every asked kind has its purpose string in the build, specific and translated.** One active\n   sentence (what the feature does with it, where the data goes) from the catalogs through\n   `sourceText` and `nativeLocales`; plugin options are `false` only for permissions never asked. Why:\n   iOS terminates an app that requests without the key, and a plugin's English default is vague in\n   every language. (`purpose-string`, `copy-keys`)\n10. **Android never blocks a permission the app asks, and asks in steps.** No asked permission in\n    `blockedPermissions` or behind an expo-image-picker option set to `false`; background location\n    only after foreground, in its own step; notification channels before the notification ask. Why:\n    a blocked permission is refused without a dialog on every phone, and Android ignores combined requests.\n    (`android-blocked`, `location-foreground-first`)\n11. **Ask for the least.** The system photo picker (`launchImageLibraryAsync`) needs no permission;\n    add-only photo access to save, approximate before precise, when-in-use before always. Why: every\n    permission is a dialog, a store declaration and a reason to say no. (`picker-no-permission`)\n12. **Every asking model is tested for every outcome on both platforms.** Through\n    `createFakePermissionAccess`: granted, allowed, limited, declined, Android's rationale, blocked,\n    unavailable, a change in Settings; E2E flows set permissions explicitly. Why: the outcomes people\n    hit most (refused, blocked) are the ones a happy-path test never reaches. (`asked-from`)\n\n## Workflow\n\n1. **Decide the inventory.** Read [references\u002Fasking-flow.md](references\u002Fasking-flow.md). For each\n   permission: which press asks it, whether the control explains the need (`shouldExplainFirst`), what\n   works without it, the copy. Prefer a permissionless API first (rule 11,\n   [references\u002Fplatform-behaviour.md](references\u002Fplatform-behaviour.md) section 4).\n2. **Copy the templates** (first line names each repo path): `templates\u002Fsrc\u002Fcore\u002Fpermissions\u002F`,\n   `templates\u002Fsrc\u002Fservices\u002Fpermissions\u002F`, `templates\u002Fsrc\u002Fhooks\u002Fuse-permission-gate.ts`, their tests,\n   and `templates\u002Fcontracts\u002Fpermissions.json` + `permissions.schema.json`. They import\n   `src\u002Fcore\u002Fasync\u002Flatest-request.ts` (async-safety) and the error-log port (architecture-and-boundaries):\n   set those up first. Set `PermissionKind` in `permissions-port.ts` to the kinds you ask; with\n   local-notifications or push-notifications, add `notifications` and bind it to their port\n   (asking-flow section 12).\n3. **Write one adapter per kind** like `examples\u002Fsrc\u002Fservices\u002Fpermissions\u002Fcamera-permission-adapter.ts`\n   (`createExpoPermissionAccess` over the module's get\u002Frequest pair). Classify the module in\n   `contracts\u002Farchitecture.json` `vendorSdks` and wire `permissions` into `Services`\n   ([references\u002Fconfig-and-wiring.md](references\u002Fconfig-and-wiring.md) sections 6-7).\n4. **Config.** Give the plugin option `sourceText(projectRoot, '\u003CpurposeKey>')`, set `false` for\n   everything never asked, keep asked permissions out of `blockedPermissions`, list the key in\n   `NATIVE_TEXT_KEYS`; regenerate the native snapshot (config-and-wiring sections 2-5).\n5. **Copy keys.** Add `purposeKey`, `explain.*` and `settings.*` to every catalog (asking-flow section\n   13; the example catalogs show the Tasks camera texts), and fill the contract entry\n   (`examples\u002Fcontracts\u002Fpermissions.json`).\n6. **Ask from the model.** Call `usePermissionGate` in the feature's model hook and\n   `gate.requestAccess(onAllowed)` in the press handler (`examples\u002Fsrc\u002Ffeatures\u002Ftask-photo\u002Fuse-task-photo-model.ts`);\n   render the sheet from the app's dialog component (`examples\u002F...\u002Fcomponents\u002Fpermission-sheet-view.tsx`).\n7. **Test every outcome** with the fake ([references\u002Ftesting-permissions.md](references\u002Ftesting-permissions.md)\n   sections 1-3; `use-task-photo-model.test.tsx` is the shape).\n8. **Prove it on devices** you name: a fresh install on a simulator and an emulator, Maestro flows with\n   explicit `permissions:` (testing-permissions sections 4-7).\n9. **Run the checks**: `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-permissions.mjs .`, fix, rerun until\n   `RESULT: PASS`. What each rule reads: [references\u002Fchecker-rules.md](references\u002Fchecker-rules.md);\n   symptoms: [references\u002Fpitfalls.md](references\u002Fpitfalls.md).\n\n## Definition of done\n\n- [ ] Every permission the app asks is a `contracts\u002Fpermissions.json` entry whose `askedFrom` model asks\n      from a press through `usePermissionGate`; no request in an effect, at module scope or at launch.\n- [ ] Only `src\u002Fservices\u002F**\u002F*-adapter.ts` files import permission functions; answers map through\n      `toPermissionState` (canAskAgain, limited); no module permission hook anywhere.\n- [ ] The explain sheet (where used) has one \"Continue\"; Android's rationale has \"Continue\" and \"No\n      thanks\"; the settings sheet opens `Linking.openSettings()`; nothing follows a refusal.\n- [ ] Each asked kind's purpose string is in the production Info.plist (snapshot regenerated), in every\n      language; unused plugin permissions are `false`; no asked permission is blocked on Android;\n      with a snapshot, `expo-prebuild-and-config-plugins`' native-snapshot check passes (it is current).\n- [ ] The asking model's test covers granted, declined, rationale (Android), blocked and unavailable;\n      `npx jest --ci` passes; the manual pass of testing-permissions section 7 is done on named devices.\n- [ ] A passing run may print only these SKIP lines while the app is being set up:\n      `SKIP app.config.ts [purpose-string] not yet created (expo-project-bootstrap creates it)`,\n      `SKIP src\u002Fi18n\u002Fcatalogs\u002Fen.json [copy-keys] not yet created (i18n-strings-and-catalogs creates it)`.\n- [ ] `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-permissions.mjs .` prints `RESULT: PASS`.\n\n## Anti-patterns\n\n- **Asking at launch \"to get it out of the way\".** The person has no reason to say yes yet; ask from\n  the press that needs it.\n- **A pre-prompt with \"Allow\" and \"Not now\".** Apple rejects it; the explain sheet has one \"Continue\",\n  and most controls need no explain sheet at all.\n- **`if (!granted) requestPermissionsAsync()` on every press.** Once blocked, the request resolves at\n  once and nothing happens; read `canAskAgain` and show the settings sheet.\n- **Linking to Settings right after a refusal.** It reads as nagging; wait for the next press.\n- **`useCameraPermissions()` in a screen.** It asks without the explain, blocked and re-read rules;\n  use the gate.\n- **Requesting the photo library to pick one photo.** The system picker needs no permission.\n- **`cameraPermission: false` \"to remove the English default\".** It deletes the key the app needs and,\n  in expo-image-picker, blocks Android's `CAMERA`; give it the translated text instead.\n- **Treating `limited` as refused**, or approximate location as off. Both are a yes.\n- **A permission flag in a store or `useState` read once.** It lies after a change in Settings; use the\n  status mirror.\n- **Testing only the granted path, or E2E flows that start with a bare `launchApp`.** Maestro grants\n  everything by default; script refusals with the fake and `permissions:`.\n\n## Files in this skill\n\n| File | What it is | Read\u002Frun when |\n|---|---|---|\n| `references\u002Fasking-flow.md` | The flow: when to ask, the seven states, the decision table, Apple's and Android's sheet rules quoted, refusals, blocked, limited, copy | Workflow step 1, designing a sheet |\n| `references\u002Fplatform-behaviour.md` | iOS and Android per permission, Expo's answers read in source, dialog counts, changes behind the app's back, quirks | Step 1, a platform question |\n| `references\u002Fconfig-and-wiring.md` | Plugin options and `false`, blocked permissions, purpose strings in every language, the native snapshot, wiring `Services`, SDK classification, multi-package | Steps 3-4 |\n| `references\u002Ftesting-permissions.md` | The outcome matrix, fake and hook tests, `simctl privacy`, `adb pm`, Maestro `permissions:`, the manual pass | Steps 7-8 |\n| `references\u002Fchecker-rules.md` | Every rule of check-permissions, the contract fields, SKIP and NOT APPLICABLE, limits | A FAIL line, changing the checker |\n| `references\u002Fpitfalls.md` | Symptom, cause and fix for crashes, missing dialogs, lying states, review and test trouble | Something misbehaves |\n| `templates\u002Fsrc\u002Fcore\u002Fpermissions\u002F` | `permission-state.ts` (the seven states, `isPermissionAllowed`, `nextAskStep`, pure) and its test | Step 2 |\n| `templates\u002Fsrc\u002Fservices\u002Fpermissions\u002F` | `permissions-port.ts` (`PermissionAccess`, `PermissionKind`, `PermissionsPort`); `expo-permission-access.ts` (`toPermissionState`, `createExpoPermissionAccess`, never rejects); `system-settings-adapter.ts` (`Linking.openSettings()`); `permission-status-mirror.ts` (the OS mirror that re-reads on the foreground); `fake-permissions.ts` (scripted iOS and Android dialog rules); each with its test | Steps 2-3, 7 |\n| `templates\u002Fsrc\u002Fhooks\u002F` | `use-permission-gate.ts` (fresh read, one ask at a time, the sheet, respect for a refusal) and its test | Steps 2, 6 |\n| `templates\u002Fcontracts\u002F` | `permissions.json` (the empty contract) and `permissions.schema.json` | Steps 2, 5 |\n| `examples\u002Fsrc\u002Fservices\u002Fpermissions\u002Fcamera-permission-adapter.ts` | A per-kind adapter over expo-image-picker (device-only) | Step 3 |\n| `examples\u002Fsrc\u002Ffeatures\u002Ftask-photo\u002F` | `use-task-photo-model.ts` (asks the camera from \"Take photo\") with its outcome tests, `components\u002Fpermission-sheet-view.tsx` (explain, rationale, settings and unavailable sheets as a pure view, one-button explain sheet) | Steps 6-7 |\n| `examples\u002Fcontracts\u002Fpermissions.json` | A filled contract entry (camera, with the optional unavailable copy) | Step 5 |\n| `examples\u002Fsrc\u002Fi18n\u002Fcatalogs\u002F` | The camera purpose string and sheet copy in `en` and `ar` | Step 5 |\n| `scripts\u002Fcheck-permissions.mjs` | The checker (16 rules) | Step 9, definition of done |\n| `scripts\u002Flib\u002F` | `permission-scan.mjs` (finds permission uses, effects, module scope, local imports); `source-scan.mjs` (shared lexer, synced, never edited here) | Changing the checker |\n| `scripts\u002Fselftest.mjs` | Runs the checker against every fixture | After changing the checker |\n| `scripts\u002Fcheck-lib.mjs` | Shared checker library (synced, never edited here) | Never by hand |\n| `assets\u002Fpermission-apis.json` | Kinds (iOS keys, Android permissions, plugin options) and the SDK 57 permission functions | Adding a module or kind |\n| `assets\u002Fshared.json` | The shared files this skill syncs | Syncing |\n| `tests\u002Fbases\u002Fapp\u002F` | The base app the fixtures build on | Changing fixtures |\n| `tests\u002Ffixtures\u002F` | good, pass-*, one bad-* per rule, error-* cases | Changing the checker |\n\n## Related skills\n\n- `admob-ads-and-consent` - App Tracking Transparency through the ConsentPort.\n- `async-safety` - the latest-wins helper the status mirror uses.\n- `push-notifications`, `local-notifications` - their ports are the `notifications` kind's `PermissionAccess`.\n- `i18n-strings-and-catalogs` - purpose strings and sheet copy in every language.\n- `expo-prebuild-and-config-plugins` - plugin options, auto-applied plugins, the native snapshot.\n- `architecture-and-boundaries` - the composition root and SDK classification.\n- `media-images-and-files` - picking and capturing media once the permission allows it.\n- `privacy-and-store-declarations` - store answers for every permission the contract lists.\n- `ui-component-library` - the dialog or sheet the permission sheets render in.\n- `unit-and-component-tests`, `e2e-maestro` - the test setup and flows with explicit permissions.\n","# Permissions and system prompts\n\nMakes every OS permission in an Expo app (camera, microphone, photos, location, contacts, calendar,\nmotion, notifications, Bluetooth) asked at the moment a person presses the control that needs it,\nthrough one gate that knows the seven states, explains only when the control cannot, respects a\nrefusal, leads a blocked permission to the Settings app, and re-reads the state on every return to\nthe foreground; with a translated, specific purpose string in the build and a test for every outcome\non iOS and Android. App Tracking Transparency is `admob-ads-and-consent`'s: it asks through the\nConsentPort, and this skill leaves it alone.\n\n## Rules that must hold\n\n1. **Ask from the press that needs the permission.** A request runs in the press handler of the\n   control (`gate.requestAccess(onAllowed)` in the feature's model), never at launch, in the root\n   layout or root navigator, in an effect, or at module scope. Why: a dialog without context is\n   refused far more often, and on iOS that one refusal is final. (`ask-from-action`)\n2. **Every permission is in `contracts\u002Fpermissions.json`.** One entry per kind: the feature it serves,\n   `askedFrom` (the model that asks), platforms, the purpose-string key, `shouldExplainFirst` and the\n   sheet copy keys; no code reads a kind the contract lacks, no entry outlives its code. Why: the\n   inventory is what the reviewer, the store privacy forms and every other rule check against.\n   (`contract`, `undeclared-permission`, `contract-unused`)\n3. **Only service adapters touch the OS, and they map every answer to the seven states.** `granted`,\n   `limited`, `provisional`, `undetermined`, `denied`, `blocked`, `unavailable`: `canAskAgain` tells\n   denied from blocked, `accessPrivileges` and location accuracy give limited, a thrown call answers\n   unavailable (never rejects). Why: `status: 'denied'` alone cannot say whether a dialog can still\n   appear, and partial access is neither yes nor no. (`request-boundary`, `can-ask-again`,\n   `photos-limited`)\n4. **Ask through `usePermissionGate`, never a module's permission hook.** The gate reads the state\n   fresh at the press, runs one ask at a time and returns the sheet to show; `useCameraPermissions`\n   and friends ask with none of that. Why: Android throws on a second request while one is open, and\n   a cached state misleads the decision. (`system-hook`)\n5. **Explain first only when the control does not explain the need, with exactly one \"Continue\".**\n   The explain sheet opens the system dialog and has no close, cancel, \"Not now\" or \"Allow\" button,\n   no incentive and no picture of the alert; Android's rationale (after one refusal) has \"Continue\"\n   and \"No thanks\" (the contract's `explain.dismiss` key is that \"No thanks\": only the rationale\n   uses it, never the explain sheet). Why: Apple rejects pre-alert screens that offer a way around the alert or mimic\n   it; Android requires a way out of the rationale. (`asked-from`, `copy-keys`)\n6. **Respect a refusal.** After \"Don't allow\" nothing follows: no sheet, no Settings link, no retry;\n   the control says the feature is off and the feature keeps a path without the permission. Why:\n   Android's guidance forbids pushing people to Settings after a no, and App Review 5.1.1(iv) asks for\n   alternatives.\n7. **A blocked permission leads to the Settings app.** On a later press the settings sheet says what\n   is off and opens `Linking.openSettings()`; the app never re-requests a dialog that cannot appear.\n   Why: without it, a blocked feature is a dead button. (`open-settings`)\n8. **The state on screen is re-read on every return to the foreground.** Through the status mirror\n   (`useSyncExternalStore` over AppState), never `useState` plus an effect or a stored flag. Why:\n   people change permissions in Settings, Android resets unused apps and expires one-time grants, and\n   neither OS reliably restarts the app. (`recheck-on-active`)\n9. **Every asked kind has its purpose string in the build, specific and translated.** One active\n   sentence (what the feature does with it, where the data goes) from the catalogs through\n   `sourceText` and `nativeLocales`; plugin options are `false` only for permissions never asked. Why:\n   iOS terminates an app that requests without the key, and a plugin's English default is vague in\n   every language. (`purpose-string`, `copy-keys`)\n10. **Android never blocks a permission the app asks, and asks in steps.** No asked permission in\n    `blockedPermissions` or behind an expo-image-picker option set to `false`; background location\n    only after foreground, in its own step; notification channels before the notification ask. Why:\n    a blocked permission is refused without a dialog on every phone, and Android ignores combined requests.\n    (`android-blocked`, `location-foreground-first`)\n11. **Ask for the least.** The system photo picker (`launchImageLibraryAsync`) needs no permission;\n    add-only photo access to save, approximate before precise, when-in-use before always. Why: every\n    permission is a dialog, a store declaration and a reason to say no. (`picker-no-permission`)\n12. **Every asking model is tested for every outcome on both platforms.** Through\n    `createFakePermissionAccess`: granted, allowed, limited, declined, Android's rationale, blocked,\n    unavailable, a change in Settings; E2E flows set permissions explicitly. Why: the outcomes people\n    hit most (refused, blocked) are the ones a happy-path test never reaches. (`asked-from`)\n\n## Workflow\n\n1. **Decide the inventory.** Read [references\u002Fasking-flow.md](references\u002Fasking-flow.md). For each\n   permission: which press asks it, whether the control explains the need (`shouldExplainFirst`), what\n   works without it, the copy. Prefer a permissionless API first (rule 11,\n   [references\u002Fplatform-behaviour.md](references\u002Fplatform-behaviour.md) section 4).\n2. **Copy the templates** (first line names each repo path): `templates\u002Fsrc\u002Fcore\u002Fpermissions\u002F`,\n   `templates\u002Fsrc\u002Fservices\u002Fpermissions\u002F`, `templates\u002Fsrc\u002Fhooks\u002Fuse-permission-gate.ts`, their tests,\n   and `templates\u002Fcontracts\u002Fpermissions.json` + `permissions.schema.json`. They import\n   `src\u002Fcore\u002Fasync\u002Flatest-request.ts` (async-safety) and the error-log port (architecture-and-boundaries):\n   set those up first. Set `PermissionKind` in `permissions-port.ts` to the kinds you ask; with\n   local-notifications or push-notifications, add `notifications` and bind it to their port\n   (asking-flow section 12).\n3. **Write one adapter per kind** like `examples\u002Fsrc\u002Fservices\u002Fpermissions\u002Fcamera-permission-adapter.ts`\n   (`createExpoPermissionAccess` over the module's get\u002Frequest pair). Classify the module in\n   `contracts\u002Farchitecture.json` `vendorSdks` and wire `permissions` into `Services`\n   ([references\u002Fconfig-and-wiring.md](references\u002Fconfig-and-wiring.md) sections 6-7).\n4. **Config.** Give the plugin option `sourceText(projectRoot, '\u003CpurposeKey>')`, set `false` for\n   everything never asked, keep asked permissions out of `blockedPermissions`, list the key in\n   `NATIVE_TEXT_KEYS`; regenerate the native snapshot (config-and-wiring sections 2-5).\n5. **Copy keys.** Add `purposeKey`, `explain.*` and `settings.*` to every catalog (asking-flow section\n   13; the example catalogs show the Tasks camera texts), and fill the contract entry\n   (`examples\u002Fcontracts\u002Fpermissions.json`).\n6. **Ask from the model.** Call `usePermissionGate` in the feature's model hook and\n   `gate.requestAccess(onAllowed)` in the press handler (`examples\u002Fsrc\u002Ffeatures\u002Ftask-photo\u002Fuse-task-photo-model.ts`);\n   render the sheet from the app's dialog component (`examples\u002F...\u002Fcomponents\u002Fpermission-sheet-view.tsx`).\n7. **Test every outcome** with the fake ([references\u002Ftesting-permissions.md](references\u002Ftesting-permissions.md)\n   sections 1-3; `use-task-photo-model.test.tsx` is the shape).\n8. **Prove it on devices** you name: a fresh install on a simulator and an emulator, Maestro flows with\n   explicit `permissions:` (testing-permissions sections 4-7).\n9. **Run the checks**: `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-permissions.mjs .`, fix, rerun until\n   `RESULT: PASS`. What each rule reads: [references\u002Fchecker-rules.md](references\u002Fchecker-rules.md);\n   symptoms: [references\u002Fpitfalls.md](references\u002Fpitfalls.md).\n\n## Definition of done\n\n- [ ] Every permission the app asks is a `contracts\u002Fpermissions.json` entry whose `askedFrom` model asks\n      from a press through `usePermissionGate`; no request in an effect, at module scope or at launch.\n- [ ] Only `src\u002Fservices\u002F**\u002F*-adapter.ts` files import permission functions; answers map through\n      `toPermissionState` (canAskAgain, limited); no module permission hook anywhere.\n- [ ] The explain sheet (where used) has one \"Continue\"; Android's rationale has \"Continue\" and \"No\n      thanks\"; the settings sheet opens `Linking.openSettings()`; nothing follows a refusal.\n- [ ] Each asked kind's purpose string is in the production Info.plist (snapshot regenerated), in every\n      language; unused plugin permissions are `false`; no asked permission is blocked on Android;\n      with a snapshot, `expo-prebuild-and-config-plugins`' native-snapshot check passes (it is current).\n- [ ] The asking model's test covers granted, declined, rationale (Android), blocked and unavailable;\n      `npx jest --ci` passes; the manual pass of testing-permissions section 7 is done on named devices.\n- [ ] A passing run may print only these SKIP lines while the app is being set up:\n      `SKIP app.config.ts [purpose-string] not yet created (expo-project-bootstrap creates it)`,\n      `SKIP src\u002Fi18n\u002Fcatalogs\u002Fen.json [copy-keys] not yet created (i18n-strings-and-catalogs creates it)`.\n- [ ] `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-permissions.mjs .` prints `RESULT: PASS`.\n\n## Anti-patterns\n\n- **Asking at launch \"to get it out of the way\".** The person has no reason to say yes yet; ask from\n  the press that needs it.\n- **A pre-prompt with \"Allow\" and \"Not now\".** Apple rejects it; the explain sheet has one \"Continue\",\n  and most controls need no explain sheet at all.\n- **`if (!granted) requestPermissionsAsync()` on every press.** Once blocked, the request resolves at\n  once and nothing happens; read `canAskAgain` and show the settings sheet.\n- **Linking to Settings right after a refusal.** It reads as nagging; wait for the next press.\n- **`useCameraPermissions()` in a screen.** It asks without the explain, blocked and re-read rules;\n  use the gate.\n- **Requesting the photo library to pick one photo.** The system picker needs no permission.\n- **`cameraPermission: false` \"to remove the English default\".** It deletes the key the app needs and,\n  in expo-image-picker, blocks Android's `CAMERA`; give it the translated text instead.\n- **Treating `limited` as refused**, or approximate location as off. Both are a yes.\n- **A permission flag in a store or `useState` read once.** It lies after a change in Settings; use the\n  status mirror.\n- **Testing only the granted path, or E2E flows that start with a bare `launchApp`.** Maestro grants\n  everything by default; script refusals with the fake and `permissions:`.\n\n## Files in this skill\n\n| File | What it is | Read\u002Frun when |\n|---|---|---|\n| `references\u002Fasking-flow.md` | The flow: when to ask, the seven states, the decision table, Apple's and Android's sheet rules quoted, refusals, blocked, limited, copy | Workflow step 1, designing a sheet |\n| `references\u002Fplatform-behaviour.md` | iOS and Android per permission, Expo's answers read in source, dialog counts, changes behind the app's back, quirks | Step 1, a platform question |\n| `references\u002Fconfig-and-wiring.md` | Plugin options and `false`, blocked permissions, purpose strings in every language, the native snapshot, wiring `Services`, SDK classification, multi-package | Steps 3-4 |\n| `references\u002Ftesting-permissions.md` | The outcome matrix, fake and hook tests, `simctl privacy`, `adb pm`, Maestro `permissions:`, the manual pass | Steps 7-8 |\n| `references\u002Fchecker-rules.md` | Every rule of check-permissions, the contract fields, SKIP and NOT APPLICABLE, limits | A FAIL line, changing the checker |\n| `references\u002Fpitfalls.md` | Symptom, cause and fix for crashes, missing dialogs, lying states, review and test trouble | Something misbehaves |\n| `templates\u002Fsrc\u002Fcore\u002Fpermissions\u002F` | `permission-state.ts` (the seven states, `isPermissionAllowed`, `nextAskStep`, pure) and its test | Step 2 |\n| `templates\u002Fsrc\u002Fservices\u002Fpermissions\u002F` | `permissions-port.ts` (`PermissionAccess`, `PermissionKind`, `PermissionsPort`); `expo-permission-access.ts` (`toPermissionState`, `createExpoPermissionAccess`, never rejects); `system-settings-adapter.ts` (`Linking.openSettings()`); `permission-status-mirror.ts` (the OS mirror that re-reads on the foreground); `fake-permissions.ts` (scripted iOS and Android dialog rules); each with its test | Steps 2-3, 7 |\n| `templates\u002Fsrc\u002Fhooks\u002F` | `use-permission-gate.ts` (fresh read, one ask at a time, the sheet, respect for a refusal) and its test | Steps 2, 6 |\n| `templates\u002Fcontracts\u002F` | `permissions.json` (the empty contract) and `permissions.schema.json` | Steps 2, 5 |\n| `examples\u002Fsrc\u002Fservices\u002Fpermissions\u002Fcamera-permission-adapter.ts` | A per-kind adapter over expo-image-picker (device-only) | Step 3 |\n| `examples\u002Fsrc\u002Ffeatures\u002Ftask-photo\u002F` | `use-task-photo-model.ts` (asks the camera from \"Take photo\") with its outcome tests, `components\u002Fpermission-sheet-view.tsx` (explain, rationale, settings and unavailable sheets as a pure view, one-button explain sheet) | Steps 6-7 |\n| `examples\u002Fcontracts\u002Fpermissions.json` | A filled contract entry (camera, with the optional unavailable copy) | Step 5 |\n| `examples\u002Fsrc\u002Fi18n\u002Fcatalogs\u002F` | The camera purpose string and sheet copy in `en` and `ar` | Step 5 |\n| `scripts\u002Fcheck-permissions.mjs` | The checker (16 rules) | Step 9, definition of done |\n| `scripts\u002Flib\u002F` | `permission-scan.mjs` (finds permission uses, effects, module scope, local imports); `source-scan.mjs` (shared lexer, synced, never edited here) | Changing the checker |\n| `scripts\u002Fselftest.mjs` | Runs the checker against every fixture | After changing the checker |\n| `scripts\u002Fcheck-lib.mjs` | Shared checker library (synced, never edited here) | Never by hand |\n| `assets\u002Fpermission-apis.json` | Kinds (iOS keys, Android permissions, plugin options) and the SDK 57 permission functions | Adding a module or kind |\n| `assets\u002Fshared.json` | The shared files this skill syncs | Syncing |\n| `tests\u002Fbases\u002Fapp\u002F` | The base app the fixtures build on | Changing fixtures |\n| `tests\u002Ffixtures\u002F` | good, pass-*, one bad-* per rule, error-* cases | Changing the checker |\n\n## Related skills\n\n- `admob-ads-and-consent` - App Tracking Transparency through the ConsentPort.\n- `async-safety` - the latest-wins helper the status mirror uses.\n- `push-notifications`, `local-notifications` - their ports are the `notifications` kind's `PermissionAccess`.\n- `i18n-strings-and-catalogs` - purpose strings and sheet copy in every language.\n- `expo-prebuild-and-config-plugins` - plugin options, auto-applied plugins, the native snapshot.\n- `architecture-and-boundaries` - the composition root and SDK classification.\n- `media-images-and-files` - picking and capturing media once the permission allows it.\n- `privacy-and-store-declarations` - store answers for every permission the contract lists.\n- `ui-component-library` - the dialog or sheet the permission sheets render in.\n- `unit-and-component-tests`, `e2e-maestro` - the test setup and flows with explicit permissions.\n",{"name":5,"description":7},"main","41a0e66d4d09de5b46e6537f59a97c7192473486","skills\u002Fpermissions-and-system-prompts",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 permissions-and-system-prompts",{"tool":40,"command":41},"bunx","bunx skills add zakariaf\u002FReactNative-Skills --skill permissions-and-system-prompts",{"tool":43,"command":44},"pnpm","pnpm dlx skills add zakariaf\u002FReactNative-Skills --skill permissions-and-system-prompts","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002FSKILL.md",true,[48,54,58,64,70,74,80,84,88,92,96,100,104,108,112,116,120,124,128,132,136,140,144,148,152,156,160,164,168,172,176,180,184,188,192,196,200,204,208,212,216,220,224],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"assets\u002Fpermission-apis.json","ASSET","资产文件",7437,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002Fassets\u002Fpermission-apis.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\u002Fpermissions-and-system-prompts\u002Fassets\u002Fshared.json",{"path":59,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":62,"sourceHtmlUrl":63},"examples\u002Fcontracts\u002Fpermissions.json","REFERENCE","参考文档",1181,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002Fexamples\u002Fcontracts\u002Fpermissions.json",{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"examples\u002Fsrc\u002Ffeatures\u002Ftask-photo\u002Fcomponents\u002Fpermission-sheet-view.tsx","OTHER","其他",4348,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002Fexamples\u002Fsrc\u002Ffeatures\u002Ftask-photo\u002Fcomponents\u002Fpermission-sheet-view.tsx",{"path":71,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":72,"sourceHtmlUrl":73},"examples\u002Fsrc\u002Ffeatures\u002Ftask-photo\u002Fuse-task-photo-model.test.tsx",3107,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002Fexamples\u002Fsrc\u002Ffeatures\u002Ftask-photo\u002Fuse-task-photo-model.test.tsx",{"path":75,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":78,"sourceHtmlUrl":79},"examples\u002Fsrc\u002Ffeatures\u002Ftask-photo\u002Fuse-task-photo-model.ts","SCRIPT","脚本",2495,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002Fexamples\u002Fsrc\u002Ffeatures\u002Ftask-photo\u002Fuse-task-photo-model.ts",{"path":81,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":82,"sourceHtmlUrl":83},"examples\u002Fsrc\u002Fi18n\u002Fcatalogs\u002Far.json",1252,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002Fexamples\u002Fsrc\u002Fi18n\u002Fcatalogs\u002Far.json",{"path":85,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":86,"sourceHtmlUrl":87},"examples\u002Fsrc\u002Fi18n\u002Fcatalogs\u002Fen.json",923,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002Fexamples\u002Fsrc\u002Fi18n\u002Fcatalogs\u002Fen.json",{"path":89,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":90,"sourceHtmlUrl":91},"examples\u002Fsrc\u002Fservices\u002Fpermissions\u002Fcamera-permission-adapter.ts",1487,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002Fexamples\u002Fsrc\u002Fservices\u002Fpermissions\u002Fcamera-permission-adapter.ts",{"path":93,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":94,"sourceHtmlUrl":95},"references\u002Fasking-flow.md",15631,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002Freferences\u002Fasking-flow.md",{"path":97,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":98,"sourceHtmlUrl":99},"references\u002Fchecker-rules.md",9553,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002Freferences\u002Fchecker-rules.md",{"path":101,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":102,"sourceHtmlUrl":103},"references\u002Fconfig-and-wiring.md",9724,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002Freferences\u002Fconfig-and-wiring.md",{"path":105,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":106,"sourceHtmlUrl":107},"references\u002Fpitfalls.md",6527,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002Freferences\u002Fpitfalls.md",{"path":109,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":110,"sourceHtmlUrl":111},"references\u002Fplatform-behaviour.md",10278,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002Freferences\u002Fplatform-behaviour.md",{"path":113,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":114,"sourceHtmlUrl":115},"references\u002Ftesting-permissions.md",7527,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002Freferences\u002Ftesting-permissions.md",{"path":117,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":118,"sourceHtmlUrl":119},"scripts\u002Fcheck-lib.mjs",119923,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002Fscripts\u002Fcheck-lib.mjs",{"path":121,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":122,"sourceHtmlUrl":123},"scripts\u002Fcheck-permissions.mjs",30633,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002Fscripts\u002Fcheck-permissions.mjs",{"path":125,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":126,"sourceHtmlUrl":127},"scripts\u002Flib\u002Fpermission-scan.mjs",8010,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002Fscripts\u002Flib\u002Fpermission-scan.mjs",{"path":129,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":130,"sourceHtmlUrl":131},"scripts\u002Flib\u002Fsource-scan.mjs",35908,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002Fscripts\u002Flib\u002Fsource-scan.mjs",{"path":133,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":134,"sourceHtmlUrl":135},"scripts\u002Fselftest.mjs",671,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002Fscripts\u002Fselftest.mjs",{"path":137,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":138,"sourceHtmlUrl":139},"templates\u002Fcontracts\u002Fpermissions.json",560,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002Ftemplates\u002Fcontracts\u002Fpermissions.json",{"path":141,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":142,"sourceHtmlUrl":143},"templates\u002Fcontracts\u002Fpermissions.schema.json",3804,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002Ftemplates\u002Fcontracts\u002Fpermissions.schema.json",{"path":145,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":146,"sourceHtmlUrl":147},"templates\u002Fsrc\u002Fcore\u002Fpermissions\u002Fpermission-state.test.ts",2116,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002Ftemplates\u002Fsrc\u002Fcore\u002Fpermissions\u002Fpermission-state.test.ts",{"path":149,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":150,"sourceHtmlUrl":151},"templates\u002Fsrc\u002Fcore\u002Fpermissions\u002Fpermission-state.ts",3276,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002Ftemplates\u002Fsrc\u002Fcore\u002Fpermissions\u002Fpermission-state.ts",{"path":153,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":154,"sourceHtmlUrl":155},"templates\u002Fsrc\u002Fhooks\u002Fuse-permission-gate.test.ts",6246,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002Ftemplates\u002Fsrc\u002Fhooks\u002Fuse-permission-gate.test.ts",{"path":157,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":158,"sourceHtmlUrl":159},"templates\u002Fsrc\u002Fhooks\u002Fuse-permission-gate.ts",6070,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002Ftemplates\u002Fsrc\u002Fhooks\u002Fuse-permission-gate.ts",{"path":161,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":162,"sourceHtmlUrl":163},"templates\u002Fsrc\u002Fservices\u002Fpermissions\u002Fexpo-permission-access.test.ts",3390,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002Ftemplates\u002Fsrc\u002Fservices\u002Fpermissions\u002Fexpo-permission-access.test.ts",{"path":165,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":166,"sourceHtmlUrl":167},"templates\u002Fsrc\u002Fservices\u002Fpermissions\u002Fexpo-permission-access.ts",3508,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002Ftemplates\u002Fsrc\u002Fservices\u002Fpermissions\u002Fexpo-permission-access.ts",{"path":169,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":170,"sourceHtmlUrl":171},"templates\u002Fsrc\u002Fservices\u002Fpermissions\u002Ffake-permissions.test.ts",3109,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002Ftemplates\u002Fsrc\u002Fservices\u002Fpermissions\u002Ffake-permissions.test.ts",{"path":173,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":174,"sourceHtmlUrl":175},"templates\u002Fsrc\u002Fservices\u002Fpermissions\u002Ffake-permissions.ts",3471,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002Ftemplates\u002Fsrc\u002Fservices\u002Fpermissions\u002Ffake-permissions.ts",{"path":177,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":178,"sourceHtmlUrl":179},"templates\u002Fsrc\u002Fservices\u002Fpermissions\u002Fpermission-status-mirror.test.ts",5563,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002Ftemplates\u002Fsrc\u002Fservices\u002Fpermissions\u002Fpermission-status-mirror.test.ts",{"path":181,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":182,"sourceHtmlUrl":183},"templates\u002Fsrc\u002Fservices\u002Fpermissions\u002Fpermission-status-mirror.ts",4249,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002Ftemplates\u002Fsrc\u002Fservices\u002Fpermissions\u002Fpermission-status-mirror.ts",{"path":185,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":186,"sourceHtmlUrl":187},"templates\u002Fsrc\u002Fservices\u002Fpermissions\u002Fpermissions-port.ts",1897,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002Ftemplates\u002Fsrc\u002Fservices\u002Fpermissions\u002Fpermissions-port.ts",{"path":189,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":190,"sourceHtmlUrl":191},"templates\u002Fsrc\u002Fservices\u002Fpermissions\u002Fsystem-settings-adapter.test.ts",1294,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002Ftemplates\u002Fsrc\u002Fservices\u002Fpermissions\u002Fsystem-settings-adapter.test.ts",{"path":193,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":194,"sourceHtmlUrl":195},"templates\u002Fsrc\u002Fservices\u002Fpermissions\u002Fsystem-settings-adapter.ts",1071,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002Ftemplates\u002Fsrc\u002Fservices\u002Fpermissions\u002Fsystem-settings-adapter.ts",{"path":197,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":198,"sourceHtmlUrl":199},"tests\u002Fbases\u002Fapp\u002Fapp.config.ts",850,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002Ftests\u002Fbases\u002Fapp\u002Fapp.config.ts",{"path":201,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":202,"sourceHtmlUrl":203},"tests\u002Fbases\u002Fapp\u002Fpackage.json",245,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002Ftests\u002Fbases\u002Fapp\u002Fpackage.json",{"path":205,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":206,"sourceHtmlUrl":207},"tests\u002Fbases\u002Fapp\u002Fsrc\u002Fapp\u002F_layout.tsx",141,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002Ftests\u002Fbases\u002Fapp\u002Fsrc\u002Fapp\u002F_layout.tsx",{"path":209,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":210,"sourceHtmlUrl":211},"tests\u002Fbases\u002Fapp\u002Fsrc\u002Fi18n\u002Flanguages.ts",110,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002Ftests\u002Fbases\u002Fapp\u002Fsrc\u002Fi18n\u002Flanguages.ts",{"path":213,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":214,"sourceHtmlUrl":215},"tests\u002Fbases\u002Fapp\u002Ftsconfig.json",137,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002Ftests\u002Fbases\u002Fapp\u002Ftsconfig.json",{"path":217,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":218,"sourceHtmlUrl":219},"tests\u002Ffixtures\u002Fcheck-permissions\u002FCASES.json",42545,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002Ftests\u002Ffixtures\u002Fcheck-permissions\u002FCASES.json",{"path":221,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":222,"sourceHtmlUrl":223},"tests\u002Ffixtures\u002Fcheck-permissions\u002Fgood\u002FEXPECT.txt",33,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002Ftests\u002Ffixtures\u002Fcheck-permissions\u002Fgood\u002FEXPECT.txt",{"path":225,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":226,"sourceHtmlUrl":227},"tests\u002Ffixtures\u002Fcheck-permissions\u002FSUITE.json",151,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fpermissions-and-system-prompts\u002Ftests\u002Ffixtures\u002Fcheck-permissions\u002FSUITE.json",[229,236,242,249,256,263],{"skillNo":230,"name":231,"nameZh":6,"description":232,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":233,"categories":234,"keywords":235,"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":237,"name":231,"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},"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":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},"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":250,"name":251,"nameZh":6,"description":252,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":253,"categories":254,"keywords":255,"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":257,"name":258,"nameZh":6,"description":259,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":260,"categories":261,"keywords":262,"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":264,"name":265,"nameZh":6,"description":266,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":267,"categories":268,"keywords":269,"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",[],[]]