rn-observability
改善 React Native 可觀測性
無聲失敗與薄弱的錯誤訊息會讓行動應用程式錯誤難以診斷。此技能提供實用的 React Native 模式,涵蓋記錄、錯誤、追蹤與安全回報。
使用我的智慧代理安裝
將此請求複製給你的智慧代理,其中包含權威 Skill 頁面和清單。
Review the Skillstore skill "rn-observability" from https://skillstore.io/skills/cjharmath-rn-observability.md and its manifest at https://skillstore.io/api/skills/cjharmath-rn-observability/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智慧代理仍應顯示其計畫,並依安全政策請求必要確認。
Agent 可讀資源
當 AI Agent、爬蟲或腳本需要乾淨脈絡、而不是讀取完整頁面時,請使用這些連結。
測試它
正在使用「rn-observability」。 儲存流程在缺少重拍區域時提前返回。
預期結果:
回應會指出無聲返回,建議加入警告記錄,且僅包含安全的識別碼與計數以供診斷。
正在使用「rn-observability」。 正式環境當機報告只說找不到答案。
預期結果:
- 回應會提出更清楚的訊息,包含函式位置與狀態計數。
- 它會說明哪些值可以安全包含,以及哪些值應該被遮蔽。
- 它會建議可能需要調查的時序或狀態同步原因。
正在使用「rn-observability」。 非同步評估流程失敗,但未顯示失敗的步驟。
預期結果:
回應會建議加入流程識別碼、步驟記錄、狀態快照與單一錯誤擷取點。
安全審計
安全All static findings were adjudicated as false positives. The external command alerts are Markdown code fences or TypeScript template literals, and the sensitive-file alerts are object key counts or redaction helper examples rather than certificate or key file access. No prompt injection or malicious intent was found in SKILL.md.
風險因素
⚙️ 外部命令 (48)
分享與引用此報告
分享版本化評估報告、中性徽章、嵌入卡片與引用。Skillstore 只報告證據,不判斷該 Skill 是否安全。
複製報告連結
https://skillstore.io/skills/cjharmath-rn-observability/audits/7?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/cjharmath-rn-observability?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/cjharmath-rn-observability?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/cjharmath-rn-observability/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/cjharmath-rn-observability.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>學術引用 (APA · BibTeX · CFF)
APA 引用
CJHarmath. (2026). rn-observability security audit report (audit version 7) [Author version unspecified]. Skillstore. https://skillstore.io/skills/cjharmath-rn-observability/audits/7BibTeX 引用
@techreport{cjharmath-cjharmath-rn-observability-2026,
author = {CJHarmath},
title = {rn-observability security audit report (audit version 7)},
institution = {Skillstore},
year = {2026},
number = {7},
url = {https://skillstore.io/skills/cjharmath-rn-observability/audits/7},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "rn-observability security audit report (audit version 7)"
version: "unspecified"
type: report
authors:
- name: "CJHarmath"
date-released: "2026-07-06"
url: "https://skillstore.io/skills/cjharmath-rn-observability/audits/7"
identifiers:
- type: other
value: "skillstore:cjharmath-rn-observability:audit:7"
description: "Skillstore immutable audit report identifier"
Skillstore 評分
評分依據 證據置信度: 高你可以打造什麼
新增功能記錄
在不暴露敏感值的情況下,為 React Native 功能新增清楚的記錄事件。
除錯正式環境失敗
設計錯誤訊息與流程追蹤,以顯示行動工作流程在哪裡失敗。
標準化可觀測性模式
為記錄層級、斷言、遮蔽與當機回報脈絡建立團隊指引。
試試這些提示
Review this React Native function and suggest where to add logs for early returns. Include the reason and minimal safe context for each log.
Rewrite these React Native error messages so they include location, failed condition, relevant state counts, and a likely cause. Avoid sensitive values.
Design observability for this async React Native workflow. Add flow identifiers, step-level logs, state snapshots, and error reporting boundaries.
Audit this React Native observability plan for production. Check log levels, redaction, crash reporting context, temporary debug logs, and missing failure paths.
最佳實務
- 用最少的診斷脈絡記錄每個提前返回的原因。
- 在記錄或當機報告離開裝置前,遮蔽機密與個人資料。
- 針對可能在正式環境失敗的多步驟非同步作業使用流程識別碼。
避免
- 在正式環境中記錄完整答案物件、權杖或個人值。
- 捕捉錯誤後未記錄或重新拋出足夠的診斷脈絡。
- 在發布版本中保留啟用的臨時除錯記錄。