jpskill.com
🛠️ 開発・MCP コミュニティ

agent-group-usage

エージェントグループ内で、エージェント作成、ルーム参加、メッセージ送信、タスク発行・実行・結果提出、状況確認など、協調作業に必要な一連の操作を、適切なツール選択と順序で実行できるよう支援するSkill。

📜 元の英語説明(参考)

Use this skill when the user needs to create agents, join rooms, send messages, publish tasks, claim tasks, deliver results, or inspect task status inside an agent-group collaboration space. Guide the model to choose the right tools, call them in the right order, and fill in missing prerequisites before taking the main action.

🇯🇵 日本人クリエイター向け解説

一言でいうと

エージェントグループ内で、エージェント作成、ルーム参加、メッセージ送信、タスク発行・実行・結果提出、状況確認など、協調作業に必要な一連の操作を、適切なツール選択と順序で実行できるよう支援するSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o agent-group-usage.zip https://jpskill.com/download/10065.zip && unzip -o agent-group-usage.zip && rm agent-group-usage.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/10065.zip -OutFile "$d\agent-group-usage.zip"; Expand-Archive "$d\agent-group-usage.zip" -DestinationPath $d -Force; ri "$d\agent-group-usage.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して agent-group-usage.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → agent-group-usage フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

agent-group 利用ガイド

このスキルは、モデルがマルチエージェントコラボレーションのために一連の MCP ツールをより確実に使用できるように支援します。目標は、ツールを機械的に列挙することではなく、ユーザーの目的に合った適切なツールを選択し、正しい順序でツールを呼び出し、結果に基づいてタスクを進めることです。

このスキルを使用するタイミング

ユーザーが以下を希望する場合に、このスキルを使用します。

  • エージェントの作成または検査
  • ルームの作成または既存のルームへの参加
  • ルームメンバーの確認とエージェント間のメッセージ交換
  • 請求可能なタスクの公開
  • タスクの請求と結果の提出
  • タスクのステータス、タスクボード、またはタスクサブツリーの検査

ユーザーが概念についてのみ質問しており、実際のアクションを求めていない場合は、まず機能の境界を説明し、その後、ツールの使用が必要かどうかを判断します。

運用原則

  • ツールを選択する前に、現在の段階を特定します。
  • 目標がルームまたはエージェントのコンテキストに依存する場合は、まずそのコンテキストを確立します。
  • 必要な呼び出しを最小限に抑えることを優先します。1 回の呼び出しで必要な状態を確認できる場合は、不要なツールを連鎖させないでください。
  • 要約テキストだけでなく、構造化された結果フィールドを優先します。
  • レコードを作成したり状態を変更したりするアクションを再試行する前に、再試行すると重複が作成されるかどうかを確認します。

ツールグループ

1. セットアップとバインディング

  • list_agents 現在のユーザーに対して既に存在しているエージェントを検査するために、最初にこれを使用します。
  • create_agent ユーザーが適切なエージェントをまだ持っていない場合、または明示的に作成を要求する場合に使用します。
  • create_room ユーザーが新しいルームを必要とする場合に使用します。
  • join_room ユーザーがエージェントにルームに参加させたい場合に使用します。
  • leave_room ユーザーが現在のエージェントに現在のルームから退出させたい場合に使用します。

2. ルームコラボレーション

  • list_room_members 現在ルームにいるエージェントを表示します。
  • send_message 現在のルーム内の別のエージェントにメッセージを送信します。
  • list_messages 現在のエージェントに送信されたメッセージを、ページネーションサポート付きで読み取ります。

3. タスクの公開と実行

  • publish_tasks 1 つ以上のタスクを現在のルームに公開します。
  • claim_task 現在のエージェントに請求可能なタスクを請求させます。
  • deliver_task 請求されたタスクの結果を送信します。

4. タスクの検査

  • list_taskboard ページネーションサポート付きで、現在のルーム内のタスクを閲覧します。
  • get_task_status 既知の taskId 値のステータスをクエリします。
  • inspect_task_subtree 親タスクの下のサブツリーと要約ステータスを検査します。

決定順序

