rn-performance
79最佳化 React Native 效能
React Native 應用程式可能會遇到清單緩慢、額外渲染和 JS 執行緒停滯等問題。這項技能提供專注於更快的 FlatList 畫面、記憶化元件、最佳化 selector、快取圖片和效能分析的模式。
改善 React Zustand Store 模式
React 團隊在使用 Zustand 時,可能會遇到過期狀態、渲染時機與非同步 action 錯誤。此技能提供 stores、selectors、衍生狀態、測試、偵錯與持久化的直接模式。
このリクエストをエージェントにコピーしてください。正規の Skill ページとマニフェストが含まれています。
Review the Skillstore skill "react-zustand-patterns" from https://skillstore.io/skills/cjharmath-react-zustand-patterns.md and its manifest at https://skillstore.io/api/skills/cjharmath-react-zustand-patterns/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.エージェントは引き続き計画を提示し、セキュリティポリシーで必要な確認を求める必要があります。
AI エージェント、クローラー、スクリプトがページ全体ではなく整理されたコンテキストを必要とする場合は、これらのリンクを使ってください。
「react-zustand-patterns」を使用しています。 元件在 increment action 後立即讀取 count 值。
期待される結果:
答案會說明 store state 會立即更新,而元件畫面會在 React 完成下一次渲染後才改變。
「react-zustand-patterns」を使用しています。 非同步 action 在延遲的儲存操作後讀取被捕捉的資料。
期待される結果:
答案會建議在延遲後讀取目前的 store 資料,然後從該目前值更新狀態。
「react-zustand-patterns」を使用しています。 selector 在每次渲染時都回傳新物件。
期待される結果:
答案會說明為什麼這可能造成額外渲染,並針對已安裝的 Zustand 版本建議穩定的 selector 模式。
All static findings are false positives caused by Markdown code fences, inline code, and illustrative Zustand examples. The skill contains guidance text only; no executable shell commands or live network behavior were found in SKILL.md. No prompt injection language or suspicious intent was identified.
バージョン付き評価レポート、中立的なバッジ、埋め込みカード、引用を共有できます。Skillstore は証拠を報告しますが、この Skill が安全かどうかは判断しません。
https://skillstore.io/skills/cjharmath-react-zustand-patterns/audits/7?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_report[](https://skillstore.io/skills/cjharmath-react-zustand-patterns?utm_source=security_passport_badge)<a href="https://skillstore.io/skills/cjharmath-react-zustand-patterns?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/cjharmath-react-zustand-patterns/security.svg" alt="Skillstore security assessment" loading="lazy"></a><iframe src="https://skillstore.io/embed/skills/cjharmath-react-zustand-patterns.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-zustand-patterns security audit report (audit version 7) [Author version unspecified]. Skillstore. https://skillstore.io/skills/cjharmath-react-zustand-patterns/audits/7@techreport{cjharmath-cjharmath-react-zustand-patterns-2026,
author = {CJHarmath},
title = {react-zustand-patterns security audit report (audit version 7)},
institution = {Skillstore},
year = {2026},
number = {7},
url = {https://skillstore.io/skills/cjharmath-react-zustand-patterns/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-zustand-patterns 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-zustand-patterns/audits/7"
identifiers:
- type: other
value: "skillstore:cjharmath-react-zustand-patterns:audit:7"
description: "Skillstore immutable audit report identifier"
使用時機模式來說明為什麼 store 值會在元件重新渲染前先更新。
使用非同步 action 指引,讓 loading、data 與 error 狀態更容易推理。
將 stores 從 Zustand 4.x 移至 5.x 時,使用 selector 與遷移注意事項。
說明為什麼我呼叫 set 後,React 元件仍顯示舊的 Zustand state。請保持解釋務實。
檢視這個 Zustand action 是否有 await 後的 stale closure 問題。建議應該在哪裡使用 get 或 getState。
檢視我的 Zustand selectors 是否造成不必要的重新渲染。請在適當處建議多個 selectors、shallow comparison 或 useShallow。
稽核這個 Zustand store 設計是否有 async races、衍生狀態、selector 穩定性、持久化邊界與測試重設策略問題。
作成者
CJHarmathライセンス
MIT
Skillstore リビジョン
r1
バージョンに関する注意
作者はバージョンを宣言していません。
参照
dd4a3ef9f20ddf38830950b4bb713df96b431fd6
メンテナンスの新しさ
2026/7/22
利用状況
9 ダウンロード · 249 閲覧
ファイル構成
📄 SKILL.md
最佳化 React Native 效能
React Native 應用程式可能會遇到清單緩慢、額外渲染和 JS 執行緒停滯等問題。這項技能提供專注於更快的 FlatList 畫面、記憶化元件、最佳化 selector、快取圖片和效能分析的模式。
可靠地部署 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 行為更容易推理、測試與偵錯。
為 React Native 建置 Expo Router 導航
React Native 團隊需要能在分頁、堆疊、模態視窗和深層連結之間保持可預測的導航。此技能提供 Expo Router 模式,用於常見的路由決策。
建構型別安全的 React 元件
作成者 softaworks
React TypeScript 工作經常需要精確的事件、hook 與路由型別。此 skill 提供型別化元件、React 19 APIs 與路由的聚焦模式。
建置可用於正式環境的前端功能
作成者 davila7
前端團隊需要在各專案之間保持一致的 React 和 Next.js 指引。此技能提供前端分析的參考工作流程、品質實務和輔助腳本。
提升 Playwright 測試覆蓋率
作成者 C0ntr0lledCha0s
當設定、定位器和 fixtures 不一致時,Playwright 測試套件可能會變得不穩定。此技能提供可靠瀏覽器測試、除錯和可重用 page objects 的實用模式。
建構可靠的測試自動化
作成者 89jobrien
薄弱的測試會拖慢發布並掩蓋回歸問題。此技能可引導測試策略、TDD、自動化、覆蓋率審查,以及 Playwright 網頁檢查。
Audit NestJS Code with Evidence-Backed Findings
作成者 amirtaherkhani
NestJS repositories can hide boundary flaws and runtime risks that lint results alone cannot reveal. This skill combines local evidence collection and semantic review into one prioritized report.
使用 starknet.js 建置 Starknet 應用程式
作成者 internet-court
Starknet 整合需要精確處理提供者、帳戶、交易與費用。此技能為 Claude、Codex 與 Claude Code 提供實用的 starknet.js v9 模式。