🛠️ エージェントCollaborationProtocol
バックエンドとフロントエンドのエンジニアが連携して、APIとUIを持つダッシュボードのようなフルスタックな機能を構築する際に、プロジェクト全体を円滑に進めるための調整を行うSkill。
📺 まず動画で見る(YouTube)
▶ 【衝撃】最強のAIエージェント「Claude Code」の最新機能・使い方・プログラミングをAIで効率化する超実践術を解説! ↗
※ jpskill.com 編集部が参考用に選んだ動画です。動画の内容と Skill の挙動は厳密には一致しないことがあります。
📜 元の英語説明(参考)
Structured multi-agent collaboration for backend + frontend builds. Use when an orchestrator needs to coordinate a backend engineer and frontend engineer on the same feature. Triggered by multi-role build requests like "build a dashboard with an API and UI" or "create a full-stack feature" or any task requiring both backend (API, data, infra) and frontend (UI, templates, design) work.
🇯🇵 日本人クリエイター向け解説
バックエンドとフロントエンドのエンジニアが連携して、APIとUIを持つダッシュボードのようなフルスタックな機能を構築する際に、プロジェクト全体を円滑に進めるための調整を行うSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o agent-collaboration-protocol.zip https://jpskill.com/download/4313.zip && unzip -o agent-collaboration-protocol.zip && rm agent-collaboration-protocol.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/4313.zip -OutFile "$d\agent-collaboration-protocol.zip"; Expand-Archive "$d\agent-collaboration-protocol.zip" -DestinationPath $d -Force; ri "$d\agent-collaboration-protocol.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
agent-collaboration-protocol.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
agent-collaboration-protocolフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-17
- 取得日時
- 2026-05-18
- 同梱ファイル
- 5
💬 こう話しかけるだけ — サンプルプロンプト
- › Agent Collaboration Protocol を使って、最小構成のサンプルコードを示して
- › Agent Collaboration Protocol の主な使い方と注意点を教えて
- › Agent Collaboration Protocol を既存プロジェクトに組み込む方法を教えて
これをClaude Code に貼るだけで、このSkillが自動発動します。
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
[Skill 名] agent-collaboration-protocol
エージェントコラボレーションプロトコル
仕組み
3つの役割が共有ワークスペースを通じて連携します。
| 役割 | 責任 |
|---|---|
| オーケストレーター | 契約を定義し、両方のビルダーを生成し、統合を検証し、マージします |
| バックエンドエンジニア | APIコード、データモデル、インフラストラクチャを作成します |
| フロントエンドエンジニア | UIコンポーネント、テンプレート、スタイルを作成します |
契約は shared/build-{YYYYMMDD}/ に存在します。両方のビルダーは同じディレクトリに書き込みます。オーケストレーターは、両方が完了したときに検査し、マージします。
ワークフロー
ステップ1:オーケストレーターがビルドディレクトリと契約を作成します
shared/build-{YYYYMMDD}/
SPEC.md ← 統合契約
backend/ ← バックエンドエンジニアがここに書き込みます
frontend/ ← フロントエンドエンジニアがここに書き込みます
integration.md ← 両者が作業中に更新します
SPEC.md を以下のセクションで記述します。
# SPEC: {機能名}
## 契約
- APIベースパス、認証スキーム、コンテンツタイプ
- データモデル(すべてのエンティティ、フィールド、型、リレーションシップ)
- エンドポイント(メソッド、パス、リクエスト/レスポンスの形式)
- エラー形式
## ルート
バックエンドエンジニアがこれらを実装します。フロントエンドエンジニアがこれらを消費します。
## UIコンポーネント
フロントエンドエンジニアがこれらを構築します。バックエンドエンジニアはこれらに触れません。
## 成功基準
観測可能な動作。「テストがパスする」ではなく、「ユーザーがログインしてカレンダーを見ることができる」です。
ステップ2:オーケストレーターがエージェントを生成します
sessions_spawn を使用して2つのサブエージェントを生成します。
バックエンドエンジニア:
task: >
shared/build-{YYYYMMDD}/SPEC.md のAPI仕様を実装します。
すべてのバックエンドコードを shared/build-{YYYYMMDD}/backend/ に書き込みます。
shared/build-{YYYYMMDD}/integration.md を進捗状況で更新します。
{バックエンドフレームワーク} (FastAPI, Express など) を使用します。
フロントエンドエンジニア:
task: >
shared/build-{YYYYMMDD}/SPEC.md の仕様のUIを実装します。
すべてのフロントエンドコードを shared/build-{YYYYMMDD}/frontend/ に書き込みます。
SPEC.md のAPI契約をフェッチ呼び出しに使用します。
shared/build-{YYYYMMDD}/integration.md を進捗状況で更新します。
{フロントエンドスタック} (HTMX+Tailwind, React など) を使用します。
ワンショット完了のために mode: "run" を設定します。
ステップ3:両者が同時に構築します
バックエンドエンジニアは shared/build-{YYYYMMMMDD}/backend/ に書き込みます。
- ルーター/ハンドラーコード
- データモデルとスキーマ
- 設定ファイルとインフラストラクチャファイル
- 進捗状況とブロックしている問題を
integration.mdで更新します
フロントエンドエンジニアは shared/build-{YYYYMMMMDD}/frontend/ に書き込みます。
- UIコンポーネント/テンプレート
- スタイルとレイアウト
- APIクライアントコード
- 進捗状況とブロックしている問題を
integration.mdで更新します
ステップ4:オーケストレーターが検証してマージします
- 両方のエージェントから
integration.mdを読み取ります backend/とfrontend/のファイルを検査します- APIレスポンスがUIの期待と一致するか検証します
- 不一致が見つかった場合は、担当エージェントに修正を送信します
- コードを本番パスに移動します
- ビルドディレクトリをアーカイブします(または削除します)
セットアップスクリプト
コラボレーション構造を初期化するために、プロジェクトごとに一度実行します。
scripts/init_collab.sh /path/to/project
テンプレートの SPEC.md と .gitignore を含む shared/ を作成します。
参照ファイル
より深いパターンとテンプレートについては、以下を参照してください。
references/spec-template.md— 例を含む完全な SPEC.md テンプレートreferences/integration-log.md— integration.md のステータス形式references/handoff-format.md— タスク引き渡しメッセージテンプレート
使用しない場合
- 単一ファイルの変更(直接実行するだけの場合)
- バックエンド/フロントエンドの境界を越えない単独タスク
- 純粋にバックエンドまたは純粋にフロントエンドのバグ修正
- 1つのエージェントが両方を処理できるタスク(代わりに単一のサブエージェントを使用)
制限事項
sessions_spawnツールが必要です(OpenClaw v1.0+)- 補完的な強みを持つモデルペア(例:バックエンド特化型 + フロントエンド特化型)で最も効果的です
- デザインシステムの代替ではありません — フロントエンドエンジニアはデザインシステムに別途アクセスできる必要があります
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Agent Collaboration Protocol
How It Works
Three roles collaborate through a shared workspace:
| Role | Responsibility |
|---|---|
| Orchestrator | Defines the contract, spawns both builders, verifies integration, merges |
| Backend Engineer | Writes API code, data models, infrastructure |
| Frontend Engineer | Writes UI components, templates, styles |
The contract lives in shared/build-{YYYYMMDD}/. Both builders write to the same directory. The orchestrator inspects and merges when both are done.
Workflow
Step 1: Orchestrator Creates the Build Directory and Contract
shared/build-{YYYYMMDD}/
SPEC.md ← Integration contract
backend/ ← Backend Engineer writes here
frontend/ ← Frontend Engineer writes here
integration.md ← Both update as they work
Write SPEC.md with these sections:
# SPEC: {Feature Name}
## Contract
- API base path, auth scheme, content type
- Data models (all entities, fields, types, relationships)
- Endpoints (method, path, request/response shapes)
- Error format
## Routes
Backend Engineer implements these. Frontend Engineer consumes them.
## UI Components
Frontend Engineer builds these. Backend Engineer doesn't touch them.
## Success Criteria
Observable behavior. Not "tests pass" — "user can log in and see calendar."
Step 2: Orchestrator Spawns Agents
Spawn two subagents with sessions_spawn:
Backend Engineer:
task: >
Implement the API spec in shared/build-{YYYYMMDD}/SPEC.md.
Write all backend code to shared/build-{YYYYMMDD}/backend/.
Update shared/build-{YYYYMMDD}/integration.md with progress.
Use {backend framework} (FastAPI, Express, etc.).
Frontend Engineer:
task: >
Implement the UI for the spec in shared/build-{YYYYMMDD}/SPEC.md.
Write all frontend code to shared/build-{YYYYMMDD}/frontend/.
Use the API contract in SPEC.md for your fetch calls.
Update shared/build-{YYYYMMDD}/integration.md with progress.
Use {frontend stack} (HTMX+Tailwind, React, etc.).
Set mode: "run" for one-shot completion.
Step 3: Both Build Simultaneously
Backend Engineer writes to shared/build-{YYYYMMDD}/backend/:
- Router/handler code
- Data models and schemas
- Config and infrastructure files
- Updates
integration.mdwith progress and any blockers
Frontend Engineer writes to shared/build-{YYYYMMDD}/frontend/:
- UI components / templates
- Styles and layout
- API client code
- Updates
integration.mdwith progress and any blockers
Step 4: Orchestrator Verifies and Merges
- Read
integration.mdfrom both agents - Inspect files in
backend/andfrontend/ - Verify API responses match UI expectations
- If mismatches found, send corrections to the responsible agent
- Move code to production paths
- Archive the build directory (or delete it)
Setup Script
Run once per project to initialize the collaboration structure:
scripts/init_collab.sh /path/to/project
Creates shared/ with template SPEC.md and .gitignore.
Reference Files
For deeper patterns and templates:
references/spec-template.md— Full SPEC.md template with examplesreferences/integration-log.md— integration.md status formatreferences/handoff-format.md— Task handoff message template
When Not to Use
- Single-file changes (just do it directly)
- Solo tasks that don't cross backend/frontend boundaries
- Bug fixes that are purely backend or purely frontend
- Tasks where one agent can handle both sides (use a single subagent instead)
Limitations
- Requires the
sessions_spawntool (OpenClaw v1.0+) - Works best with model pairs that have complementary strengths (e.g., backend-specialized + frontend-specialized)
- Not a replacement for a design system — frontend engineer should have access to design tokens separately
同梱ファイル
※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。
- 📄 SKILL.md (4,343 bytes)
- 📎 references/handoff-format.md (688 bytes)
- 📎 references/integration-log.md (858 bytes)
- 📎 references/spec-template.md (1,950 bytes)
- 📎 scripts/init_collab.sh (1,548 bytes)