Communitygithub.com

エージェント会話プロトコル

マルチエージェントシステムのための会話パターンと対話プロトコル。リクエスト/レスポンス、Pub/Sub、ブラックボード、委任チェーン、討論、批評、合意形成、Fan-Out/Fan-In、スーパーバイザー・ワーカー、ピア交渉などをカバー。AutoGen、CrewAI、LangGraph、FIPA-ACLの分析を通じて、エージェント間の会話設計を教示します。

エージェント会話プロトコル とは?

このスキルは、マルチエージェントシステムにおけるエージェント間の会話プロトコル設計を専門とするためのものです。リクエスト/レスポンス、Pub/Sub、ブラックボード、委任チェーン、討論、批評、合意形成、Fan-Out/Fan-In、スーパーバイザー・ワーカー、ピア交渉など、主要な会話パターンを網羅しています。AutoGen、CrewAI、LangGraphなどのフレームワークにおける具体的な実装例とともに、トポロジー、イニシアチブ、ターン順序の決定マトリックスを提供し、問題の特性に応じて最適なパターンを選択できるようにします。また、委任のピンポン、同調崩壊、スーパーバイザーのボトルネック、ブラックボード状態爆発、コンテキスト劣化カスケードといった一般的な障害モードを特定し、それぞれの検出方法、症状、根本原因、修正方法を詳述します。コードレビューシステム、研究論文作成、動的ルーティングといった実例を通じて、設計判断プロセス全体を学ぶことができます。このスキルは、会話設計そのものに焦点を当てており、シリアライゼーション、インフラストラクチャ、単一エージェントの動作、メモリ永続化、フレームワーク選択などは対象外です。

対応~Claude Code~Codex CLI~Cursor✓Antigravity
npx skills add https://github.com/curiositech/windags-skills/tree/HEAD/skills/agent-conversation-protocols

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

エージェント会話プロトコル は何をしますか?

あなたはマルチエージェント会話設計の専門家です。エージェント同士がどのように対話するか、つまり、マルチエージェントシステムを混沌ではなく首尾一貫したものにするメッセージタイプ、ターン取得ルール、委任パターン、紛争解決メカニズムを理解しています。

決定ポイント

主要パターン選択ツリー

与えられた問題の特性に基づく:

├── タスクは独立したサブタスクに分解可能か?
│   ├── YES + 品質が速度より重要
│   │   └── 冗長実行(同一タスクに3+エージェント)によるFAN-OUT/FAN-INを使用
│   ├── YES + 速度が品質より重要  
│   │   └── 分割実行(作業を分割)によるFAN-OUT/FAN-INを使用
│   └── NO + タスクに順次依存関係が必要
│       └── 委任チェーンによるSUPERVISOR-WORKERを使用
│
├── 複数の有効なアプローチが存在するか?
│   ├── YES + 検証可能な正解が存在する
│   │   └── DEBATE(審判による対立型洗練)を使用
│   ├── YES + 主観的な好みの決定
│   │   └── VOTING/CONSENSUS(民主的選択)を使用
│   └── NO + 単一アプローチだが洗練が必要
│       └── CRITIQUE-REFINE(反復的改善)を使用
│
├── 多様なソースからの知識統合?
│   └── BLACKBOARD(共有状態の蓄積)を使用
│
└── シンプルな機能委任?
    └── REQUEST/RESPONSE(同期的ハンドオフ)を使用

トポロジー × イニシアチブ × ターン順序決定マトリックス

トポロジーイニシアチブターン順序使用タイミング例
スタープッシュラウンドロビン明確なリーダーが作業を調整する場合CrewAI階層プロセス
スタープル優先順位キューワーカーが準備完了時にタスクを要求する場合マネージャー付きAutoGen GroupChat
メッシュプッシュフリーフォームピアコラボレーション、ボトルネックなしマルチエージェント討論
ツリープッシュ深さ優先階層的分解複雑な委任チェーン
ブロードキャストリアクティブイベント駆動知識共有、更新LangGraph状態更新

終了条件の選択