ユーザーのリクエストを処理するときは、次の順序で推論します。

  1. ユーザーはコラボレーションコンテキストを準備しようとしていますか、それとも既存のコンテキスト内でアクションを実行しようとしていますか?
  2. エージェントを見つけるか選択するだけでよい場合は、list_agents から始めます。
  3. エージェントを指定しなかったが、次のアクションでエージェントが必要な場合は、create_agent するか、join_room で既存のエージェントを使用するかを決定します。
  4. ルームを指定しなかったが、次のアクションがルーム内で発生する場合は、create_room するか join_room するかを決定します。
  5. 現在のセッションが適切なコンテキストにある場合にのみ、メッセージまたはタスクツールを実行します。

ルームの作成とルームへの参加を混同しないでください。以前のコンテキストまたはツールの結果で明示的に示されていない限り、エージェントが既にターゲットルームにいると想定しないでください。

高品質なフロー

新しいコラボレーションスペースを開始する

ユーザーが新しいルームを開始したい場合は、これを使用します。

  1. list_agents
  2. 適切なエージェントが存在しない場合は、create_agent
  3. create_room
  4. 選択したエージェントで join_room
  5. 必要に応じて、list_room_members で現在のルームの状態を確認します

既存のルームに参加する

ユーザーがエージェントにルームに参加させたいと言っている場合は、これを使用します。

  1. エージェントが存在するかどうかが不明な場合は、list_agents
  2. 必要に応じて、create_agent
  3. join_room
  4. ユーザーが確認を求めている場合は、list_room_members

ルーム内でコミュニケーションする

ユーザーがメッセージを送信または読み取りたい場合は、これを使用します。

  1. 現在のエージェントが既にルームにいることを確認します
  2. send_message を使用して送信します
  3. list_messages を使用して読み取ります
  4. 結果セットが長い場合は、nextCursor を使用して続行します

タスクの公開と実行

ユーザーがタスクの実行を調整したい場合は、これを使用します。

  1. ターゲットルームが既にアクティブであることを確認します
  2. publish_tasks を呼び出します
  3. エージェントが実行を開始する必要がある場合は、claim_task を使用します
  4. 請求が成功したら、返された assignmentToken を保持します
  5. deliver_task を使用して結果を送信します
  6. ユーザーが進捗状況の可視性を求めている場合は、list_taskboardget_task_status、または inspect_task_subtree を使用します

パラメータガイダンス

create_agent

  • name は、アイデンティティまたは責任を明確に表現する必要があります。
  • description は、スコープ、強み、または意図された使用法を示すのに適しています。
  • ユーザーが名前を指定しない場合は、タスクに対して簡潔で安定しており、再利用可能な名前を生成します。

create_room

  • name は、プロジェクト、イニシアチブ、またはセッショントピックなど、コラボレーションの目標を反映する必要があります。
  • description は、ルームの目的、参加者の役割、または予想される成果物を明確にする必要があります。

join_room

  • agentIdroomId の両方が必要です。
  • ユーザーがあいまいな名前のみを与え、明示的な ID を与えない場合は、以前のコンテキストまたは以前のツールの結果からそれらを解決します。推測しないでください。

send_message

  • toAgentId は、現在のルーム内のターゲットエージェントを参照する必要があります。
  • content は、直接的で実行可能である必要があります。
  • メッセージが事実上作業を委任している場合は、目標、制約、成果物、および予想される応答を含めます。
  • メッセージの送信には副作用があります。再試行すると新しいメッセージが作成されるため、安易な再試行は避けてください。

list_messages

  • ユーザーが最近のメッセージのみを求めている場合は、より小さな結果セットから始めます。
  • ユーザーがより多くのメッセージを求めている場合は、以前の nextCursorafter として渡します。
  • このツールは、ルーム全体のメッセージ履歴ではなく、現在のエージェントに送信されたメッセージを表示します。

publish_tasks

  • すべてのタスクには、追跡、請求、および後で配信できるように、安定した読み取り可能な taskId が必要です。
  • prompt は、単なるタイトルではなく、直接実行可能なタスク指示である必要があります。
  • タスクに階層がある場合は、parentTaskId を使用します。

(原文がここで切り詰められています)

📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

agent-group Usage Guide

This skill helps the model use a set of MCP tools for multi-agent collaboration more reliably. The goal is not to list tools mechanically, but to choose the right tool for the user’s objective, call tools in the right order, and move the task forward based on the result.

When To Use This Skill

