rn-performance
79优化 React Native 性能
React Native 应用可能会遇到列表滚动缓慢、额外渲染以及 JS 线程卡顿等问题。此 skill 提供聚焦的模式,用于更快的 FlatList 屏幕、记忆化组件、优化后的选择器、缓存图片以及性能分析。
构建可靠的 Python 异步服务
异步 Python 代码可能会泄漏会话、阻塞响应,并在高负载下发生死锁。此技能提供 FastAPI 和 SQLAlchemy 模式,用于更安全的异步数据库工作。
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "py-async-patterns" from https://skillstore.io/skills/cjharmath-py-async-patterns.md and its manifest at https://skillstore.io/api/skills/cjharmath-py-async-patterns/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
正在使用“py-async-patterns”。 审查一个创建记录并立即返回该记录的异步 FastAPI 处理程序。
预期结果:
审查会说明会话应在何处限定作用域、commit 应放在哪里,以及为什么在返回生成字段之前需要 refresh。
正在使用“py-async-patterns”。 评估一个包含多个数据库读取的仪表板端点。
预期结果:
答案会区分独立读取和依赖读取,然后只对不共享结果的查询建议安全并发。
正在使用“py-async-patterns”。 调查高负载下异步 API 的超时问题。
预期结果:
响应会列出应优先检查的可能会话泄漏、连接池压力和缺失的关闭点。
Static analysis flagged Markdown backticks, a placeholder DATABASE_URL, and database model examples as security issues. Manual review found these are documentation-only patterns with no prompt injection, exfiltration intent, or hidden execution behavior.
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
https://skillstore.io/skills/cjharmath-py-async-patterns/audits/7?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_report[](https://skillstore.io/skills/cjharmath-py-async-patterns?utm_source=security_passport_badge)<a href="https://skillstore.io/skills/cjharmath-py-async-patterns?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/cjharmath-py-async-patterns/security.svg" alt="Skillstore security assessment" loading="lazy"></a><iframe src="https://skillstore.io/embed/skills/cjharmath-py-async-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). py-async-patterns security audit report (audit version 7) [Author version unspecified]. Skillstore. https://skillstore.io/skills/cjharmath-py-async-patterns/audits/7@techreport{cjharmath-cjharmath-py-async-patterns-2026,
author = {CJHarmath},
title = {py-async-patterns security audit report (audit version 7)},
institution = {Skillstore},
year = {2026},
number = {7},
url = {https://skillstore.io/skills/cjharmath-py-async-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: "py-async-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-py-async-patterns/audits/7"
identifiers:
- type: other
value: "skillstore:cjharmath-py-async-patterns:audit:7"
description: "Skillstore immutable audit report identifier"
在构建异步 API 处理程序时,使用请求作用域会话、安全提交和 refresh 模式。
判断哪些查询可以并发运行,哪些查询由于数据依赖必须保持顺序执行。
使用聚焦的异步模式追踪会话泄漏、连接超时、陈旧数据、死锁和慢端点。
Use py-async-patterns to explain how this FastAPI endpoint should scope AsyncSession usage. Identify any session leak risks.
Use py-async-patterns to review this async database write flow. Recommend commit, rollback, refresh, and transaction boundary changes.
Use py-async-patterns to classify these async queries as independent or dependent. Suggest where gather is safe and where await order matters.
Use py-async-patterns to audit this service for session leaks, pool exhaustion, stale data, deadlocks, and missing post-condition validation.
作者
CJHarmath许可证
MIT
Skillstore 修订
r1
版本提示
作者未声明版本。
引用
dd4a3ef9f20ddf38830950b4bb713df96b431fd6
维护新鲜度
2026/7/23
使用量
7 次下载 · 213 次浏览
文件结构
📄 SKILL.md
优化 React Native 性能
React Native 应用可能会遇到列表滚动缓慢、额外渲染以及 JS 线程卡顿等问题。此 skill 提供聚焦的模式,用于更快的 FlatList 屏幕、记忆化组件、优化后的选择器、缓存图片以及性能分析。
改进 React Zustand Store 模式
React 团队在使用 Zustand 时可能会遇到过期状态、渲染时序和异步 action bug。此技能为 store、selector、派生状态、测试、调试和持久化提供直接可用的模式。
可靠部署 React 应用
React 部署设置可能重复且容易出错。此技能为 Vercel、Netlify、Docker、CI/CD、环境和监控提供实用示例。
应用 React Native 样式模式
React Native 样式在不同主题、屏幕和平台之间可能变得不一致。此技能为 Expo 应用提供实用的 NativeWind 和 BrandColors 模式。
改进 React Native 可观测性
静默失败和薄弱的错误消息会让移动端 bug 难以诊断。此技能提供实用的 React Native 模式,用于日志、错误、追踪和安全上报。
构建可靠的 React Native Zustand Store
React Native 团队经常在陈旧状态、异步 action 时序以及可避免的渲染上浪费时间。此技能提供 Zustand 模式,让 store 行为更易于推理、测试和调试。
构建 FastAPI 后端
由 sickn33
FastAPI 项目需要在设置、数据模型、路由、身份验证、测试和部署方面保持一致的选择。此技能提供分阶段工作流,并为每个后端步骤提供聚焦提示。
构建可靠的 Python 数据库层
由 0xDarkMatter
Python 数据库代码可能因糟糕的会话、事务或迁移模式而失败。此技能提供实用的 SQLAlchemy 2.0 模式,用于构建稳健的应用程序。
构建可靠的异步 Python
由 0xDarkMatter
异步 Python 代码常因阻塞调用、无界任务和薄弱的清理机制而失败。此技能提供可复用的 asyncio 模式、示例和参考资料,用于构建稳健的并发服务。
使用可复用模式构建 FastAPI API
由 0xDarkMatter
FastAPI 项目需要在验证、依赖项、中间件和后台工作方面保持一致选择。此 skill 为 Claude、Codex 和 Claude Code 提供可复用模式,用于实用的 Python API 开发。
添加 Python 类型安全模式
由 0xDarkMatter
在真实项目中,Python 类型注解可能很难保持一致应用。此技能为 Claude、Codex 和 Claude Code 提供实用模式,用于编写更安全的带类型 Python 代码。
构建可靠的后端 API
由 alirezarezvani
后端项目通常需要在 API、数据库、安全和部署方面保持一致的规划。此技能通过简单的辅助脚本和参考资料,为 Claude、Codex 和 Claude Code 提供结构化的后端指导。