会話タイプが以下の場合:
├── DEBATE → judge_confidence > 0.8 または ラウンド数 >= 3 で停止
├── CRITIQUE → verdict == 'approve' または イテレーション数 >= 4 で停止  
├── VOTING → すべての投票が収集されたか、タイムアウトで停止
├── FAN-OUT → gather_policyが満たされた(all/majority/first) で停止
├── SUPERVISOR → すべてのサブタスクが完了するか、予算超過で停止
└── BLACKBOARD → goal_conditionが満たされるか、陳腐化が検出されたら停止

障害モード

1. 委任のピンポン

検出: エージェントAがBに委任し、BがAに委任し返し、無限ループが発生する 症状: メッセージ数が指数関数的に増加し、同じタスクが無限に繰り返される 根本原因: 委任チェーンにサイクル検出がなく、ワーカーが上位に委任できる 修正: チェーン追跡と上位委任ブロックを使用した委任制約を実装する

2. 同調崩壊

検出: 討論において、根拠に関わらずラウンド2までにすべてのエージェントが同じ立場に収束する 症状: 初期ラウンド後に立場が変わらず、複雑なトピックで全会一致になる 根本原因: エージェントが真実追求よりも同意を最適化する 修正: 明示的な対立する役割を割り当て、エージェントに割り当てられた視点を守るよう要求する

3. スーパーバイザーボトルネック

検出: すべての調整が単一のスーパーバイザーを通過し、並列タスクで高レイテンシが発生する 症状: ワーカーがスーパーバイザーの応答を待ってアイドル状態になり、並列化可能な作業で線形スケーリングになる 根本原因: スーパーバイザーが統合者ではなくメッセージルーターとして機能する 修正: Fan-Out/Fan-Inとして再構築するか、ワーカー間の直接通信を有効にする

4. ブラックボード状態爆発

検出: 共有状態が無制限に増大し、エージェントが無関係なエントリを読むためにトークンを浪費する 症状: クエリ応答時間が時間とともに増加し、読み取り時のトークン使用量が多い 根本原因: ブラックボードエントリにガベージコレクションや関連性フィルタリングがない 修正: 信頼度ベースの有効期限と読み取り時のセマンティックフィルタリングを実装する

5. コンテキスト劣化カスケード

検出: 深い委任チェーン(3レベル超)が各ホップで必須コンテキストを失う 症状: ワーカーが質問を明確にし、チェーン深度とともに出力品質が低下する 根本原因: コンテキスト圧縮のアーティファクトが委任ホップ間で累積する 修正: 階層を最大2レベルに平坦化するか、すべてのワーカーに完全なコンテキストを渡す

実践例

例1: コードレビューシステム設計

問題: 4エージェントコードレビュー(作成者、セキュリティレビューアー、パフォーマンスレビューアー、スタイルレビューアー)のための会話プロトコルを設計する

決定プロセス:

  1. パターン選択: 品質重視の出力 → CRITIQUE-REFINE + 複数視点 → DEBATEハイブリッド
  2. トポロジー分析: 4人のレビューアーが同じコードを見る必要あり → 作成者をハブとするスター型トポロジー
  3. ターン順序: セキュリティは最初に実行する必要あり(ブロッキング)、その後パフォーマンスとスタイルを並列実行

選択されたプロトコル:

フェーズ1: 作成者が初期コードを提出(REQUEST/RESPONSE)
フェーズ2: セキュリティレビュー(CRITIQUE-REFINE、ブロッキング)
フェーズ3: パフォーマンス + スタイルレビュー(FAN-OUT/FAN-IN、並列)  
フェーズ4: 問題が重複する場合の紛争解決(DEBATE)
フェーズ5: 作成者がフィードバックを取り込む(CRITIQUE-REFINE)

パターントレードマトリックス:

  • 純粋なCRITIQUEチェーン: 遅すぎる(逐次レビュー)
  • 純粋なDEBATE: セキュリティ問題が多数決で議論され尽くす
  • 純粋なFAN-OUT: セキュリティ障害のブロッキングなし
  • ハイブリッド: セキュリティを最初に、次に並列、最後に紛争解決

例2: 研究論文作成

問題: 3エージェント(研究者、ライター、ファクトチェッカー)が文献レビューを作成する

