# Crash reporting and observability

> Crash reporting and observability is an open-source agent skill for developer tools. Adds consent-gated Sentry crash reporting with PII scrubbing and source map uploads. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/zakariaf/ReactNative-Skills/tree/main/skills/crash-reporting-and-observability
- **Repository:** https://github.com/zakariaf/reactnative-skills
- **GitHub stars:** 16
- **License:** MIT
- **Skill name:** crash-reporting-and-observability
- **Collection:** https://github.com/zakariaf/ReactNative-Skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

This skill wires Sentry crash reporting into an Expo app through a single port and adapter, registered as a root kit so the app's root files stay unchanged. Reporting stays off until the person agrees in a settings choice, development builds and empty DSNs never start the SDK, and a scrubber filters every event and breadcrumb before it leaves the device. The Sentry options are set to the privacy-first configuration, with personal data sending disabled and screenshots, session replay and feedback widgets turned off.

The workflow covers installing the SDK, copying templates for the port, adapter, scrubber, forwarder and test fake, and adding a Metro config and app config plugin so bundles carry debug IDs. Every EAS build and OTA update is set up to upload source maps and symbols, so minified stacks can be read in TypeScript. The skill also keeps the upload token in build secrets and fills a contract file that records what is collected, which the store privacy declarations must match.

A zero-dependency checker script validates the code and configs against its rules and reports PASS or FAIL per rule. The developer supplies the Sentry organization, project and DSN, and the skill stops for confirmation before anything is sent to their Sentry project.

## When your agent uses it

> 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).

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs JavaScript and TypeScript scripts](https://github.com/zakariaf/ReactNative-Skills/tree/HEAD/skills/crash-reporting-and-observability)
- [No network calls found in its scripts](https://github.com/zakariaf/ReactNative-Skills/tree/HEAD/skills/crash-reporting-and-observability)
- [License: MIT](https://github.com/zakariaf/ReactNative-Skills/tree/HEAD/skills/crash-reporting-and-observability)

## Features

- **Consent-gated SDK start:** Sentry starts only after the person's saved choice is applied, so nothing is sent before consent.
- **PII scrubbing:** Events and breadcrumbs pass through a scrubber, and reports never name a user.
- **Privacy-first Sentry options:** Screenshots, session replay, feedback widgets and personal data capture are disabled.
- **Single-path error reporting:** Each error is sent exactly once, with rejection handling and the global handler split between them.
- **Source map uploads:** Native builds and every OTA update upload debug symbols and source maps for readable stacks.
- **Consistency checker:** A zero-dependency script verifies the code, configs and contract, reporting PASS or FAIL per rule.

## Good for

- Add Sentry crash reporting to an Expo app with user consent
- Make minified React Native stacks readable after a store build
- Set up source map uploads for EAS OTA updates
- Scrub personal data from crash reports before they are sent
- Check that crash reporting configuration meets the privacy rules

## Install

### Claude Code

This skill ships in the `react-native` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add zakariaf/ReactNative-Skills
/plugin install react-native@react-native-skills
```

Or copy only this skill to `~/.claude/skills/crash-reporting-and-observability`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/crash-reporting-and-observability &&
cp -R "$tmp/skills/crash-reporting-and-observability" ~/.claude/skills/crash-reporting-and-observability &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/crash-reporting-and-observability` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/crash-reporting-and-observability` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/crash-reporting-and-observability &&
cp -R "$tmp/skills/crash-reporting-and-observability" ~/.agents/skills/crash-reporting-and-observability &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/crash-reporting-and-observability` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/crash-reporting-and-observability` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/crash-reporting-and-observability &&
cp -R "$tmp/skills/crash-reporting-and-observability" ~/.cursor/skills/crash-reporting-and-observability &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/crash-reporting-and-observability` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/zakariaf/ReactNative-Skills.git --path skills/crash-reporting-and-observability
```

Or copy the folder to `~/.gemini/skills/crash-reporting-and-observability` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/crash-reporting-and-observability`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/crash-reporting-and-observability &&
cp -R "$tmp/skills/crash-reporting-and-observability" ~/.copilot/skills/crash-reporting-and-observability &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/crash-reporting-and-observability` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git
```

Then copy `ReactNative-Skills/skills/crash-reporting-and-observability` into your agent's skills folder as `crash-reporting-and-observability`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does the skill trigger?

It applies when adding Sentry or a DSN, or when stack traces are minified. It does not cover analytics, which belongs to the analytics-and-consent skill.

### What does the developer need to provide?

The Sentry organization, project slug and DSN, plus the EAS environment variables and server-side scrubbing settings that the skill hands over as manual steps.

### Does the skill send data without consent?

No. The SDK starts only after the consent choice is applied, and development builds and empty DSNs never start it.

### Which AI clients does Crash reporting and observability support?

It follows the shared agent skills format and is also listed as a Claude Code plugin marketplace entry.

### How do I install Crash reporting and observability in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/crash-reporting-and-observability to use it in all your projects, or to .claude/skills/crash-reporting-and-observability in one project. Or install the react-native plugin, which includes it: /plugin marketplace add zakariaf/ReactNative-Skills, then /plugin install react-native@react-native-skills.

### Does Crash reporting and observability run scripts?

Yes. It runs JavaScript and TypeScript scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Crash reporting and observability?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Crash reporting and observability?

The closest alternatives to Crash reporting and observability are Analytics and consent, Auth and secure storage, Debug menu and test hooks, Expo prebuild and config plugins and Expo skill eval.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Analytics and consent](https://ai-powered.com/skills/analytics-and-consent): Analytics and consent is an open-source agent skill for developer tools.
- [Auth and secure storage](https://ai-powered.com/skills/auth-and-secure-storage): Auth and secure storage is an open-source agent skill for developer tools.
- [Debug menu and test hooks](https://ai-powered.com/skills/debug-menu-and-test-hooks): Debug menu and test hooks is an open-source agent skill for developer tools.
- [Expo prebuild and config plugins](https://ai-powered.com/skills/expo-prebuild-and-config-plugins): Expo prebuild and config plugins is an open-source agent skill for developer tools.
- [Expo skill eval](https://ai-powered.com/skills/expo-skill-eval): Expo skill eval is an open-source agent skill for developer tools.
- [Dependency management](https://ai-powered.com/skills/dependency-management): Dependency management is an open-source agent skill for developer tools.
- [Eas build and submit](https://ai-powered.com/skills/eas-build-and-submit): Eas build and submit is an open-source agent skill for developer tools.
- [App startup and bootstrap](https://ai-powered.com/skills/app-startup-and-bootstrap): App startup and bootstrap is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/crash-reporting-and-observability
