prompt-engineering-patterns
86最佳化生產環境 LLM 提示
LLM 提示經常失敗,是因為指令、範例和評估標準不清楚。此技能提供範本與工作流程,用於改進 Claude、Codex、Claude Code 及類似工具中的提示。
建構可靠的非同步 Python 系統
當任務、逾時、取消與阻塞呼叫互相作用時,Async Python 程式碼很容易寫錯。這項技能為 Claude、Codex 和 Claude Code 提供更安全的 asyncio 設計與審查實用模式。
將此請求複製給你的智慧代理,其中包含權威 Skill 頁面和清單。
Review the Skillstore skill "async-python-patterns" from https://skillstore.io/skills/wshobson-async-python-patterns.md and its manifest at https://skillstore.io/api/skills/wshobson-async-python-patterns/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智慧代理仍應顯示其計畫,並依安全政策請求必要確認。
當 AI Agent、爬蟲或腳本需要乾淨脈絡、而不是讀取完整頁面時,請使用這些連結。
正在使用「async-python-patterns」。 我需要擷取許多 API,但不能讓上游服務負荷過重。
預期結果:
使用號誌、每個請求的逾時、連線池,以及具備明確錯誤處理的結果收集,制定有界並行計畫。
正在使用「async-python-patterns」。 我的 async worker 有時會在關機期間停住。
預期結果:
一份涵蓋取消傳播、佇列清空、逾時防護、任務清理,以及關機路徑測試的審查清單。
正在使用「async-python-patterns」。 我想教我的團隊 asyncio 模式。
預期結果:
一條結構化學習路徑,從 coroutines 到 tasks、佇列、同步、aiohttp 使用方式,以及 pytest-asyncio 測試。
Most static findings are false positives caused by Markdown backticks, placeholder URLs, or benign sample identifiers. One semantic issue remains: the database example builds SQL with f-string interpolation, which may teach unsafe query construction if copied.
分享版本化評估報告、中性徽章、嵌入卡片與引用。Skillstore 只報告證據,不判斷該 Skill 是否安全。
https://skillstore.io/skills/wshobson-async-python-patterns/audits/7?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_report[](https://skillstore.io/skills/wshobson-async-python-patterns?utm_source=security_passport_badge)<a href="https://skillstore.io/skills/wshobson-async-python-patterns?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/wshobson-async-python-patterns/security.svg" alt="Skillstore security assessment" loading="lazy"></a><iframe src="https://skillstore.io/embed/skills/wshobson-async-python-patterns.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>wshobson. (2026). async-python-patterns security audit report (audit version 7) [Author version unspecified]. Skillstore. https://skillstore.io/skills/wshobson-async-python-patterns/audits/7@techreport{wshobson-wshobson-async-python-patterns-2026,
author = {wshobson},
title = {async-python-patterns security audit report (audit version 7)},
institution = {Skillstore},
year = {2026},
number = {7},
url = {https://skillstore.io/skills/wshobson-async-python-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: "async-python-patterns security audit report (audit version 7)"
version: "unspecified"
type: report
authors:
- name: "wshobson"
date-released: "2026-07-07"
url: "https://skillstore.io/skills/wshobson-async-python-patterns/audits/7"
identifiers:
- type: other
value: "skillstore:wshobson-async-python-patterns:audit:7"
description: "Skillstore immutable audit report identifier"
每位作者的技能都保留為獨立的可安裝項目。推薦變體依 Skillstore 證據排序。
為何此變體排名第一
activeinferenceinstitute-async-python-patterns
2026-10-21
wshobson-async-python-patterns
2026-09-09
在實作 async web service 前,設計任務邊界、逾時、連線池與取消處理。
檢查 asyncio 實作是否有阻塞呼叫、缺少 awaits、無界 gather 使用,以及薄弱的錯誤處理。
使用聚焦範例理解佇列、號誌、鎖定、async iterators 和測試結構。
Use the async-python-patterns skill to explain coroutines, tasks, and await using a small Python service example.
Use the async-python-patterns skill to design a bounded concurrent request workflow with timeouts, retries, and clear cancellation behavior.
Use the async-python-patterns skill to review my asyncio code for blocking calls, missing awaits, task leaks, and unsafe gather usage.
Use the async-python-patterns skill to propose an async producer-consumer pipeline with backpressure, rate limits, graceful shutdown, and test strategy.
作者
wshobson授權
MIT
Skillstore 修訂
r1
版本提示
作者未聲明版本。
儲存庫
https://github.com/wshobson/agents/tree/main/plugins/python-development/skills/async-python-patterns引用
36e07d5e13068e5be64447e8f20b427cf2cbd21a
維護新鮮度
2026/7/20
使用量
8 次下載 · 321 次瀏覽
檔案結構
📄 SKILL.md
最佳化生產環境 LLM 提示
LLM 提示經常失敗,是因為指令、範例和評估標準不清楚。此技能提供範本與工作流程,用於改進 Claude、Codex、Claude Code 及類似工具中的提示。
管理情境驅動開發
當產品目標、技術堆疊選擇和工作流程規則分散各處時,AI 輔助專案會失去一致性。此技能會透過 Conductor 情境成品,引導 Claude、Codex 和 Claude Code。
建立新創財務模型
新創團隊在規劃招募、募資和現金使用之前,需要清楚的預測。此技能會將收入、成本、現金續航期和情境整理成實用的財務規劃輸出。
設計能推動決策的 KPI 儀表板
團隊經常建立顯示許多數字但無法引導行動的儀表板。此技能可協助 Claude、Codex 和 Claude Code 選擇有意義的 KPI、組織檢視畫面,並清楚呈現指標。
撰寫無責備事故事後檢討
事故檢討常常變得不一致、偏向究責,或難以採取行動。此技能可協助 Claude、Codex 和 Claude Code 草擬結構化事後檢討,包含清楚的時間軸、根本原因與負責人。
建立清晰的資料故事
原始指標通常難以說服利害關係人或支援決策。這項技能可協助 Claude、Codex 和 Claude Code 將分析整理成清晰的敘事、視覺化內容與建議。
建構可靠的 Async Python
由 0xDarkMatter
Async Python 程式碼經常因阻塞呼叫、未受限制的任務,以及薄弱的清理機制而失敗。此 skill 提供可重複使用的 asyncio 模式、範例與參考資料,用於打造穩健的並行服務。
使用可重用模式建置 FastAPI API
由 0xDarkMatter
FastAPI 專案需要在驗證、依賴項、middleware 和背景工作方面做出一致的選擇。這項技能為 Claude、Codex 和 Claude Code 提供可重用模式,用於實務 Python API 開發。
新增 Python 型別安全模式
由 0xDarkMatter
Python 型別註解在實際專案中可能難以一致套用。此 skill 為 Claude、Codex 和 Claude Code 提供實用模式,用於撰寫更安全的 typed Python code。
打造可靠的後端 API
由 alirezarezvani
後端專案通常需要在 API、資料庫、安全性與部署之間進行一致的規劃。此技能透過簡單的輔助指令碼與參考資料,為 Claude、Codex 和 Claude Code 提供結構化的後端指引。
透過 Profiling 優化 Go 效能
由 89jobrien
Go 服務在缺乏明確證據時,可能會變得緩慢或耗用大量記憶體。此 skill 會引導 profiling、配置分析、並行調校,以及以 benchmark 驅動的優化。
使用 pytest TDD 建置 Python 測試
由 89jobrien
Python 團隊經常需要一致的測試、覆蓋率和報告,同時不失去 TDD 紀律。此技能為 Claude、Codex 和 Claude Code 提供以 pytest 為核心的工作流程、範例與報告指南。