Use this skill when the user wants to:

  • create or inspect their agents
  • create a room or enter an existing room
  • see room members and exchange messages between agents
  • publish claimable tasks
  • claim tasks and submit results
  • inspect task status, the taskboard, or a task subtree

If the user is only asking about concepts and not asking for actual operations, explain the capability boundary first and then decide whether tool use is necessary.

Operating Principles

  • Identify the current stage before choosing a tool.
  • If the goal depends on room or agent context, establish that context first.
  • Prefer the fewest necessary calls. If one call can confirm the needed state, do not chain several tools unnecessarily.
  • Prefer structured result fields over the summary text alone.
  • Before retrying an action that creates records or changes state, check whether retrying would create duplicates.

Tool Groups

1. Setup And Binding

  • list_agents Use this first to inspect which agents already exist for the current user.
  • create_agent Use this when the user does not yet have a suitable agent or explicitly asks to create one.
  • create_room Use this when the user needs a new room.
  • join_room Use this when the user wants an agent to enter a room.
  • leave_room Use this when the user wants the current agent to leave the current room.

2. Room Collaboration

  • list_room_members View which agents are currently in the room.
  • send_message Send a message to another agent in the current room.
  • list_messages Read messages sent to the current agent, with pagination support.

3. Task Publishing And Execution

  • publish_tasks Publish one or more tasks into the current room.
  • claim_task Let the current agent claim a claimable task.
  • deliver_task Submit the result of a claimed task.

4. Task Inspection

  • list_taskboard Browse tasks in the current room with pagination support.
  • get_task_status Query status for known taskId values.
  • inspect_task_subtree Inspect the subtree and summary status under a parent task.

Decision Order

When handling a user request, reason in this order:

  1. Is the user trying to prepare a collaboration context, or perform an action inside an existing one?
  2. If they only need to find or choose an agent, start with list_agents.
  3. If they did not specify an agent but the next action needs one, decide whether to create_agent or use an existing agent with join_room.
  4. If they did not specify a room but the next action happens inside a room, decide whether to create_room or join_room.
  5. Only run message or task tools after the current session is in the right context.

Do not confuse creating a room with entering a room. Do not assume an agent is already in the target room unless the prior context or tool results make that explicit.

High-Quality Flows

Start A New Collaboration Space

Use this when the user wants to start a new room:

  1. list_agents
  2. If no suitable agent exists, create_agent
  3. create_room
  4. join_room with the selected agent
  5. If needed, list_room_members to confirm the current room state

Enter An Existing Room

Use this when the user says they want an agent to enter a room:

  1. If it is unclear whether the agent exists, list_agents
  2. If needed, create_agent
  3. join_room
  4. If the user wants confirmation, list_room_members

Communicate Inside A Room

Use this when the user wants to send or read messages:

  1. Confirm the current agent is already in the room
  2. Use send_message to send
  3. Use list_messages to read
  4. If the result set is long, continue with nextCursor

Publish And Execute Tasks

Use this when the user wants to coordinate task execution:

  1. Confirm the target room is already active
  2. Call publish_tasks
  3. Use claim_task when an agent should start execution
  4. After a successful claim, preserve the returned assignmentToken
  5. Use deliver_task to submit the result
  6. If the user wants progress visibility, use list_taskboard, get_task_status, or inspect_task_subtree

Parameter Guidance

create_agent

  • name should clearly express identity or responsibility.
  • description is a good place for scope, strengths, or intended usage.
  • If the user does not provide a name, generate one that is concise, stable, and reusable for the task.

create_room

  • name should reflect the collaboration goal, such as a project, initiative, or session topic.
  • description should clarify room purpose, participant roles, or expected deliverables.

join_room

  • Requires both agentId and roomId.
  • If the user gives only vague names and no explicit IDs, resolve them from prior context or previous tool results. Do not guess.

send_message

  • toAgentId must refer to a target agent in the current room.
  • content should be direct and actionable.
  • If the message is effectively delegating work, include the goal, constraints, deliverable, and expected response.
  • Sending a message has side effects. Retrying creates a new message, so avoid thoughtless retries.

list_messages

  • Start with a smaller result set when the user only wants recent messages.
  • When the user wants more, pass the previous nextCursor as after.
  • This tool shows messages sent to the current agent, not the full room-wide message history.

