[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F25MK50PCQE47JARD361HS":3,"skill-same:01M7F25MK50PCQE47JARD361HS":235},{"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},"01M7F25MK50PCQE47JARD361HS","crash-reporting-and-observability",null,"Wires Sentry crash reporting behind a port: start on consent, PII scrubbing, releases, source maps per build and update. Use when adding Sentry or a DSN, or stacks are minified. Not for analytics (analytics-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\u002Fcrash-reporting-and-observability\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: crash-reporting-and-observability\ndescription: \"Wires Sentry crash reporting behind a port: start on consent, PII scrubbing, releases, source maps per build and update. Use when adding Sentry or a DSN, or stacks are minified. Not for analytics (analytics-and-consent).\"\n---\n\n# Crash reporting and observability\n\nMakes an Expo app report its crashes to Sentry through one port and one adapter, plugged into the\ncanonical root skeleton as a root kit (one registry entry, no root file edited): nothing leaves the\ndevice before the person's choice, nothing personal leaves at all, every error reaches exactly one\nissue, and every store build and OTA update can be read in TypeScript source. One zero-dependency\nchecker proves it on the real code and configs.\n\n## Rules that must hold\n\n1. **`@sentry\u002Freact-native` is imported only by `src\u002Fservices\u002Fcrash-reporter\u002Fsentry-crash-reporter-adapter.ts`\n   (never the root entry file, where Sentry's manual setup puts `Sentry.init`); the app reports through `CrashReporterPort`** (`setConsent`, `captureException`, `addBreadcrumb`,\n   `flush`, `status`), created once by the root-kit registry (`src\u002Fservices\u002Fcreate-root-kits.ts`, part of\n   the composition root), tests through `createFakeCrashReporter()`, and Jest gets the root mock.\n   `sentry-expo` is never installed. *Why:* one file decides what leaves the device, and the real\n   SDK in Jest leaks a timer that keeps workers alive.\n2. **Nothing is sent before the person's choice, and never from development or tests.** The adapter\n   does no I\u002FO when created (no `Sentry.init` in the factory body); `Sentry.init` runs inside `setConsent(true)` only, which\n   `useCrashReportingConsent` calls from the crash reporting kit's effects, mounted beside the root\n   Stack after the splash release (never the registry, the composition root or the root layout); the\n   choice comes from a consent source over the settings field (or `fixedCrashConsent(false)` until the\n   app has the row); earlier reports wait in a bounded queue and a refusal drops them; the\n   development variant and an empty DSN never start the SDK. The settings default follows the\n   contract's `consentModel` (`opt-in` by default). *Why:* crash data is personal data under most\n   privacy laws, and startup must open no connection before the first frame.\n3. **The options are the privacy-first set.** `sendDefaultPii: false` written; no screenshots, view\n   hierarchy, Session Replay, feedback widget, logs or failed-request capture. *Why:* each of those\n   sends what the person typed, saw or requested; Sentry's own Expo snippet turns several on.\n4. **Every event and breadcrumb passes the scrubber, and no report names a person.** `beforeSend`,\n   `beforeSendTransaction` and `beforeBreadcrumb` call `crash-scrubber.ts`; there is no `setUser`\n   (only `setUser(null)`), and the port has no member for it; the developer turns on Sentry's\n   server-side scrubbing. *Why:* `beforeSend` never sees native crashes, but the JavaScript scope is\n   synced into them, so identity set anywhere ends up in reports the scrubber cannot touch.\n5. **Each error reaches Sentry exactly once.** The error net keeps Hermes' rejection tracker\n   (`reactNativeErrorHandlersIntegration({ onunhandledrejection: false })`), Sentry keeps the global\n   handler (it flushes fatal errors, and both native SDKs drop React Native's fatal-JS crash expecting\n   it), and the root skeleton's error sink records everything locally and hands each report to the\n   kit's `forward: createCrashForwarder(crashReporter)`, which sends exactly `render` and\n   `unhandled-rejection` (the reports of the first moments included: the sink replays them). *Why:*\n   Hermes keeps one tracker (last caller wins), and a forwarded `global-handler` report would\n   duplicate every uncaught exception.\n6. **Breadcrumbs carry route patterns and fixed event names, never content.** Route crumbs come from\n   `useSegments()` (`tasks\u002F[id]`), never `usePathname()` or search params; console, touch and UI crumbs\n   are dropped; no `Sentry.wrap` or `TouchEventBoundary`. *Why:* paths, console lines and pressed\n   labels hold ids, search text and titles.\n7. **Release and dist come from the native build; environment is the variant.** No `release` or\n   `dist` in the options (`\u003Cid>@\u003Cversion>+\u003Cbuild>` and `\u003Cbuild>` come from native);\n   `environment: config.environment`. *Why:* a JavaScript release splits one build into two releases\n   and no longer matches the uploaded symbols; without `environment` every preview crash is filed under\n   production.\n8. **Every bundle reports its debug ID and every reporting build uploads its maps and symbols.** Metro\n   uses `getSentryExpoConfig`, as the crash reporting Metro kit in `scripts\u002Fmetro\u002Fmetro-kits.ts` (the\n   canonical `metro.config.js` composes it; never edited); `app.config.ts` lists `@sentry\u002Freact-native\u002Fexpo` with `organization`\n   and `project`; profiles in the contract's `uploadProfiles` never set `SENTRY_DISABLE_AUTO_UPLOAD`,\n   `SENTRY_ALLOW_FAILURE` or a debug-upload switch; installs keep optional dependencies (the\n   `sentry-cli` binary). *Why:* Expo's default config writes a debug ID into the map only, and a\n   build without uploads ships crashes nobody can read.\n9. **Every OTA update uploads its source maps.** Each script or workflow that runs `eas update` also\n   runs `npx sentry-expo-upload-sourcemaps dist`; each EAS Workflows `type: update` job sets\n   `upload_sentry_sourcemaps: true` (or uploads in its `after_update` hook); ota-updates' restart\n   path awaits `crashReporter.flush()` before reloading (that skill owns the step). *Why:* an update's bundle was never built natively, so nothing else uploads it.\n10. **The upload token is a build secret.** `SENTRY_AUTH_TOKEN` lives in EAS (secret visibility) or CI\n    secrets; never in the plugin options, the app config, a committed `.sentryclirc` or\n    `sentry.properties`; `.env.sentry-build-plugin` is git-ignored. *Why:* the plugin writes an\n    `authToken` option into the native projects, and the token grants write access to the org.\n11. **Tracing is off by default, capped and declared.** `TRACES_SAMPLE_RATE` and\n    `PROFILES_SAMPLE_RATE` are literals in `src\u002Fconfig\u002Fcrash-reporting-config.ts`, at most the\n    contract's `maxTracesSampleRate`, no `tracesSampler`; a rate above 0 declares `performance-data`.\n    *Why:* tracing multiplies volume and is a separate data type in both stores' declarations.\n12. **`contracts\u002Fcrash-reporting.json` states the facts and the store declarations match them**:\n    provider, consent model, tracing cap, upload profiles, and `collects` (`crash-data`,\n    `other-diagnostic-data`, `performance-data`), never linked to the user or used for tracking; the\n    `@sentry\u002Freact-native` rows of `contracts\u002Fprivacy.json` copy them (`privacy-sync`). *Why:*\n    privacy-and-store-declarations turns these facts into App Privacy, Data safety and privacy-manifest answers.\n13. **The developer owns the Sentry account; prove it on a release build.** Ask for the org, project\n    and DSN (never invent them), hand over the `eas env:set` commands and server-side settings, and\n    stop and ask before anything that sends data to their project or changes their account. *Why:*\n    those are outward-facing actions on someone else's service.\n\n## Workflow\n\n1. **Decide with the developer.** Read [references\u002Fprivacy-consent-and-scrubbing.md](references\u002Fprivacy-consent-and-scrubbing.md)\n   (sections 6 to 9) and agree the consent model, whether tracing is on, the upload profiles and the\n   org\u002Fproject slugs. Copy `templates\u002Fcontracts\u002Fcrash-reporting.json` (+ schema) and fill the facts.\n2. **Install:** `npx expo install @sentry\u002Freact-native` (never `@latest`); keep optional dependencies;\n   rebuild the development client. Details: [references\u002Fsetup-and-wiring.md](references\u002Fsetup-and-wiring.md).\n3. **Copy the templates** at the paths their first lines name: `templates\u002Fsrc\u002Fservices\u002Fcrash-reporter\u002F`\n   (port, adapter, scrubber, forwarder, fake and the root kit), `templates\u002Fsrc\u002Fconfig\u002F` (the config,\n   its reader and the DSN's type in `crash-reporting-env.d.ts`), `templates\u002Fsrc\u002Fhooks\u002Fuse-crash-reporting-consent.ts`,\n   `templates\u002Fsrc\u002Fhooks\u002Fuse-route-breadcrumbs.ts` (each with its test), `templates\u002Fscripts\u002Fmetro\u002Fmetro-kits.ts`\n   and `templates\u002F__mocks__\u002F@sentry\u002Freact-native.ts`. The root skeleton's slots come from\n   app-startup-and-bootstrap; set them up with it first.\n4. **Register the kit** in app-startup-and-bootstrap's registry `src\u002Fservices\u002Fcreate-root-kits.ts`\n   ([examples\u002Fcreate-root-kits.ts](examples\u002Fcreate-root-kits.ts)): create the adapter from\n   `readCrashReportingConfig()` and add `createCrashReportingKit({ crashReporter, consent })` to the\n   list. The root files stay unchanged: the kit's `forward` reaches the error sink and its effects\n   (the choice applied after the splash, route breadcrumbs) mount beside the root Stack.\n5. **Give the person the choice** ([examples\u002Fsettings-schema.ts](examples\u002Fsettings-schema.ts)): add\n   `crashReportsEnabled` the settings-and-preferences way (default from the consent model) with its\n   settings row, whose hint says that turning it back on after turning it off applies at the next\n   launch, and pass the kit a consent source over that field (the example's `settingsCrashConsent`).\n   Until the row exists, pass `fixedCrashConsent(false)`. Read\n   [references\u002Ferror-flow-breadcrumbs-and-tracing.md](references\u002Ferror-flow-breadcrumbs-and-tracing.md).\n6. **Build config** (`templates\u002Fscripts\u002Fmetro\u002Fmetro-kits.ts`, [examples\u002Fapp.config.ts](examples\u002Fapp.config.ts)):\n   the Metro kit builds the base config with `getSentryExpoConfig` (the canonical `metro.config.js`\n   composes it and keeps `cacheVersion`); the plugin entry with `organization` and `project`;\n   `SENTRY_DISABLE_AUTO_UPLOAD=true` only in non-reporting eas.json profiles; append\n   `&& npx sentry-expo-upload-sourcemaps dist` to every `eas update` script. Read\n   [references\u002Freleases-symbols-and-sourcemaps.md](references\u002Freleases-symbols-and-sourcemaps.md).\n7. **Hand over the human steps** and stop until the developer confirms: the `eas env:set` commands\n   (DSN plain text per reporting environment, `SENTRY_AUTH_TOKEN` secret), Sentry's server-side\n   scrubbing settings, and the declarations for privacy-and-store-declarations (App Privacy, Data\n   safety, `ios.privacyManifests` entries).\n8. **Run the tests:** `npx jest src\u002Fservices\u002Fcrash-reporter src\u002Fhooks src\u002Fconfig scripts\u002Fmetro --ci --maxWorkers=2`,\n   then the app's typecheck and lint.\n9. **Run the checker:** `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-crash-reporting.mjs .` (multi-package:\n   `--app-dir apps\u002F\u003Capp>`). Fix every `FAIL` line ([references\u002Ftesting-and-checker-rules.md](references\u002Ftesting-and-checker-rules.md)\n   explains each rule) and rerun until `RESULT: PASS`.\n10. **Before the first store release:** the device proof on a preview build and a named simulator and\n    emulator (testing reference, section 5), with the developer's go-ahead.\n11. **Report** the consent model, the files changed, the SKIP lines, the open human steps, and every\n    `RESULT` line.\n\n## Definition of done\n\n- [ ] Only the adapter imports `@sentry\u002Freact-native`; the registry creates it and registers `createCrashReportingKit`; tests use the fake; the root mock is in `__mocks__\u002F@sentry\u002F`.\n- [ ] The SDK starts only from `setConsent(true)`, applied by the kit's effects after the splash; the settings default matches `consentModel`; the development variant never reports.\n- [ ] The options are the privacy-first set with the scrubber hooks, `environment`, the rejection-tracker integration, and no `release`, `dist`, `setUser` or `Sentry.wrap`.\n- [ ] The kit forwards through `createCrashForwarder`: exactly `render` and `unhandled-rejection`.\n- [ ] The Metro kit uses `getSentryExpoConfig`; the plugin entry has `organization` and `project` and no token; upload profiles keep uploads on; every `eas update` uploads its maps.\n- [ ] `contracts\u002Fcrash-reporting.json` is filled; tracing is 0 or within the cap and declared.\n- [ ] The developer confirmed the EAS variables, the server-side scrubbing settings and the store declarations, or the report lists them as open.\n- [ ] The tests in workflow step 8 pass, with the app's typecheck and lint.\n- [ ] Expected SKIP only: `SKIP eas.json [upload-not-disabled] not yet created (eas-build-and-submit creates it)` before eas.json exists.\n- [ ] `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-crash-reporting.mjs .` prints `RESULT: PASS`\n\n## Anti-patterns\n\n- **Pasting Sentry's setup snippet.** It sets `sendDefaultPii: true`, replay sample rates and\n  `Sentry.wrap(RootLayout)`, and calls `Sentry.init` at module scope: data leaves before any choice.\n  Copy the adapter template.\n- **`Sentry.init` in `index.ts`, `App.tsx`, `_layout.tsx` or the composition root.** It starts the SDK and its connection\n  during startup and before consent; the kit's effects apply the choice after the splash.\n- **Wiring crash reporting into `app-root.tsx`, `app-stack.tsx` or `metro.config.js`.** The root\n  skeleton stays canonical: register the kit in `src\u002Fservices\u002Fcreate-root-kits.ts` and list the Metro\n  kit in `scripts\u002Fmetro\u002Fmetro-kits.ts` (check-startup's `root-kits` fails a kit imported by a root file).\n- **Turning off Sentry's global handler \"to avoid duplicates\".** Native SDKs drop React Native's\n  fatal-JS crash expecting the JavaScript handler, so fatal errors vanish; turn off only the rejection\n  tracker and forward rejections from the sink.\n- **Forwarding every net source to `captureException`.** Uncaught exceptions arrive twice.\n- **`setUser({ id: account.id })` \"for support\".** It is synced into native crash reports and changes\n  the store declarations; give support the event id instead.\n- **Breadcrumbs from `usePathname()`, console logs or `Sentry.wrap` touch tracking.** Ids, search text\n  and titles leave the device.\n- **Setting `release` to `version` or a git SHA in JavaScript.** Native events and uploads use the\n  native name; the JavaScript one splits the build.\n- **`SENTRY_DISABLE_AUTO_UPLOAD=true` in a shared base profile** to make development builds pass: the\n  production profile inherits it. Put it in the development profile only.\n- **`authToken: process.env.SENTRY_AUTH_TOKEN` in the plugin entry.** Prebuild writes the token into\n  the native projects; sentry-cli reads the environment by itself.\n- **Reporting expected failures** (offline, validation, a handled 404): they bury real crashes and\n  spend the quota; they are `Result` values.\n\n## Files in this skill\n\n| File | What it is | Read\u002Frun when |\n|---|---|---|\n| [references\u002Fsetup-and-wiring.md](references\u002Fsetup-and-wiring.md) | Install, the files, DSN and variant, composition root, root mock, config plugin, Metro, EAS variables, Expo Go, multi-package | Workflow steps 2 to 4 and 6 |\n| [references\u002Fprivacy-consent-and-scrubbing.md](references\u002Fprivacy-consent-and-scrubbing.md) | What a report holds, the option set, the scrubber and its limits, no identity, server-side scrubbing, consent models and timing, store declarations, privacy manifest, children's apps | Workflow steps 1, 5 and 7 |\n| [references\u002Ferror-flow-breadcrumbs-and-tracing.md](references\u002Ferror-flow-breadcrumbs-and-tracing.md) | Who catches what, the rejection tracker and global handler, the sink, defects vs expected failures, breadcrumb rules, tracing, flush before OTA reload | Workflow step 5 |\n| [references\u002Freleases-symbols-and-sourcemaps.md](references\u002Freleases-symbols-and-sourcemaps.md) | Release, dist, environment; debug IDs; EAS and local uploads; OTA uploads; Hermes; proving symbolication; failure modes | Workflow step 6, minified stacks |\n| [references\u002Ftesting-and-checker-rules.md](references\u002Ftesting-and-checker-rules.md) | What the tests prove, testing reporting code, every checker rule with its fix, SKIP and NOT APPLICABLE, the device proof, pitfalls | Workflow steps 8 to 10 |\n| `templates\u002Fsrc\u002Fservices\u002Fcrash-reporter\u002F` | Port, Sentry adapter, scrubber, forwarder, fake, and the root kit `crash-reporting-root-kit.tsx` (+ tests) | Workflow steps 3-4 |\n| `templates\u002Fsrc\u002Fconfig\u002F` | `crash-reporting-config.ts`: the DSN and variant parser, `readCrashReportingConfig()` and the sample-rate constants (+ test); `crash-reporting-env.d.ts`: the DSN variable's type | Workflow step 3 |\n| `templates\u002Fscripts\u002Fmetro\u002Fmetro-kits.ts` | The Metro kit list with Sentry's `getSentryExpoConfig` (the canonical `metro.config.js` composes it) | Workflow step 6 |\n| `templates\u002Fsrc\u002Fhooks\u002F` | `use-crash-reporting-consent.ts` (applies the saved choice after the splash) and `use-route-breadcrumbs.ts` (route-pattern breadcrumbs), each with its test | Workflow step 3 |\n| `templates\u002F__mocks__\u002F@sentry\u002Freact-native.ts` | Root Jest mock of the SDK | Workflow step 3 |\n| `templates\u002Fcontracts\u002F` | `crash-reporting.json` and its schema | Workflow step 1 |\n| [examples\u002Fcreate-root-kits.ts](examples\u002Fcreate-root-kits.ts) | The root-kit registry with the crash reporting kit and a consent source over the settings store | Workflow steps 4-5 |\n| [examples\u002Fsettings-schema.ts](examples\u002Fsettings-schema.ts) | The `crashReportsEnabled` settings field | Workflow step 5 |\n| [examples\u002Fapp.config.ts](examples\u002Fapp.config.ts) | The config plugin entry | Workflow step 6 |\n| `scripts\u002Fcheck-crash-reporting.mjs` | The checker (29 rules; `--help` lists them) | Workflow step 9, definition of done |\n| `scripts\u002Flib\u002F` | `crash-scan.mjs` (the checker's source helpers); `source-scan.mjs`, `object-literal.mjs` (shared, synced; do not edit) | With the checker |\n| `scripts\u002Fcheck-lib.mjs` | Shared checker library (synced; do not edit) | With the checker |\n| `scripts\u002Fselftest.mjs` | Proves the checker against the fixtures | After changing the checker |\n| `tests\u002Fbases\u002Fapp\u002F` | The fixture base app (package.json, eas.json, .npmrc, .gitignore) | With the self-test |\n| `tests\u002Ffixtures\u002F` | One good case, a bad case per rule, pass and error cases | With the self-test |\n| `assets\u002Fshared.json` | Which shared files this skill syncs | When syncing |\n\n## Related skills\n\n- `error-handling-typed-results` - the error net, the crash fallback and `Result` values.\n- `architecture-and-boundaries` - ports, adapters, the composition root, the error log.\n- `app-startup-and-bootstrap` - the root skeleton's slots and registry the kit plugs into, and the startup order.\n- `settings-and-preferences` - adding the `crashReportsEnabled` field and its row.\n- `analytics-and-consent` - product analytics and its own consent.\n- `privacy-and-store-declarations` - App Privacy, Data safety, the privacy manifest, the network inventory.\n- `app-variants-and-environment` - `EXPO_PUBLIC_*` readers and EAS secrets.\n- `eas-build-and-submit` - profiles, remote versions and the build environment.\n- `ota-updates` - publishing updates and the flush before reload.\n- `performance-budgets` - startup and frame budgets measured in test builds.\n- `debug-menu-and-test-hooks` - test-only crash triggers for the device proof.\n- `unit-and-component-tests` - root mocks and the fake-based test style.\n","# Crash reporting and observability\n\nMakes an Expo app report its crashes to Sentry through one port and one adapter, plugged into the\ncanonical root skeleton as a root kit (one registry entry, no root file edited): nothing leaves the\ndevice before the person's choice, nothing personal leaves at all, every error reaches exactly one\nissue, and every store build and OTA update can be read in TypeScript source. One zero-dependency\nchecker proves it on the real code and configs.\n\n## Rules that must hold\n\n1. **`@sentry\u002Freact-native` is imported only by `src\u002Fservices\u002Fcrash-reporter\u002Fsentry-crash-reporter-adapter.ts`\n   (never the root entry file, where Sentry's manual setup puts `Sentry.init`); the app reports through `CrashReporterPort`** (`setConsent`, `captureException`, `addBreadcrumb`,\n   `flush`, `status`), created once by the root-kit registry (`src\u002Fservices\u002Fcreate-root-kits.ts`, part of\n   the composition root), tests through `createFakeCrashReporter()`, and Jest gets the root mock.\n   `sentry-expo` is never installed. *Why:* one file decides what leaves the device, and the real\n   SDK in Jest leaks a timer that keeps workers alive.\n2. **Nothing is sent before the person's choice, and never from development or tests.** The adapter\n   does no I\u002FO when created (no `Sentry.init` in the factory body); `Sentry.init` runs inside `setConsent(true)` only, which\n   `useCrashReportingConsent` calls from the crash reporting kit's effects, mounted beside the root\n   Stack after the splash release (never the registry, the composition root or the root layout); the\n   choice comes from a consent source over the settings field (or `fixedCrashConsent(false)` until the\n   app has the row); earlier reports wait in a bounded queue and a refusal drops them; the\n   development variant and an empty DSN never start the SDK. The settings default follows the\n   contract's `consentModel` (`opt-in` by default). *Why:* crash data is personal data under most\n   privacy laws, and startup must open no connection before the first frame.\n3. **The options are the privacy-first set.** `sendDefaultPii: false` written; no screenshots, view\n   hierarchy, Session Replay, feedback widget, logs or failed-request capture. *Why:* each of those\n   sends what the person typed, saw or requested; Sentry's own Expo snippet turns several on.\n4. **Every event and breadcrumb passes the scrubber, and no report names a person.** `beforeSend`,\n   `beforeSendTransaction` and `beforeBreadcrumb` call `crash-scrubber.ts`; there is no `setUser`\n   (only `setUser(null)`), and the port has no member for it; the developer turns on Sentry's\n   server-side scrubbing. *Why:* `beforeSend` never sees native crashes, but the JavaScript scope is\n   synced into them, so identity set anywhere ends up in reports the scrubber cannot touch.\n5. **Each error reaches Sentry exactly once.** The error net keeps Hermes' rejection tracker\n   (`reactNativeErrorHandlersIntegration({ onunhandledrejection: false })`), Sentry keeps the global\n   handler (it flushes fatal errors, and both native SDKs drop React Native's fatal-JS crash expecting\n   it), and the root skeleton's error sink records everything locally and hands each report to the\n   kit's `forward: createCrashForwarder(crashReporter)`, which sends exactly `render` and\n   `unhandled-rejection` (the reports of the first moments included: the sink replays them). *Why:*\n   Hermes keeps one tracker (last caller wins), and a forwarded `global-handler` report would\n   duplicate every uncaught exception.\n6. **Breadcrumbs carry route patterns and fixed event names, never content.** Route crumbs come from\n   `useSegments()` (`tasks\u002F[id]`), never `usePathname()` or search params; console, touch and UI crumbs\n   are dropped; no `Sentry.wrap` or `TouchEventBoundary`. *Why:* paths, console lines and pressed\n   labels hold ids, search text and titles.\n7. **Release and dist come from the native build; environment is the variant.** No `release` or\n   `dist` in the options (`\u003Cid>@\u003Cversion>+\u003Cbuild>` and `\u003Cbuild>` come from native);\n   `environment: config.environment`. *Why:* a JavaScript release splits one build into two releases\n   and no longer matches the uploaded symbols; without `environment` every preview crash is filed under\n   production.\n8. **Every bundle reports its debug ID and every reporting build uploads its maps and symbols.** Metro\n   uses `getSentryExpoConfig`, as the crash reporting Metro kit in `scripts\u002Fmetro\u002Fmetro-kits.ts` (the\n   canonical `metro.config.js` composes it; never edited); `app.config.ts` lists `@sentry\u002Freact-native\u002Fexpo` with `organization`\n   and `project`; profiles in the contract's `uploadProfiles` never set `SENTRY_DISABLE_AUTO_UPLOAD`,\n   `SENTRY_ALLOW_FAILURE` or a debug-upload switch; installs keep optional dependencies (the\n   `sentry-cli` binary). *Why:* Expo's default config writes a debug ID into the map only, and a\n   build without uploads ships crashes nobody can read.\n9. **Every OTA update uploads its source maps.** Each script or workflow that runs `eas update` also\n   runs `npx sentry-expo-upload-sourcemaps dist`; each EAS Workflows `type: update` job sets\n   `upload_sentry_sourcemaps: true` (or uploads in its `after_update` hook); ota-updates' restart\n   path awaits `crashReporter.flush()` before reloading (that skill owns the step). *Why:* an update's bundle was never built natively, so nothing else uploads it.\n10. **The upload token is a build secret.** `SENTRY_AUTH_TOKEN` lives in EAS (secret visibility) or CI\n    secrets; never in the plugin options, the app config, a committed `.sentryclirc` or\n    `sentry.properties`; `.env.sentry-build-plugin` is git-ignored. *Why:* the plugin writes an\n    `authToken` option into the native projects, and the token grants write access to the org.\n11. **Tracing is off by default, capped and declared.** `TRACES_SAMPLE_RATE` and\n    `PROFILES_SAMPLE_RATE` are literals in `src\u002Fconfig\u002Fcrash-reporting-config.ts`, at most the\n    contract's `maxTracesSampleRate`, no `tracesSampler`; a rate above 0 declares `performance-data`.\n    *Why:* tracing multiplies volume and is a separate data type in both stores' declarations.\n12. **`contracts\u002Fcrash-reporting.json` states the facts and the store declarations match them**:\n    provider, consent model, tracing cap, upload profiles, and `collects` (`crash-data`,\n    `other-diagnostic-data`, `performance-data`), never linked to the user or used for tracking; the\n    `@sentry\u002Freact-native` rows of `contracts\u002Fprivacy.json` copy them (`privacy-sync`). *Why:*\n    privacy-and-store-declarations turns these facts into App Privacy, Data safety and privacy-manifest answers.\n13. **The developer owns the Sentry account; prove it on a release build.** Ask for the org, project\n    and DSN (never invent them), hand over the `eas env:set` commands and server-side settings, and\n    stop and ask before anything that sends data to their project or changes their account. *Why:*\n    those are outward-facing actions on someone else's service.\n\n## Workflow\n\n1. **Decide with the developer.** Read [references\u002Fprivacy-consent-and-scrubbing.md](references\u002Fprivacy-consent-and-scrubbing.md)\n   (sections 6 to 9) and agree the consent model, whether tracing is on, the upload profiles and the\n   org\u002Fproject slugs. Copy `templates\u002Fcontracts\u002Fcrash-reporting.json` (+ schema) and fill the facts.\n2. **Install:** `npx expo install @sentry\u002Freact-native` (never `@latest`); keep optional dependencies;\n   rebuild the development client. Details: [references\u002Fsetup-and-wiring.md](references\u002Fsetup-and-wiring.md).\n3. **Copy the templates** at the paths their first lines name: `templates\u002Fsrc\u002Fservices\u002Fcrash-reporter\u002F`\n   (port, adapter, scrubber, forwarder, fake and the root kit), `templates\u002Fsrc\u002Fconfig\u002F` (the config,\n   its reader and the DSN's type in `crash-reporting-env.d.ts`), `templates\u002Fsrc\u002Fhooks\u002Fuse-crash-reporting-consent.ts`,\n   `templates\u002Fsrc\u002Fhooks\u002Fuse-route-breadcrumbs.ts` (each with its test), `templates\u002Fscripts\u002Fmetro\u002Fmetro-kits.ts`\n   and `templates\u002F__mocks__\u002F@sentry\u002Freact-native.ts`. The root skeleton's slots come from\n   app-startup-and-bootstrap; set them up with it first.\n4. **Register the kit** in app-startup-and-bootstrap's registry `src\u002Fservices\u002Fcreate-root-kits.ts`\n   ([examples\u002Fcreate-root-kits.ts](examples\u002Fcreate-root-kits.ts)): create the adapter from\n   `readCrashReportingConfig()` and add `createCrashReportingKit({ crashReporter, consent })` to the\n   list. The root files stay unchanged: the kit's `forward` reaches the error sink and its effects\n   (the choice applied after the splash, route breadcrumbs) mount beside the root Stack.\n5. **Give the person the choice** ([examples\u002Fsettings-schema.ts](examples\u002Fsettings-schema.ts)): add\n   `crashReportsEnabled` the settings-and-preferences way (default from the consent model) with its\n   settings row, whose hint says that turning it back on after turning it off applies at the next\n   launch, and pass the kit a consent source over that field (the example's `settingsCrashConsent`).\n   Until the row exists, pass `fixedCrashConsent(false)`. Read\n   [references\u002Ferror-flow-breadcrumbs-and-tracing.md](references\u002Ferror-flow-breadcrumbs-and-tracing.md).\n6. **Build config** (`templates\u002Fscripts\u002Fmetro\u002Fmetro-kits.ts`, [examples\u002Fapp.config.ts](examples\u002Fapp.config.ts)):\n   the Metro kit builds the base config with `getSentryExpoConfig` (the canonical `metro.config.js`\n   composes it and keeps `cacheVersion`); the plugin entry with `organization` and `project`;\n   `SENTRY_DISABLE_AUTO_UPLOAD=true` only in non-reporting eas.json profiles; append\n   `&& npx sentry-expo-upload-sourcemaps dist` to every `eas update` script. Read\n   [references\u002Freleases-symbols-and-sourcemaps.md](references\u002Freleases-symbols-and-sourcemaps.md).\n7. **Hand over the human steps** and stop until the developer confirms: the `eas env:set` commands\n   (DSN plain text per reporting environment, `SENTRY_AUTH_TOKEN` secret), Sentry's server-side\n   scrubbing settings, and the declarations for privacy-and-store-declarations (App Privacy, Data\n   safety, `ios.privacyManifests` entries).\n8. **Run the tests:** `npx jest src\u002Fservices\u002Fcrash-reporter src\u002Fhooks src\u002Fconfig scripts\u002Fmetro --ci --maxWorkers=2`,\n   then the app's typecheck and lint.\n9. **Run the checker:** `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-crash-reporting.mjs .` (multi-package:\n   `--app-dir apps\u002F\u003Capp>`). Fix every `FAIL` line ([references\u002Ftesting-and-checker-rules.md](references\u002Ftesting-and-checker-rules.md)\n   explains each rule) and rerun until `RESULT: PASS`.\n10. **Before the first store release:** the device proof on a preview build and a named simulator and\n    emulator (testing reference, section 5), with the developer's go-ahead.\n11. **Report** the consent model, the files changed, the SKIP lines, the open human steps, and every\n    `RESULT` line.\n\n## Definition of done\n\n- [ ] Only the adapter imports `@sentry\u002Freact-native`; the registry creates it and registers `createCrashReportingKit`; tests use the fake; the root mock is in `__mocks__\u002F@sentry\u002F`.\n- [ ] The SDK starts only from `setConsent(true)`, applied by the kit's effects after the splash; the settings default matches `consentModel`; the development variant never reports.\n- [ ] The options are the privacy-first set with the scrubber hooks, `environment`, the rejection-tracker integration, and no `release`, `dist`, `setUser` or `Sentry.wrap`.\n- [ ] The kit forwards through `createCrashForwarder`: exactly `render` and `unhandled-rejection`.\n- [ ] The Metro kit uses `getSentryExpoConfig`; the plugin entry has `organization` and `project` and no token; upload profiles keep uploads on; every `eas update` uploads its maps.\n- [ ] `contracts\u002Fcrash-reporting.json` is filled; tracing is 0 or within the cap and declared.\n- [ ] The developer confirmed the EAS variables, the server-side scrubbing settings and the store declarations, or the report lists them as open.\n- [ ] The tests in workflow step 8 pass, with the app's typecheck and lint.\n- [ ] Expected SKIP only: `SKIP eas.json [upload-not-disabled] not yet created (eas-build-and-submit creates it)` before eas.json exists.\n- [ ] `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-crash-reporting.mjs .` prints `RESULT: PASS`\n\n## Anti-patterns\n\n- **Pasting Sentry's setup snippet.** It sets `sendDefaultPii: true`, replay sample rates and\n  `Sentry.wrap(RootLayout)`, and calls `Sentry.init` at module scope: data leaves before any choice.\n  Copy the adapter template.\n- **`Sentry.init` in `index.ts`, `App.tsx`, `_layout.tsx` or the composition root.** It starts the SDK and its connection\n  during startup and before consent; the kit's effects apply the choice after the splash.\n- **Wiring crash reporting into `app-root.tsx`, `app-stack.tsx` or `metro.config.js`.** The root\n  skeleton stays canonical: register the kit in `src\u002Fservices\u002Fcreate-root-kits.ts` and list the Metro\n  kit in `scripts\u002Fmetro\u002Fmetro-kits.ts` (check-startup's `root-kits` fails a kit imported by a root file).\n- **Turning off Sentry's global handler \"to avoid duplicates\".** Native SDKs drop React Native's\n  fatal-JS crash expecting the JavaScript handler, so fatal errors vanish; turn off only the rejection\n  tracker and forward rejections from the sink.\n- **Forwarding every net source to `captureException`.** Uncaught exceptions arrive twice.\n- **`setUser({ id: account.id })` \"for support\".** It is synced into native crash reports and changes\n  the store declarations; give support the event id instead.\n- **Breadcrumbs from `usePathname()`, console logs or `Sentry.wrap` touch tracking.** Ids, search text\n  and titles leave the device.\n- **Setting `release` to `version` or a git SHA in JavaScript.** Native events and uploads use the\n  native name; the JavaScript one splits the build.\n- **`SENTRY_DISABLE_AUTO_UPLOAD=true` in a shared base profile** to make development builds pass: the\n  production profile inherits it. Put it in the development profile only.\n- **`authToken: process.env.SENTRY_AUTH_TOKEN` in the plugin entry.** Prebuild writes the token into\n  the native projects; sentry-cli reads the environment by itself.\n- **Reporting expected failures** (offline, validation, a handled 404): they bury real crashes and\n  spend the quota; they are `Result` values.\n\n## Files in this skill\n\n| File | What it is | Read\u002Frun when |\n|---|---|---|\n| [references\u002Fsetup-and-wiring.md](references\u002Fsetup-and-wiring.md) | Install, the files, DSN and variant, composition root, root mock, config plugin, Metro, EAS variables, Expo Go, multi-package | Workflow steps 2 to 4 and 6 |\n| [references\u002Fprivacy-consent-and-scrubbing.md](references\u002Fprivacy-consent-and-scrubbing.md) | What a report holds, the option set, the scrubber and its limits, no identity, server-side scrubbing, consent models and timing, store declarations, privacy manifest, children's apps | Workflow steps 1, 5 and 7 |\n| [references\u002Ferror-flow-breadcrumbs-and-tracing.md](references\u002Ferror-flow-breadcrumbs-and-tracing.md) | Who catches what, the rejection tracker and global handler, the sink, defects vs expected failures, breadcrumb rules, tracing, flush before OTA reload | Workflow step 5 |\n| [references\u002Freleases-symbols-and-sourcemaps.md](references\u002Freleases-symbols-and-sourcemaps.md) | Release, dist, environment; debug IDs; EAS and local uploads; OTA uploads; Hermes; proving symbolication; failure modes | Workflow step 6, minified stacks |\n| [references\u002Ftesting-and-checker-rules.md](references\u002Ftesting-and-checker-rules.md) | What the tests prove, testing reporting code, every checker rule with its fix, SKIP and NOT APPLICABLE, the device proof, pitfalls | Workflow steps 8 to 10 |\n| `templates\u002Fsrc\u002Fservices\u002Fcrash-reporter\u002F` | Port, Sentry adapter, scrubber, forwarder, fake, and the root kit `crash-reporting-root-kit.tsx` (+ tests) | Workflow steps 3-4 |\n| `templates\u002Fsrc\u002Fconfig\u002F` | `crash-reporting-config.ts`: the DSN and variant parser, `readCrashReportingConfig()` and the sample-rate constants (+ test); `crash-reporting-env.d.ts`: the DSN variable's type | Workflow step 3 |\n| `templates\u002Fscripts\u002Fmetro\u002Fmetro-kits.ts` | The Metro kit list with Sentry's `getSentryExpoConfig` (the canonical `metro.config.js` composes it) | Workflow step 6 |\n| `templates\u002Fsrc\u002Fhooks\u002F` | `use-crash-reporting-consent.ts` (applies the saved choice after the splash) and `use-route-breadcrumbs.ts` (route-pattern breadcrumbs), each with its test | Workflow step 3 |\n| `templates\u002F__mocks__\u002F@sentry\u002Freact-native.ts` | Root Jest mock of the SDK | Workflow step 3 |\n| `templates\u002Fcontracts\u002F` | `crash-reporting.json` and its schema | Workflow step 1 |\n| [examples\u002Fcreate-root-kits.ts](examples\u002Fcreate-root-kits.ts) | The root-kit registry with the crash reporting kit and a consent source over the settings store | Workflow steps 4-5 |\n| [examples\u002Fsettings-schema.ts](examples\u002Fsettings-schema.ts) | The `crashReportsEnabled` settings field | Workflow step 5 |\n| [examples\u002Fapp.config.ts](examples\u002Fapp.config.ts) | The config plugin entry | Workflow step 6 |\n| `scripts\u002Fcheck-crash-reporting.mjs` | The checker (29 rules; `--help` lists them) | Workflow step 9, definition of done |\n| `scripts\u002Flib\u002F` | `crash-scan.mjs` (the checker's source helpers); `source-scan.mjs`, `object-literal.mjs` (shared, synced; do not edit) | With the checker |\n| `scripts\u002Fcheck-lib.mjs` | Shared checker library (synced; do not edit) | With the checker |\n| `scripts\u002Fselftest.mjs` | Proves the checker against the fixtures | After changing the checker |\n| `tests\u002Fbases\u002Fapp\u002F` | The fixture base app (package.json, eas.json, .npmrc, .gitignore) | With the self-test |\n| `tests\u002Ffixtures\u002F` | One good case, a bad case per rule, pass and error cases | With the self-test |\n| `assets\u002Fshared.json` | Which shared files this skill syncs | When syncing |\n\n## Related skills\n\n- `error-handling-typed-results` - the error net, the crash fallback and `Result` values.\n- `architecture-and-boundaries` - ports, adapters, the composition root, the error log.\n- `app-startup-and-bootstrap` - the root skeleton's slots and registry the kit plugs into, and the startup order.\n- `settings-and-preferences` - adding the `crashReportsEnabled` field and its row.\n- `analytics-and-consent` - product analytics and its own consent.\n- `privacy-and-store-declarations` - App Privacy, Data safety, the privacy manifest, the network inventory.\n- `app-variants-and-environment` - `EXPO_PUBLIC_*` readers and EAS secrets.\n- `eas-build-and-submit` - profiles, remote versions and the build environment.\n- `ota-updates` - publishing updates and the flush before reload.\n- `performance-budgets` - startup and frame budgets measured in test builds.\n- `debug-menu-and-test-hooks` - test-only crash triggers for the device proof.\n- `unit-and-component-tests` - root mocks and the fake-based test style.\n",{"name":5,"description":7},"main","41a0e66d4d09de5b46e6537f59a97c7192473486","skills\u002Fcrash-reporting-and-observability",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 crash-reporting-and-observability",{"tool":40,"command":41},"bunx","bunx skills add zakariaf\u002FReactNative-Skills --skill crash-reporting-and-observability",{"tool":43,"command":44},"pnpm","pnpm dlx skills add zakariaf\u002FReactNative-Skills --skill crash-reporting-and-observability","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002FSKILL.md",true,[48,54,60,64,68,74,78,82,86,90,94,98,102,106,110,114,118,122,126,130,134,138,142,146,150,156,160,164,168,172,176,180,184,188,192,196,200,204,208,212,216,220,224,228,231],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"assets\u002Fshared.json","ASSET","资产文件",332,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Fassets\u002Fshared.json",{"path":55,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":58,"sourceHtmlUrl":59},"examples\u002Fapp.config.ts","SCRIPT","脚本",1756,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Fexamples\u002Fapp.config.ts",{"path":61,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":62,"sourceHtmlUrl":63},"examples\u002Fcreate-root-kits.ts",2441,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Fexamples\u002Fcreate-root-kits.ts",{"path":65,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":66,"sourceHtmlUrl":67},"examples\u002Fsettings-schema.ts",2197,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Fexamples\u002Fsettings-schema.ts",{"path":69,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":72,"sourceHtmlUrl":73},"references\u002Ferror-flow-breadcrumbs-and-tracing.md","REFERENCE","参考文档",10884,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Freferences\u002Ferror-flow-breadcrumbs-and-tracing.md",{"path":75,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":76,"sourceHtmlUrl":77},"references\u002Fprivacy-consent-and-scrubbing.md",17167,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Freferences\u002Fprivacy-consent-and-scrubbing.md",{"path":79,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":80,"sourceHtmlUrl":81},"references\u002Freleases-symbols-and-sourcemaps.md",10793,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Freferences\u002Freleases-symbols-and-sourcemaps.md",{"path":83,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":84,"sourceHtmlUrl":85},"references\u002Fsetup-and-wiring.md",14627,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Freferences\u002Fsetup-and-wiring.md",{"path":87,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":88,"sourceHtmlUrl":89},"references\u002Ftesting-and-checker-rules.md",15306,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Freferences\u002Ftesting-and-checker-rules.md",{"path":91,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":92,"sourceHtmlUrl":93},"scripts\u002Fcheck-crash-reporting.mjs",53652,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Fscripts\u002Fcheck-crash-reporting.mjs",{"path":95,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":96,"sourceHtmlUrl":97},"scripts\u002Fcheck-lib.mjs",119923,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Fscripts\u002Fcheck-lib.mjs",{"path":99,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":100,"sourceHtmlUrl":101},"scripts\u002Flib\u002Fcrash-scan.mjs",10690,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Fscripts\u002Flib\u002Fcrash-scan.mjs",{"path":103,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":104,"sourceHtmlUrl":105},"scripts\u002Flib\u002Fobject-literal.mjs",3545,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Fscripts\u002Flib\u002Fobject-literal.mjs",{"path":107,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":108,"sourceHtmlUrl":109},"scripts\u002Flib\u002Fsource-scan.mjs",35908,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Fscripts\u002Flib\u002Fsource-scan.mjs",{"path":111,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":112,"sourceHtmlUrl":113},"scripts\u002Fselftest.mjs",654,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Fscripts\u002Fselftest.mjs",{"path":115,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":116,"sourceHtmlUrl":117},"templates\u002F__mocks__\u002F@sentry\u002Freact-native.ts",992,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Ftemplates\u002F__mocks__\u002F@sentry\u002Freact-native.ts",{"path":119,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":120,"sourceHtmlUrl":121},"templates\u002Fcontracts\u002Fcrash-reporting.json",487,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Ftemplates\u002Fcontracts\u002Fcrash-reporting.json",{"path":123,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":124,"sourceHtmlUrl":125},"templates\u002Fcontracts\u002Fcrash-reporting.schema.json",1956,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Ftemplates\u002Fcontracts\u002Fcrash-reporting.schema.json",{"path":127,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":128,"sourceHtmlUrl":129},"templates\u002Fscripts\u002Fmetro\u002Fmetro-kits.ts",983,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Ftemplates\u002Fscripts\u002Fmetro\u002Fmetro-kits.ts",{"path":131,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":132,"sourceHtmlUrl":133},"templates\u002Fsrc\u002Fconfig\u002Fcrash-reporting-config.test.ts",3617,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Ftemplates\u002Fsrc\u002Fconfig\u002Fcrash-reporting-config.test.ts",{"path":135,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":136,"sourceHtmlUrl":137},"templates\u002Fsrc\u002Fconfig\u002Fcrash-reporting-config.ts",2770,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Ftemplates\u002Fsrc\u002Fconfig\u002Fcrash-reporting-config.ts",{"path":139,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":140,"sourceHtmlUrl":141},"templates\u002Fsrc\u002Fconfig\u002Fcrash-reporting-env.d.ts",538,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Ftemplates\u002Fsrc\u002Fconfig\u002Fcrash-reporting-env.d.ts",{"path":143,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":144,"sourceHtmlUrl":145},"templates\u002Fsrc\u002Fhooks\u002Fuse-crash-reporting-consent.test.ts",1211,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Ftemplates\u002Fsrc\u002Fhooks\u002Fuse-crash-reporting-consent.test.ts",{"path":147,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":148,"sourceHtmlUrl":149},"templates\u002Fsrc\u002Fhooks\u002Fuse-crash-reporting-consent.ts",1071,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Ftemplates\u002Fsrc\u002Fhooks\u002Fuse-crash-reporting-consent.ts",{"path":151,"resourceType":152,"resourceTypeDesc":153,"sizeBytes":154,"sourceHtmlUrl":155},"templates\u002Fsrc\u002Fhooks\u002Fuse-route-breadcrumbs.test.tsx","OTHER","其他",1292,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Ftemplates\u002Fsrc\u002Fhooks\u002Fuse-route-breadcrumbs.test.tsx",{"path":157,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":158,"sourceHtmlUrl":159},"templates\u002Fsrc\u002Fhooks\u002Fuse-route-breadcrumbs.ts",912,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Ftemplates\u002Fsrc\u002Fhooks\u002Fuse-route-breadcrumbs.ts",{"path":161,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":162,"sourceHtmlUrl":163},"templates\u002Fsrc\u002Fservices\u002Fcrash-reporter\u002Fcrash-forwarder.test.ts",1511,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Ftemplates\u002Fsrc\u002Fservices\u002Fcrash-reporter\u002Fcrash-forwarder.test.ts",{"path":165,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":166,"sourceHtmlUrl":167},"templates\u002Fsrc\u002Fservices\u002Fcrash-reporter\u002Fcrash-forwarder.ts",1525,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Ftemplates\u002Fsrc\u002Fservices\u002Fcrash-reporter\u002Fcrash-forwarder.ts",{"path":169,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":170,"sourceHtmlUrl":171},"templates\u002Fsrc\u002Fservices\u002Fcrash-reporter\u002Fcrash-reporter-port.ts",2226,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Ftemplates\u002Fsrc\u002Fservices\u002Fcrash-reporter\u002Fcrash-reporter-port.ts",{"path":173,"resourceType":152,"resourceTypeDesc":153,"sizeBytes":174,"sourceHtmlUrl":175},"templates\u002Fsrc\u002Fservices\u002Fcrash-reporter\u002Fcrash-reporting-root-kit.test.tsx",3315,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Ftemplates\u002Fsrc\u002Fservices\u002Fcrash-reporter\u002Fcrash-reporting-root-kit.test.tsx",{"path":177,"resourceType":152,"resourceTypeDesc":153,"sizeBytes":178,"sourceHtmlUrl":179},"templates\u002Fsrc\u002Fservices\u002Fcrash-reporter\u002Fcrash-reporting-root-kit.tsx",2747,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Ftemplates\u002Fsrc\u002Fservices\u002Fcrash-reporter\u002Fcrash-reporting-root-kit.tsx",{"path":181,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":182,"sourceHtmlUrl":183},"templates\u002Fsrc\u002Fservices\u002Fcrash-reporter\u002Fcrash-scrubber.test.ts",7973,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Ftemplates\u002Fsrc\u002Fservices\u002Fcrash-reporter\u002Fcrash-scrubber.test.ts",{"path":185,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":186,"sourceHtmlUrl":187},"templates\u002Fsrc\u002Fservices\u002Fcrash-reporter\u002Fcrash-scrubber.ts",9719,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Ftemplates\u002Fsrc\u002Fservices\u002Fcrash-reporter\u002Fcrash-scrubber.ts",{"path":189,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":190,"sourceHtmlUrl":191},"templates\u002Fsrc\u002Fservices\u002Fcrash-reporter\u002Ffake-crash-reporter.test.ts",2984,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Ftemplates\u002Fsrc\u002Fservices\u002Fcrash-reporter\u002Ffake-crash-reporter.test.ts",{"path":193,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":194,"sourceHtmlUrl":195},"templates\u002Fsrc\u002Fservices\u002Fcrash-reporter\u002Ffake-crash-reporter.ts",3453,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Ftemplates\u002Fsrc\u002Fservices\u002Fcrash-reporter\u002Ffake-crash-reporter.ts",{"path":197,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":198,"sourceHtmlUrl":199},"templates\u002Fsrc\u002Fservices\u002Fcrash-reporter\u002Fsentry-crash-reporter-adapter.test.ts",7360,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Ftemplates\u002Fsrc\u002Fservices\u002Fcrash-reporter\u002Fsentry-crash-reporter-adapter.test.ts",{"path":201,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":202,"sourceHtmlUrl":203},"templates\u002Fsrc\u002Fservices\u002Fcrash-reporter\u002Fsentry-crash-reporter-adapter.ts",5428,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Ftemplates\u002Fsrc\u002Fservices\u002Fcrash-reporter\u002Fsentry-crash-reporter-adapter.ts",{"path":205,"resourceType":152,"resourceTypeDesc":153,"sizeBytes":206,"sourceHtmlUrl":207},"tests\u002Fbases\u002Fapp\u002Fdot-gitignore",78,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Ftests\u002Fbases\u002Fapp\u002Fdot-gitignore",{"path":209,"resourceType":152,"resourceTypeDesc":153,"sizeBytes":210,"sourceHtmlUrl":211},"tests\u002Fbases\u002Fapp\u002Fdot-npmrc",53,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Ftests\u002Fbases\u002Fapp\u002Fdot-npmrc",{"path":213,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":214,"sourceHtmlUrl":215},"tests\u002Fbases\u002Fapp\u002Feas.json",733,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Ftests\u002Fbases\u002Fapp\u002Feas.json",{"path":217,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":218,"sourceHtmlUrl":219},"tests\u002Fbases\u002Fapp\u002Fmetro.config.js",1621,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Ftests\u002Fbases\u002Fapp\u002Fmetro.config.js",{"path":221,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":222,"sourceHtmlUrl":223},"tests\u002Fbases\u002Fapp\u002Fpackage.json",592,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Ftests\u002Fbases\u002Fapp\u002Fpackage.json",{"path":225,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":226,"sourceHtmlUrl":227},"tests\u002Ffixtures\u002Fcheck-crash-reporting\u002FCASES.json",33757,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Ftests\u002Ffixtures\u002Fcheck-crash-reporting\u002FCASES.json",{"path":229,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":14,"sourceHtmlUrl":230},"tests\u002Ffixtures\u002Fcheck-crash-reporting\u002Fgood\u002FEXPECT.txt","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Ftests\u002Ffixtures\u002Fcheck-crash-reporting\u002Fgood\u002FEXPECT.txt",{"path":232,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":233,"sourceHtmlUrl":234},"tests\u002Ffixtures\u002Fcheck-crash-reporting\u002FSUITE.json",191,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcrash-reporting-and-observability\u002Ftests\u002Ffixtures\u002Fcheck-crash-reporting\u002FSUITE.json",[236,243,249,256,263,270],{"skillNo":237,"name":238,"nameZh":6,"description":239,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":240,"categories":241,"keywords":242,"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":244,"name":238,"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},"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":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},"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":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},"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":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},"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":271,"name":272,"nameZh":6,"description":273,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":274,"categories":275,"keywords":276,"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",[],[]]