本文へスキップ
Skillpedia
APIとサーバー(バックエンド)48k · #3830

async-python-patterns

できること

このツールは、Pythonで同時に多くの処理を行う必要があるとき、止まらずに速く効率的なプログラムを作る助けになります。インターネットやデータベースへのアクセスのような時間のかかる処理を待つ間も、プログラムが止まらないようにするための最新の技術の使い方を教えます。

使う場面

  • ✓素早く応答するウェブサイトやアプリを作る。
  • ✓インターネットから複数のものを同時にダウンロードする。
  • ✓同時に多くの接続を処理する仕組みを作る。

スキルのリンク

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/async-python-patterns/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/async-python-patterns/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“Pythonのプログラムで、インターネットから100枚の画像をできるだけ速くダウンロードするにはどうすればよいですか?”

毎週5つの新しいスキル。1分で読めます。

仕組み

このツールは「非同期プログラミング」という考え方を使います。プログラムはある処理(ウェブからのデータ取得など)を始めたあと、その完了を待つ間に別の処理を始めることができます。これは `async` や `await` といったキーワードを使って行います。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Async Python Patterns

Comprehensive guidance for implementing asynchronous Python applications using asyncio, concurrent programming patterns, and async/await for building high-performance, non-blocking systems.

Use this skill when

  • Building async web APIs (FastAPI, aiohttp, Sanic)
  • Implementing concurrent I/O operations (database, file, network)
  • Creating web scrapers with concurrent requests
  • Developing real-time applications (WebSocket servers, chat systems)
  • Processing multiple independent tasks simultaneously
  • Building microservices with async communication
  • Optimizing I/O-bound workloads
  • Implementing async background tasks and queues

Do not use this skill when

  • The workload is CPU-bound with minimal I/O.
  • A simple synchronous script is sufficient.
  • The runtime environment cannot support asyncio/event loop usage.

Instructions

  • Clarify workload characteristics (I/O vs CPU), targets, and runtime constraints.
  • Pick concurrency patterns (tasks, gather, queues, pools) with cancellation rules.
  • Add timeouts, backpressure, and structured error handling.
  • Include testing and debugging guidance for async code paths.
  • If detailed examples are required, open resources/implementation-playbook.md.

Refer to resources/implementation-playbook.md for detailed patterns and examples.

Resources

  • resources/implementation-playbook.md for detailed patterns and examples.

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
よくある質問

「非同期」とはどういう意味ですか?

複数のことを並行して進める仕組みのようなものです。1つの処理が終わるまで次の処理を始めずに待つのではなく、複数の処理を始めて、待ち時間のあいだに処理を切り替えます。

どのような場合は使わない方がよいですか?

プログラムが外部(インターネットやディスク)の待ち時間がほとんどなく、重い計算ばかりを行う場合や、単純なスクリプトで十分な場合は、このツールは最適な選択ではないかもしれません。

実践的な例はどこで見られますか?

`resources/implementation-playbook.md` ファイルに、これらのパターンを適用する方法の詳しい例が載っています。

詳細

作者による元の説明

Comprehensive guidance for implementing asynchronous Python applications using asyncio, concurrent programming patterns, and async/await for building high-performance, non-blocking systems.

repo: sickn33/agentic-awesome-skills

人気

GitHubのスター
48k
ランキング
#3830
ライセンス
MIT
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル