rn-performance
79最佳化 React Native 效能
React Native 應用程式可能會遇到清單緩慢、額外渲染和 JS 執行緒停滯等問題。這項技能提供專注於更快的 FlatList 畫面、記憶化元件、最佳化 selector、快取圖片和效能分析的模式。
可靠地測試 Python 非同步程式碼
非同步 Python 測試可能會無聲失敗、洩漏資料庫狀態,或漏掉已 await 的行為。此技能提供 pytest-asyncio 的 fixtures、mocks、HTTP clients 與完整流程測試模式。
將此請求複製給你的智慧代理,其中包含權威 Skill 頁面和清單。
Review the Skillstore skill "py-testing-async" from https://skillstore.io/skills/cjharmath-py-testing-async.md and its manifest at https://skillstore.io/api/skills/cjharmath-py-testing-async/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智慧代理仍應顯示其計畫,並依安全政策請求必要確認。
當 AI Agent、爬蟲或腳本需要乾淨脈絡、而不是讀取完整頁面時,請使用這些連結。
正在使用「py-testing-async」。 開發者需要測試非同步資料庫服務,且不讓狀態在測試之間洩漏。
預期結果:
回應描述 function-scoped 非同步 session fixture、rollback 清理、安排好的測試記錄、已 await 的服務呼叫,以及隔離的 assertions。
正在使用「py-testing-async」。 FastAPI endpoint 測試需要非同步 client 與已驗證的 requests。
預期結果:
回應概述 in-process ASGI client、可重複使用的 auth headers、request setup、status checks 與 response body validation。
正在使用「py-testing-async」。 團隊看到 coroutine 警告,以及未如預期運作的 mocks。
預期結果:
回應識別缺少 awaits 或 async markers,將一般 mocks 替換為 AsyncMock,並檢查已 await 呼叫的 expectations。
Static analysis flagged Markdown code fences, example pytest commands, a test base URL, and normal test snippets. Manual review found no prompt injection, malware intent, credential access, hidden execution, or outbound network behavior.
分享版本化評估報告、中性徽章、嵌入卡片與引用。Skillstore 只報告證據,不判斷該 Skill 是否安全。
https://skillstore.io/skills/cjharmath-py-testing-async/audits/7?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_report[](https://skillstore.io/skills/cjharmath-py-testing-async?utm_source=security_passport_badge)<a href="https://skillstore.io/skills/cjharmath-py-testing-async?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/cjharmath-py-testing-async/security.svg" alt="Skillstore security assessment" loading="lazy"></a><iframe src="https://skillstore.io/embed/skills/cjharmath-py-testing-async.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). py-testing-async security audit report (audit version 7) [Author version unspecified]. Skillstore. https://skillstore.io/skills/cjharmath-py-testing-async/audits/7@techreport{cjharmath-cjharmath-py-testing-async-2026,
author = {CJHarmath},
title = {py-testing-async security audit report (audit version 7)},
institution = {Skillstore},
year = {2026},
number = {7},
url = {https://skillstore.io/skills/cjharmath-py-testing-async/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: "py-testing-async security audit report (audit version 7)"
version: "unspecified"
type: report
authors:
- name: "CJHarmath"
date-released: "2026-07-06"
url: "https://skillstore.io/skills/cjharmath-py-testing-async/audits/7"
identifiers:
- type: other
value: "skillstore:cjharmath-py-testing-async:audit:7"
description: "Skillstore immutable audit report identifier"
套用已 await 的服務呼叫、資料庫 rollback 模式與聚焦的 assertions,以降低不穩定的非同步測試。
使用非同步 HTTP client 與驗證 fixtures,在不進行外部網路呼叫的情況下驗證 endpoint 行為。
使用 AsyncMock 取代外部非同步服務,並驗證已 await 的呼叫與副作用。
Use this skill to write a pytest-asyncio test for my async function. Include the marker, awaited call, and clear assertions.
Use this skill to review my async pytest fixture. Explain why it fails and rewrite it with correct setup and cleanup.
Use this skill to create async endpoint tests with an in-process ASGI client, auth fixture, request body, and response assertions.
Use this skill to design a full async test plan for my service workflow. Include fixtures, database isolation, mocks, error cases, and parameterized tests.
作者
CJHarmath授權
MIT
Skillstore 修訂
r1
版本提示
作者未聲明版本。
引用
dd4a3ef9f20ddf38830950b4bb713df96b431fd6
維護新鮮度
2026/7/18
使用量
5 次下載 · 292 次瀏覽
檔案結構
📄 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 行為更容易推理、測試與偵錯。
使用 pytest TDD 建置 Python 測試
由 89jobrien
Python 團隊經常需要一致的測試、覆蓋率和報告,同時不失去 TDD 紀律。此技能為 Claude、Codex 和 Claude Code 提供以 pytest 為核心的工作流程、範例與報告指南。
建構可靠的 Async Python
由 0xDarkMatter
Async Python 程式碼經常因阻塞呼叫、未受限制的任務,以及薄弱的清理機制而失敗。此 skill 提供可重複使用的 asyncio 模式、範例與參考資料,用於打造穩健的並行服務。
使用可重用模式建置 FastAPI API
由 0xDarkMatter
FastAPI 專案需要在驗證、依賴項、middleware 和背景工作方面做出一致的選擇。這項技能為 Claude、Codex 和 Claude Code 提供可重用模式,用於實務 Python API 開發。
使用 uv 精通 pytest 測試
由 AbdullahMalik17
Python 團隊需要一致的 pytest 工作流程,涵蓋單元測試、FastAPI 測試、fixtures 和覆蓋率。這項 skill 為 Claude、Codex 和 Claude Code 提供適用於使用 uv 的 pytest 專案的實用指令與模式。
建置 FastAPI 後端
由 sickn33
FastAPI 專案需要在設定、資料模型、路由、驗證、測試和部署之間做出一致的選擇。此技能提供分階段工作流程,並為每個後端步驟提供聚焦的提示。
新增 Python 型別安全模式
由 0xDarkMatter
Python 型別註解在實際專案中可能難以一致套用。此 skill 為 Claude、Codex 和 Claude Code 提供實用模式,用於撰寫更安全的 typed Python code。