4.2k expo

eas-observe Skill

适用于与 EAS Observe 相关的一切——在 Expo 项目中添加 `expo-observe`(AppMetricsRoot/ObserveRoot HOC、markInteractive 和 ObserveInteractiveMarker、useObserve hook、面向路由级指标的 Expo Router / React Navigation 集成、通过 `Observe.logEvent` 记录自定义事件、通过 ObserveErrorBoundary 和 `Observe.reportError` 上报错误,以及 sampleRate 和 dispatchInDebug 等运行时配置),使用 EAS CLI 查询(`eas observe:metrics-summary`、`observe:metrics`、`observe:routes`、`observe:events`、`observe:session`、`observe:versions`),以及解读结果。

安装方式:把技能目录放入 ~/.claude/skills/(Claude Code)或在 claude.ai 设置中启用;也可复制右侧安装命令一键添加。

查看源码

技能指令原文(SKILL.md)

EAS Observe

EAS service - costs apply. EAS Observe is an Expo Application Services product. The free EAS plan allows up to 10,000 monthly active users, with a limited set of features; higher usage requires a paid subscription. For details, see https://expo.dev/pricing#plan-features.

EAS Observe tracks startup, navigation, and custom-event performance from production Expo apps, and records JavaScript errors and native crashes. It needs a development or production build — the native library is not in Expo Go.

Source of truth: https://docs.expo.dev/eas/observe/ — always consult the canonical docs when API details matter, especially get-started, configuration, integrations, and the metrics reference. EAS Observe is evolving; this skill's references are written to stay accurate but may lag the docs.

Which reference to read

The five reference files in ./references/ cover what people typically need this skill for:

  • Adding EAS Observe to a project → ./references/setup.md. Install, wrap the root layout (AppMetricsRoot on SDK 55, ObserveRoot on SDK 56+), mark the app interactive (global markInteractive() on SDK 55, the useObserve() hook or on SDK 56+), optional per-route navigation metrics through the Expo Router / React Navigation integrations, user-defined events via Observe.logEvent (SDK 56+), error reporting, and runtime configuration (sampling, dispatch, environments, custom endpoint).
  • Querying metrics from the terminal → ./references/queries.md. The npx --yes eas-cli@latest observe: commands — metrics-summary, metrics, routes, events, session, versions, errors, event — with flags, metric aliases, table layouts, JSON shapes, and common workflows. Also the matching observe_ tools in the Expo MCP Server, and how their inputs differ from the CLI flags.
  • Reading a dashboard or CLI output → ./references/metrics.md. Target thresholds per metric, what the automatic TTI params mean (frameRate., device., network.*), and diagnostic patterns for telling slow-but-smooth startup apart from main-thread contention, hard blocks, or throttled devices.
  • Reporting problems from library integrations → ./references/library-integrations.md. The current and future integrations that report problems a library detects as events or errors, with their options, limits, and how to query the reports. Currently: expo-image (expo-image.oversized events for images decoded far larger than the screen) and react-native-reanimated (reanimated.error errors and optional reanimated.warning events).
  • Shipping an Observe integration in a library → ./references/third-party.md. For package authors only (SDK 57+): optional peer dependency, config declaration merging, Observe.registerIntegration(), and event naming.

Quick links to the docs

  • Get started: https://docs.expo.dev/eas/observe/get-started/
  • Dashboard guide: https://docs.expo.dev/eas/observe/dashboard/
  • Querying with EAS CLI: https://docs.expo.dev/eas/observe/eas-cli/
  • Querying with the Expo MCP Server: https://docs.expo.dev/eas/observe/mcp/
  • Metrics reference: https://docs.expo.dev/eas/observe/reference/metrics/
  • Expo Router integration: https://docs.expo.dev/eas/observe/integrations/expo-router/
  • React Navigation integration: https://docs.expo.dev/eas/observe/integrations/react-navigation/
  • Expo Image integration: https://docs.expo.dev/eas/observe/integrations/expo-image/
  • Reanimated integration: https://docs.expo.dev/eas/observe/integrations/react-native-reanimated/
  • User-defined events: https://docs.expo.dev/eas/observe/events/
  • Error reporting: https://docs.expo.dev/eas/observe/errors/
  • Configuration: https://docs.expo.dev/eas/observe/configuration/
  • Third-party integrations: https://docs.expo.dev/eas/observe/integrations/third-party/
  • EAS Update download performance: https://docs.expo.dev/eas/observe/eas-update/
  • Troubleshooting: https://docs.expo.dev/eas/observe/reference/troubleshooting/

Submitting Feedback

You can voluntarily report errors, misleading or outdated information in this skill, so Expo can improve it:

npx --yes @expo/agent-cli@latest feedback --category skills --subject "eas-observe" --message "<actionable feedback>"

Use --category agent-cli for a problem with the agent CLI, and --category evals when an agent repeatedly fails at an Expo task. Run feedback --help for subjects and the data that the command sends.
Each report goes to Expo with project and environment details. Show the user the message, and send it only if the user agrees. If you cannot ask the user, do not send it. Do not include secrets or personal data.