Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问clear审计未展示

sentry-react-native-setupSentry React native 设置

Agent Skill

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

总安装

823

周安装

35

GitHub Stars

公开资料未说明

下载量

288
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:sentry-react-native-setup(Sentry React native 设置)
来源仓库:https://github.com/getsentry/agent-skills
仓库路径:skills/sentry-react-native-setup
安装命令:
npx skills add getsentry/agent-skills --skill "sentry-react-native-setup"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add getsentry/agent-skills --skill "sentry-react-native-setup"

简介

发现并安装 AI 代理的技能。sentry-react-native-setup 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

  • 适用于扩展宿主平台的功能生态探索。
  • 通过命令行工具集成新技能无需手动配置。
  • 依赖 npx 环境和 GitHub 仓库访问权限。
  • 建议先查看目标技能文档再决定是否安装。

SKILL.md

Sentry React Native Setup

Install and configure Sentry in React Native projects using the official wizard CLI.

Invoke This Skill When

  • User asks to "add Sentry to React Native" or "install Sentry" in a React Native app
  • User wants error monitoring, logging, or tracing in React Native or Expo
  • User mentions "@sentry/react-native" or mobile error tracking

Important: The configuration options and code samples below are examples. Always verify against docs.sentry.io before implementing, as APIs and defaults may have changed.

Wizard Setup (Recommended)

npx @sentry/wizard@latest -i reactNative

What the Wizard Does

TaskDescription
Install SDKAdds @sentry/react-native package
Metro configAdds @sentry/react-native/metro to metro.config.js
Expo configAdds @sentry/react-native/expo to app.json
Android setupEnables Gradle build step for source maps
iOS setupWraps Xcode build phase, adds debug symbol upload
Pod installRuns pod install for iOS
CredentialsStores in ios/sentry.properties, android/sentry.properties, env.local
Init codeConfigures Sentry in App.tsx or _layout.tsx

Manual Configuration

If not using wizard, add to your app entry point:

import * as Sentry from "@sentry/react-native";

Sentry.init({
  dsn: "YOUR_SENTRY_DSN",
  sendDefaultPii: true,

  // Tracing
  tracesSampleRate: 1.0,

  // Logs
  enableLogs: true,

  // Profiling
  profilesSampleRate: 1.0,

  // Session Replay
  replaysOnErrorSampleRate: 1.0,
  replaysSessionSampleRate: 0.1,
  integrations: [Sentry.mobileReplayIntegration()],
});

Wrap Your App

export default Sentry.wrap(App);

Expo Projects

For Expo, follow the Expo-specific setup:

npx @sentry/wizard@latest -i reactNative

Works for both managed and bare Expo projects.

Configuration Options

OptionDescriptionDefault
dsnSentry DSNRequired
sendDefaultPiiInclude user datafalse
tracesSampleRate% of transactions traced0
profilesSampleRate% of traces profiled0
enableLogsSend logs to Sentryfalse
replaysOnErrorSampleRate% of error sessions replayed0
replaysSessionSampleRate% of all sessions replayed0

Files Created/Modified

FilePurpose
App.js / _layout.tsxSentry initialization
metro.config.jsMetro bundler config
app.jsonExpo config (if Expo)
ios/sentry.propertiesiOS build credentials
android/sentry.propertiesAndroid build credentials
env.localEnvironment variables

Environment Variables

SENTRY_DSN=https://xxx@o123.ingest.sentry.io/456
SENTRY_AUTH_TOKEN=sntrys_xxx
SENTRY_ORG=my-org
SENTRY_PROJECT=my-project

Verification

Add test error:

throw new Error("My first Sentry error!");

Or use a test button:

<Button title="Test Sentry" onPress={() => { throw new Error("Test"); }} />

Source Maps

Source maps are automatically uploaded during build when wizard configures:

  • Android: Gradle plugin
  • iOS: Xcode build phase

Troubleshooting

IssueSolution
Wizard failsTry manual setup, check Node version
iOS build failsRun cd ios && pod install
Source maps not uploadingVerify sentry.properties files have auth token
Expo errorsEnsure using compatible Expo SDK version
App not wrappedAdd export default Sentry.wrap(App)

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

28.57%
按下载量换算82

Cursor

22.26%
按下载量换算64

OpenCode

15.65%
按下载量换算45

Codex

12.96%
按下载量换算37

Gemini CLI

7.58%
按下载量换算22

Antigravity

3.13%
按下载量换算9

安全审计

暂无安全审计结果可展示。

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills