rn-performance
79最佳化 React Native 效能
React Native 應用程式可能會遇到清單緩慢、額外渲染和 JS 執行緒停滯等問題。這項技能提供專注於更快的 FlatList 畫面、記憶化元件、最佳化 selector、快取圖片和效能分析的模式。
建構可靠的 React 測試
當非同步狀態、providers 與 mocks 的處理不一致時,React 測試套件往往會變得不穩定。此技能為 Claude、Codex 和 Claude Code 提供專注 React 測試的實用模式。
將此請求複製給你的智慧代理,其中包含權威 Skill 頁面和清單。
Review the Skillstore skill "react-testing" from https://skillstore.io/skills/cjharmath-react-testing.md and its manifest at https://skillstore.io/api/skills/cjharmath-react-testing/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智慧代理仍應顯示其計畫,並依安全政策請求必要確認。
當 AI Agent、爬蟲或腳本需要乾淨脈絡、而不是讀取完整頁面時,請使用這些連結。
正在使用「react-testing」。 登入表單需要測試必填欄位、成功提交與載入行為。
預期結果:
正在使用「react-testing」。 Zustand store 測試在測試案例之間洩漏狀態。
預期結果:
正在使用「react-testing」。 使用 React Query 的元件因為沒有可用的 provider 而失敗。
預期結果:
All static external command findings are false positives caused by Markdown code fences or inline backticks in documentation examples. The sensitive-data and reconnaissance findings are also false positives from normal test assertions. No evidence of prompt injection, data exfiltration, or malicious intent was found.
分享版本化評估報告、中性徽章、嵌入卡片與引用。Skillstore 只報告證據,不判斷該 Skill 是否安全。
https://skillstore.io/skills/cjharmath-react-testing/audits/7?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_report[](https://skillstore.io/skills/cjharmath-react-testing?utm_source=security_passport_badge)<a href="https://skillstore.io/skills/cjharmath-react-testing?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/cjharmath-react-testing/security.svg" alt="Skillstore security assessment" loading="lazy"></a><iframe src="https://skillstore.io/embed/skills/cjharmath-react-testing.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>CJHarmath. (2026). react-testing security audit report (audit version 7) [Author version unspecified]. Skillstore. https://skillstore.io/skills/cjharmath-react-testing/audits/7@techreport{cjharmath-cjharmath-react-testing-2026,
author = {CJHarmath},
title = {react-testing security audit report (audit version 7)},
institution = {Skillstore},
year = {2026},
number = {7},
url = {https://skillstore.io/skills/cjharmath-react-testing/audits/7},
note = {Author version unspecified}
}cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "react-testing security audit report (audit version 7)"
version: "unspecified"
type: report
authors:
- name: "CJHarmath"
date-released: "2026-07-06"
url: "https://skillstore.io/skills/cjharmath-react-testing/audits/7"
identifiers:
- type: other
value: "skillstore:cjharmath-react-testing:audit:7"
description: "Skillstore immutable audit report identifier"
建立驗證渲染、載入狀態、使用者操作與可存取輸出的測試。
重設 Zustand stores 與 React Query clients,讓測試保持隔離且可重複。
解決 React 測試中的 act 警告、時序問題、缺失查詢與 mock 不一致。
為此元件撰寫 React Testing Library 測試。涵蓋渲染、使用者操作、載入狀態與可存取查詢。
為此非同步 React 狀態流程建立測試。包含 act 或 waitFor 用法、store 重設,以及每個非同步步驟後的清楚斷言。
為這個包含 React Query、routing、context providers 與 mocked API modules 的元件設計測試。保持 provider 設定可重複使用。
檢視這份失敗的 React 測試輸出與測試檔案。找出可能原因、說明修正方式,並建議更強的斷言。
作者
CJHarmath授權
MIT
Skillstore 修訂
r1
版本提示
作者未聲明版本。
引用
dd4a3ef9f20ddf38830950b4bb713df96b431fd6
維護新鮮度
2026/7/18
使用量
8 次下載 · 229 次瀏覽
檔案結構
📄 SKILL.md
最佳化 React Native 效能
React Native 應用程式可能會遇到清單緩慢、額外渲染和 JS 執行緒停滯等問題。這項技能提供專注於更快的 FlatList 畫面、記憶化元件、最佳化 selector、快取圖片和效能分析的模式。
改善 React Zustand Store 模式
React 團隊在使用 Zustand 時,可能會遇到過期狀態、渲染時機與非同步 action 錯誤。此技能提供 stores、selectors、衍生狀態、測試、偵錯與持久化的直接模式。
可靠地部署 React 應用程式
React 部署設定可能重複且容易出錯。此技能提供 Vercel、Netlify、Docker、CI/CD、環境與監控的實用範例。
套用 React Native 樣式模式
React Native 樣式在不同主題、畫面與平台之間可能變得不一致。此 skill 為 Expo 應用程式提供實用的 NativeWind 與 BrandColors 模式。
改善 React Native 可觀測性
無聲失敗與薄弱的錯誤訊息會讓行動應用程式錯誤難以診斷。此技能提供實用的 React Native 模式,涵蓋記錄、錯誤、追蹤與安全回報。
建構可靠的 React Native Zustand Store
React Native 團隊經常在過期狀態、非同步動作時序,以及可避免的渲染上耗費時間。此技能提供 Zustand 模式,讓 store 行為更容易推理、測試與偵錯。
建立可靠的 Jest 測試套件
由 C0ntr0lledCha0s
Jest 專案通常需要一致的設定、模擬和斷言模式。此技能為 JavaScript、TypeScript、React 和 Vitest 風格的測試提供聚焦的指引、範本和檢查。
建構可靠的測試自動化
由 89jobrien
薄弱的測試會拖慢發布並掩蓋回歸問題。此技能可引導測試策略、TDD、自動化、覆蓋率審查,以及 Playwright 網頁檢查。
以資深指導建置全端應用程式
由 alirezarezvani
全端專案通常需要一致的設定、架構選擇與品質檢查。此技能提供用於 React、Next.js、Node.js、GraphQL 與 PostgreSQL 工作的指令碼與參考資料。
實作 React View Transitions
由 vercel-labs
React view transitions 很容易放錯位置,導致動畫靜默無效或過於吵雜。這項技能會引導你針對路由、Suspense、清單與共享元素的動畫做出選擇。
建構型別安全的 React 元件
由 softaworks
React TypeScript 工作經常需要精確的事件、hook 與路由型別。此 skill 提供型別化元件、React 19 APIs 與路由的聚焦模式。
在整個程式碼庫中規劃可靠測試
由 0xDarkMatter
這項技能協助團隊選擇測試策略、mock、資料 fixture、覆蓋率 gate 和 CI 模式,而不混淆測試範圍。它為 Claude、Codex 和 Claude Code 提供針對單元、整合、端對端、TDD 與管線測試的結構化指引。