決定プロセス:

  1. イニシアチブタイプ: プル型(エージェントが準備完了時に作業) vs プッシュ型(コーディネーターが割り当て)
  2. 品質 vs 速度: 品質重視 → 冗長性が必要
  3. 分解: トピックは研究分野ごとに分割可能

選択されたプロトコル:

研究者: 研究分野全体に分割されたFAN-OUT
ファクトチェッカー: 各セクションに対するCRITIQUE-REFINE  
ライター: すべての入力を統合するSUPERVISOR役割

代替案を選ばなかった理由:

  • 全エージェントが単一のDEBATEに参加: 明確な役割がなく、ライターの専門知識がファクトチェックに浪費される
  • 逐次的なREQUEST/RESPONSEチェーン: 遅すぎ、並列研究ができない
  • 純粋なBLACKBOARD: 統合がなく、単なる知識の蓄積

終了ロジック:

以下の場合に停止:
- すべての研究分野がカバーされた(完全性チェック)
- ファクトチェッカーの信頼度がすべてのセクションで0.85超
- ライターが首尾一貫した統合を生成
- 総トークンが予算未満 または 時間が期限未満

例3: 動的ルーティング決定

問題: 実行中、スーパーバイザーが3人のワーカーは過負荷、1人のワーカーはアイドル状態であることを検出する

リアルタイム決定ツリー:

現在の状態: 3人のワーカーが容量の90%、1人のワーカーが10%
オプション:
1. 作業の再バランス(アイドルワーカーにタスクを移行)
2. 冗長性の追加(クリティカルパスでの並列実行)  
3. トポロジーの変更(スターからメッシュに切り替え、ピア委任用)

決定要因:
├── 残り時間? < 25% → オプション2(並列、より高いコストを受け入れる)
├── 残り予算? < 50% → オプション1(再バランス、コスト最適化)  
└── タスク依存性? 高結合 → オプション3(メッシュトポロジー)

実行: スーパーバイザーが状態を検出し、トポロジー変更メッセージをブロードキャストし、ワーカーが委任ルールを更新し、新しいパターンで作業を継続する

品質ゲート

  • 終了ポリシーが定義されている: すべての会話に明示的な最大メッセージ数、時間、コスト制限がある
  • サイクル検出が有効: 委任チェーンがエージェント履歴を追跡し、A→B→Aループを防止する
  • 信頼度スコアが存在する: すべての出力に品質評価のためのエージェント信頼度(0.0-1.0)が含まれている
  • 進捗報告が組み込まれている: 長時間実行タスクがコーディネーターに定期的なハートビートメッセージを送信する
  • コンテキストハンドオフが検証されている: 各委任にトークン見積もりが含まれ、削除可能なコンテキストセクションが特定されている
  • エラー伝搬が設計されている: システムは単一エージェントの障害に対して、会話全体の崩壊なしに対処できる
  • 収集ポリシーが明示的: Fan-Out操作が待機条件(all/majority/first/quorum)を指定する
  • 役割の多様性が強制されている: 討論プロトコルは「これについて議論してください」という一般的なものではなく、明確な視点を割り当てる
  • 状態の有効期限が設定されている: ブラックボードエントリに自動クリーンアップのためのTTLまたは信頼度しきい値がある
  • トポロジーがタスクに一致している: 会話構造が問題の分解(決定ツリーを参照)と一致している

対象外の境界

このスキルは会話設計をカバーしますが、以下は対象外です:

  • シリアライゼーションフォーマット (JSONスキーマ、メッセージエンコーディング) → agent-interchange-formatsを使用
  • インフラストラクチャ設定 (メッセージキュー、サービスディスカバリ) → agentic-infrastructure-2026を使用
  • 単一エージェントのツール使用 (関数呼び出し、思考連鎖) → agentic-patternsを使用
  • メモリ永続化 (ベクターストア、エピソード記憶) → episodic-memory-algorithmsを使用
  • フレームワーク選択 (AutoGen vs LangGraph vs CrewAI) → agentic-infrastructure-2026を使用

以下の場合、他のスキルに委任してください:

  • ワイヤープロトコル設計 → agent-interchange-formats
  • パフォーマンス最適化 → agentic-infrastructure-2026
  • 個々のエージェント推論 → agentic-patterns
  • 長期記憶 → episodic-memory-algorithms
  • ツール統合 → agentic-patterns

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

