本文へスキップ
Skillpedia
一般的なプログラミング48k · #4759

go-concurrency-patterns

できること

このツールは、Goにおける並行処理のパターンを理解し、活用するのに役立ちます。プログラムの中で複数の処理を同時に、効率よく、安全に実行する方法を学べます。

使う場面

  • ✓同時に複数のことを行う必要があるGoプログラムを作るとき。
  • ✓組み立てラインのように、タスクを並列で実行できるよう整理したいとき。
  • ✓プログラムの一部が同じリソースを取り合ってしまうことで発生するエラーを直したいとき。

スキルのリンク

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

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

使い方

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

貼り付け用メッセージ

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

AIへの頼み方の例

“Goプログラムで、チャネルを使って複数のタスクを並行実行するにはどうすればよいですか?”

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

仕組み

このツールでは、「ゴルーチン」(並列で動く小さな処理)と「チャネル」(処理同士が通信するためのパイプ)を使ってタスクを連携させる方法を説明します。また、同期のための仕組みを使って競合を防ぐ方法も紹介します。

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

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

Go Concurrency Patterns

Production patterns for Go concurrency including goroutines, channels, synchronization primitives, and context management.

Use this skill when

  • Building concurrent Go applications
  • Implementing worker pools and pipelines
  • Managing goroutine lifecycles
  • Using channels for communication
  • Debugging race conditions
  • Implementing graceful shutdown

Do not use this skill when

  • The task is unrelated to go concurrency patterns
  • You need a different domain or tool outside this scope

Instructions

  • Clarify goals, constraints, and required inputs.
  • Apply relevant best practices and validate outcomes.
  • Provide actionable steps and verification.
  • If detailed examples are required, open resources/implementation-playbook.md.

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.
よくある質問

「ゴルーチン」とは何ですか?

「ゴルーチン」は、他の関数の完了を待つことなく、他の関数と同時に実行できる関数のようなものです。軽量で、プログラムが複数の処理を同時に行えるようにします。

「チャネル」は何に使われますか?

「チャネル」は、「ゴルーチン」同士がデータを送受信するためのパイプのようなものです。並列で動くタスク同士を安全に連携させるために欠かせません。

「同期プリミティブ」とは何ですか?

複数の「ゴルーチン」が共有するリソースへのアクセスを制御し、互いに干渉して(競合状態と呼ばれる)エラーを起こさないようにするための仕組みです。

詳細

作者による元の説明

Master Go concurrency with goroutines, channels, sync primitives, and context. Use when building concurrent Go applications, implementing worker pools, or debugging race conditions.

repo: sickn33/agentic-awesome-skills

人気

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

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

0

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

コメント

  • …

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

似ているスキル