error-tracking-react-native

关于 React Native 的 PostHog 错误追踪:查询并实施用于 React Native 应用的 PostHog 错误/异常追踪方案。

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "error-tracking-react-native":https://skillpi.com/zh/skills/deepskill-408c2dfdae4b853db0ac82138ecf38a138ce43b88f6d77dfeb4fafda2eaa10de。安装前核对上游来源和版本:https://skills.sh/posthog/skills/error-tracking-react-native。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

skills.sh

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

关于 React Native 的 PostHog 错误追踪:查询并实施用于 React Native 应用的 PostHog 错误/异常追踪方案。

0 下载

介绍来源: third_party · posthog · 1.0.0 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
适合谁
来源文档未说明。
输入和输出
来源文档未说明。
软件、账号及付费要求
来源文档未说明。
限制与区别
来源文档未说明。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: error-tracking-react-native
description: PostHog error tracking for React Native
metadata:
  author: PostHog
  version: 1.9.4

PostHog error tracking for React Native

This skill helps you add PostHog error tracking to React Native applications.

Reference files

  • references/react-native.md - React native error tracking installation - docs
  • references/fingerprints.md - Fingerprints - docs
  • references/alerts.md - Send error tracking alerts - docs
  • references/monitoring.md - Monitor and search issues - docs
  • references/assigning-issues.md - Assign issues to teammates - docs
  • references/upload-source-maps.md - Upload source maps - docs

Consult the documentation for API details and framework-specific patterns.

Key principles

  • Environment variables: Always use environment variables for PostHog keys and host URLs. Never hardcode them.
  • Minimal changes: Add error tracking alongside existing error handling. Don't replace or restructure existing error handling code.
  • Autocapture first: Enable exception autocapture in the SDK initialization before adding manual captures.
  • Source maps: Upload source maps so stack traces resolve to original source code, not minified bundles.
  • Manual capture for boundaries: Use captureException() at error boundaries and catch blocks for errors that don't propagate to the global handler.

Framework guidelines

  • posthog-react-native is the React Native SDK package name
  • Use react-native-config to load POSTHOG_PROJECT_TOKEN and POSTHOG_HOST from .env (variables are embedded at build time, not runtime)
  • react-native-svg is a required peer dependency of posthog-react-native (used by the surveys feature) and must be installed alongside it
  • Place PostHogProvider INSIDE NavigationContainer for React Navigation v7 compatibility

当前收录版本

1.0.0

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值78/100

亮点

  • 提供 React Native 应用集成 PostHog 错误追踪的完整解决方案
  • 包含关键原则和框架指南,具有实际开发指导价值
触发精准85/100

亮点

  • 触发词精准明确,覆盖 React Native 错误追踪场景
  • description 位置正确,内容完整
结构规范65/100

待提升项

  • 缺少端到端示例 原报告严重程度:轻微

    引用了多个参考文件但缺少完整的集成示例

    改进建议:添加一个完整的 React Native 项目集成 PostHog 错误追踪的端到端示例

  • 缺少明确的步骤划分 原报告严重程度:轻微

    内容以原则和指南形式呈现,缺少清晰的 Phase/步骤划分

    改进建议:将集成过程划分为清晰的步骤(如:1.安装依赖 2.配置环境变量 3.初始化SDK等)

亮点

  • 关键原则清晰,包含环境变量、最小化变更等重要实践
  • 框架指南具体,提到了 react-native-config 和 react-native-svg 等关键依赖
执行可靠75/100

待提升项

  • 缺少常见失败场景处理 原报告严重程度:轻微

    未覆盖常见集成失败场景的排查和处理建议

    改进建议:添加常见错误排查指南,如 SDK 初始化失败、网络连接问题等

亮点

  • 工具来源明确,参数说明清晰
  • 覆盖了 SDK 初始化、错误边界、source maps 等关键集成要点
证据可验 (前四项均值)76/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

来源文档未说明。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。