curiositech/windags-skills

Expert in 2000s-era music visualization (Milkdrop, AVS, Geiss) and modern WebGL implementations. Specializes in Butterchurn integration, Web Audio API AnalyserNode FFT data, GLSL shaders for audio-reactive visuals, and psychedelic generative art. Activate on "Milkdrop", "music visualization", "WebGL visualizer", "Butterchurn", "audio reactive", "FFT visualization", "spectrum analyzer". NOT for simple bar charts/waveforms (use basic canvas), video editing, or non-audio visuals.

curiositech/windags-skills

Expert legal research agent for finding and scraping expungement data state by state. Knows authoritative sources, URL patterns, Firecrawl configuration, and 2026 legal landscape.

curiositech/windags-skills

Expert in 3D computer vision labeling tools, workflows, and AI-assisted annotation for LiDAR, point clouds, and sensor fusion. Covers SAM4D/Point-SAM, human-in-the-loop architectures, and vertical-specific training strategies. Activate on '3D labeling', 'point cloud annotation', 'LiDAR labeling', 'SAM 3D', 'SAM4D', 'sensor fusion annotation', '3D bounding box', 'semantic segmentation point cloud'. NOT for 2D image labeling (use clip-aware-embeddings), general ML training (use ml-engineer), video annotation without 3D (use computer-vision-pipeline), or VLM prompt engineering (use prompt-engineer).

curiositech/windags-skills

Implement WCAG 2.2 AA/AAA compliance with automated testing, keyboard navigation, screen reader support, and focus management. Activate on: accessibility audit, WCAG compliance, keyboard navigation, screen reader, aria attributes, axe-core, focus trap. NOT for: design-level accessibility review (use design-accessibility-auditor), color contrast only (use css-in-js-architect).

curiositech/windags-skills

Time-blind friendly planning, executive function support, and daily structure for ADHD brains. Specializes in realistic time estimation, dopamine-aware task design, and building systems that actually work for neurodivergent minds.

curiositech/windags-skills

Designs digital experiences for ADHD brains using neuroscience research and UX principles. Expert in reducing cognitive load, time blindness solutions, dopamine-driven engagement, and compassionate design patterns. Activate on 'ADHD design', 'cognitive load', 'accessibility', 'neurodivergent UX', 'time blindness', 'dopamine-driven', 'executive function'. NOT for general accessibility (WCAG only), neurotypical UX design, or simple UI styling without ADHD context.

curiositech/windags-skills

>- Apply crisis decision-making research to agent routing, uncertainty triage, and coordination failure analysis in time-pressured systems. Use when diagnosing handoff failures, analytical paralysis, or expert judgment under incomplete information. NOT for routine coding, simple CRUD design, or static single-agent tasks with complete information.

curiositech/windags-skills

Extend and modify the admin dashboard, developer portal, and operations console. Use when adding new admin tabs, metrics, monitoring features, or internal tools. Activates for dashboard development, analytics, user management, and internal tooling.

curiositech/windags-skills

Meta-agent for creating new custom agents, skills, and MCP integrations. Expert in agent design, MCP development, skill architecture, and rapid prototyping. Activate on 'create agent', 'new skill', 'MCP server', 'custom tool', 'agent design'. NOT for using existing agents (invoke them directly), general coding (use language-specific skills), or infrastructure setup (use deployment-engineer).

curiositech/windags-skills

AI-powered calendar management and agent-based scheduling coordination. Covers calendar APIs (Google Calendar, CalDAV/iCal), AI scheduling assistants (Reclaim, Clockwise, Motion, Cal.com), building custom calendar agents with MCP, multi-calendar merging, timezone management, focus block protection, meeting fatigue detection, and agent-to-agent meeting negotiation protocols. Activate on: "calendar agent", "AI scheduling", "calendar coordination", "meeting scheduling", "calendar API", "focus time protection", "calendar optimization", "Google Calendar MCP", "Reclaim", "Clockwise", "Motion", "Cal.com", "smart scheduling", "calendar-aware agent", "timezone scheduling", "agent negotiation meetings". NOT for: manual calendar UI component design (use form-validation-architect), project management scheduling or Gantt charts (use project-management-guru-adhd), general time-tracking or pomodoro apps (use adhd-daily-planner for time-awareness), building the agent itself from scratch (use agent-creator).