publish_tasks

  • Every task should have a stable, readable taskId so it can be tracked, claimed, and delivered later.
  • prompt should be a directly executable task instruction, not just a title.
  • Use parentTaskId when tasks have hierarchy.
  • Use dependencies when tasks must wait on other tasks.
  • Use deliverableSpec to define the expected output format or acceptance criteria.
  • When publishing multiple tasks together, keep the dependency structure clear.

claim_task

  • taskId should come from the taskboard, status results, or explicit user input.
  • executionLeaseMs should match task complexity.
  • When uncertain, choose a conservative but reasonable lease instead of one that is too short.
  • After a successful claim, pay close attention to the returned assignmentToken and any expiration data.

deliver_task

  • You must use the assignmentToken returned from the claim step.
  • artifact should be as structured as practical so later inspection is easier.
  • Even if the user only wants a short answer, include the key facts such as the conclusion, output location, failure reason, or next-step recommendation.

list_taskboard

  • Use this to browse the overall task situation in the current room.
  • For recent tasks only, use a smaller limit.
  • For broader inventory, increase limit moderately.
  • Only enable includeArtifacts when the user explicitly needs result content.

get_task_status

  • Best for cases where the user already knows one or more taskId values and wants a direct status check.
  • Enable includeArtifacts only when the user needs the delivered outputs themselves.

inspect_task_subtree

  • Best for reviewing the full tree under a parent task.
  • Adjust maxDepth based on the expected nesting level instead of always using a large number.
  • Prefer this tool when the user cares about overall progress, not just one task.

Common Recovery Actions

Collaboration Context Is Not Ready Yet

If message or task tools cannot proceed, first check whether the session is missing:

  • a usable agent
  • the intended room
  • confirmation that the current agent has entered that room

The usual recovery order is:

  1. list_agents
  2. create_agent if needed
  3. create_room or confirm an existing roomId
  4. join_room
  5. then run the real message or task action

The Agent Does Not Exist Or Is Unclear

  • Do not guess agentId
  • Start with list_agents
  • Use create_agent if needed

The Room Is Unclear

  • Do not assume the current room is the one the user means
  • If there is no explicit roomId, resolve it from context, prior results, or the user’s wording
  • If the user wants a fresh collaboration space, use create_room

Pagination Is Incomplete

  • If the tool returns nextCursor, more data exists
  • When the user asks to continue or list everything, use that cursor for the next page

Task Submission Flow Was Interrupted

  • If claim_task succeeded but deliver_task has not happened yet, do not lose the assignmentToken
  • If the user asks to submit later, first confirm the correct taskId and assignmentToken

How To Explain These Tools To Users

Use external, behavioral language when describing actions:

  • Say “let the current agent enter the room,” not internal state terminology
  • Say “this tool reads messages sent to the current agent,” not implementation details
  • Say “submitting a result requires the token returned during claim,” not internal flow mechanics

If the user states a goal without naming a tool, choose the tool yourself and proceed. Only ask a follow-up question when a critical identifier is missing and cannot be inferred safely.

Recommended Examples

Create A New Collaboration Space

User intent: “Create a room for frontend refactoring and let my code-review agent join it.”

Recommended approach:

  1. list_agents
  2. If no suitable agent exists, create_agent
  3. create_room
  4. join_room

Delegate Work To Another Agent

User intent: “Ask the testing agent to verify the payment flow fix.”

Recommended approach:

  1. If needed, list_room_members
  2. send_message

The message content should include:

  • what to verify
  • which risks matter
  • what kind of response is expected

Publish A Task Set

User intent: “Break the auth refactor into three tasks and publish them to the room.”

Recommended approach:

  1. publish_tasks
  2. If the user later wants progress visibility, follow with list_taskboard or inspect_task_subtree

Inspect Task Progress

User intent: “Show me how all subtasks under task-auth-refactor are doing.”

Recommended approach:

  1. inspect_task_subtree

If the user provides several explicit taskId values instead, prefer get_task_status.

Output Requirements

After using these tools, your user-facing response should include:

  • what action you took
  • the key identifiers, such as agentId, roomId, or taskId
  • the key outcome, such as whether join, claim, or delivery succeeded
  • the next useful step, such as continuing pagination, publishing tasks, or joining a room before retrying

If the result includes fields that can directly drive the next action, such as nextCursor, assignmentToken, or task status summaries, turn those into explicit next-step guidance.