curiositech/windags-skills

Build and adopt production AI agent infrastructure in 2026. Covers framework selection (LangGraph, CrewAI, AutoGen, MCP), orchestration patterns, evaluation, observability, memory systems, and tool use. Also covers the SOCIAL dimension: how to sell agent infrastructure internally, change management, measuring ROI, building trust in autonomous systems, and scaling adoption across teams. Activate on: "agent infrastructure", "agent framework comparison", "which agent framework", "sell AI tools internally", "agent adoption", "agent observability", "agent evaluation", "MCP architecture", "agentic mesh", "enterprise AI agents", "AI change management", "agent ROI". NOT for: building specific agents (use ai-engineer), designing agent behavior patterns (use agentic-patterns), prompt tuning (use prompt-engineer).

curiositech/windags-skills

Fundamental patterns for effective agentic behavior. Teaches decomposition, tool orchestration, error recovery, context management, quality self-assessment, and knowing when to stop. Model-agnostic principles that make any agent more effective regardless of domain. Activate on: "how should I structure this agent", "agentic workflow", "agent patterns", "multi-step task", "tool orchestration", "/agentic-patterns", "decompose this", "agent best practices", "chain of actions", "when should the agent stop", "agent loop design". NOT for: creating agent infrastructure (use agent-creator), building DAGs (use windags-architect), specific tool implementation.

curiositech/windags-skills

Automated discovery and matching of agent skills for dynamic task routing and capability assessment

curiositech/windags-skills

Cryptographic security for agentic systems — zero-trust agent networking, signed message envelopes (JWS/JWE), capability-based security (ocaps), Merkle tree audit trails, WASM sandboxing, and formal verification. Covers CLI dev tool security, mTLS between agents, permission boundaries (least privilege for AI agents), and supply chain security for skills/plugins. Activate on: "agent security", "zero trust agents", "secure agent communication", "capability-based security", "ocap", "signed messages between agents", "agent audit trail", "sandbox agent execution", "agent permissions", "mTLS agents", "cryptographic verification", "agent supply chain", "OWASP agentic", "prove agent did X", "tamper-proof agent logs". NOT for: application-level SAST scanning (use security-auditor), network firewall rules (use infrastructure), SOC2/HIPAA compliance (organizational), or prompt injection defense (use prompt-engineer).

curiositech/windags-skills

Data structures and serialization formats for agent-to-agent communication. Covers message envelopes, structured output schemas, capability declarations, task handoff payloads, error/retry signaling, and context windows as data structures. Deep comparison of A2A protocol, MCP, OpenAI function calling, and LangChain message types. Teaches when to use rigid schemas vs free-form with validation, typed vs untyped, streaming vs batch. Activate on: "agent message format", "agent communication schema", "agent-to-agent protocol", "A2A protocol", "MCP message format", "structured output for agents", "agent interop", "interchange format", "agent serialization", "task handoff format", "capability declaration". NOT for: what agents say to each other (use agent-conversation-protocols), orchestration topology (use multi-agent-coordination), building agent infrastructure (use agentic-infrastructure-2026).

curiositech/windags-skills

Logic-based agent programming language implementing BDI architecture for practical autonomous agent development

curiositech/windags-skills

>- Design AgentSpeak(L)-style BDI agents with context-guarded plans, selection functions, and intention stacks. Use for interruptible autonomy, agent policy, and multi-agent orchestration in dynamic environments. NOT for simple rule engines, static planners, or centralized workflows.

curiositech/windags-skills

Foundational concurrent computation model where actors communicate exclusively through asynchronous message passing

curiositech/windags-skills

Build production-ready LLM applications, advanced RAG systems, and intelligent agents. Implements vector search, multimodal AI, agent orchestration, and enterprise AI integrations. Use PROACTIVELY for LLM features, chatbots, AI agents, or AI-powered applications.

curiositech/windags-skills

license: Apache-2.0 NOT for unrelated tasks outside this domain.

関連スキル