agent-teams-coding
Skill1 starsChanged 7 months agoMITView on GitHub
Agent Teamsを使用した並列コーディング。ファイル競合防止が核心。 トリガー: "チームで開発", "agent teams", "並列開発", "分担して実装", "チームで実装", "エージェントチーム", "マルチエージェント" 使用場面: (1) 複数機能の並列実装、(2) フロント+バック分離開発、 (3) リファクタリングの分担、(4) 実装+テストの並列作業
In this repository66 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- AI External Brain (Knowledge Base)Skill
- awesome-design-md-jpSkill
- awesome-design-mdSkill
- softbank-invoiceSkill
- claude-for-chromeSkill
- codebase-patrolSkill
- codex-autopilotSkill
- codexSkill
- Context7 Documentation LookupSkill
- design-review-checklistSkill
- detail-design-docSkill
- discord-promotionSkill
- drawioSkill
- e2e-testSkill
- fish-audio-apiSkill
- fish-audio-docsSkill
- fish-audioSkill
- fortress-implementSkill
- fortress-reviewSkill
- freee Developer APISkill
- frontend-skillSkill
- gBizINFO APISkill
- github-cliSkill
- git-worktree-parallelSkill
- google-sheets-apiSkill
- google-sheets-mcpSkill
- graphify-windowsSkill
- issue-autopilot-batchSkill
- issue-flowSkill
- issue-plannerSkill
- Jグランツ APISkill
- Knip - Dead Code DetectionSkill
- liftkitSkill
- llm-vulnerability-testSkill
- MarkItDownSkill
- mba-strategy-consultantSkill
- Obsidian CLI OperationsSkill
- openrouterSkill
- PAY.JP CLI OperationsSkill
- playwright-cliSkill
- playwrightSkill
- qwen-coderSkill
- ryokan-forecastSkill
- security-adversarialSkill
- security-settingsSkill
- skill-improveSkill
- stoic-daily-practiceSkill
- Stripe CLI OperationsSkill
- Stripe PayPay決済Skill
- Supabase CLI OperationsSkill
- tile-terminalsSkill
- timesfmSkill
- ui-ux-pro-maxSkill
- usacon-account-mgmtSkill
- usacon-cliSkill
- usacon-discordSkill
- usacon-partner-registrationSkill
- usaconSkill
- ux-psychologySkill
- The first 60 shown.
The file
Files
Agent Teams 並列コーディング スキル
概要
Agent Teamsを使用して、複数エージェントが安全に並列コーディングを行うためのオーケストレーションスキル。 ファイル所有権の事前設計が核心であり、これにより上書き競合を完全に防止する。
┌──────────────┐
│ リーダー │
│ (delegate) │
└──────┬───────┘
│
┌────────────┼────────────┐
│ │ │
┌─────┴─────┐ ┌───┴────┐ ┌────┴─────┐
│ Worker A │ │Worker B│ │ Worker C │
│ files: a/ │ │files:b/│ │ files:c/ │
└───────────┘ └────────┘ └──────────┘
│ │ │
▼ ▼ ▼
┌─────────────────────────────────────┐
│ 排他的ファイル所有権マップ │
│ A: src/api/*, tests/api/* │
│ B: src/ui/*, tests/ui/* │
│ C: src/db/*, tests/db/* │
│ shared: types/ → A のみ書込可 │
└─────────────────────────────────────┘前提条件
環境変数の有効化
Agent Teams は実験的機能のため、環境変数の設定が必要。
# PowerShellで環境変数を設定
$env:CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS = "1"
# 永続化する場合(ユーザー環境変数に追加)
[Environment]::SetEnvironmentVariable("CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS", "1", "User")確認方法
Agent Teamsが有効かどうかは、TeamCreate ツールが使用可能であることで判断する。
核心ルール: ファイル競合防止(10箇条)
- 1ファイル1オーナー: 各ファイルは1人のワーカーだけが書き込み可能
- 所有権は事前確定: タスク開始前にファイル割当を完了する
- 禁止ファイルの明示: 各ワーカーに「触ってはいけないファイル」を明示する
- 共有ファイルは single_writer: types/、package.json等は必ず1人だけが変更権を持つ
- 所有権移譲は3ステップ: 通知 → 受領確認 → 編集停止(暗黙の移譲禁止)
- プロンプトに writable/forbidden 必須: ワーカースポーン時に所有権範囲を明記
- 統合は固定順序: DB層 → 型定義 → API → UI → テスト → エントリーポイント
- 統合前に競合検査: 変更ファイルの重複チェックを必ず実行
- ワーカー上限4人: 管理コスト > 統合利点にならないよう制限
- コミット前にTeamDelete禁止: worktreeディレクトリが削除され未コミット変更が消失
7ステップ実行フロー(概要)
| Step | 名称 | 入力 | 出力 |
| 1 | 目的・DoD・品質ゲート定義 | ユーザーのタスク依頼 | 完了定義(DoD) |
| 2 | コードベース分析・競合ゾーン抽出 | プロジェクトディレクトリ | ファイル構造マップ |
| 3 | 所有権マップ確定 | 分析結果 | 所有権契約YAML |
| 4 | タスク分解 | DoD + 所有権マップ | TaskCreate一覧 |
| 5 | チームメイトのスポーン | タスク + 所有権 | 稼働中ワーカー |
| 6 | 監視・再割当・所有権移譲 | ワーカーからのメッセージ | 問題解決 |
| 7 | 統合 → 検証 → クリーンアップ | 完了報告 | 統合済みコード |
チーム構造パターン(4種)
| パターン | 適用条件 | 推奨人数 |
| フロントエンド + バックエンド分離 | API + UI が明確に分離できる場合 | 2~3人 |
| 機能モジュール分離 | 複数の独立した機能を同時実装 | 2~4人 |
| 実装 + テスト分離 | テストカバレッジを維持したい場合 | 2人 |
| リファクタリング(ディレクトリ分離) | 大規模リファクタリング | 2~3人 |
クイックスタート(最小手順)
1. 環境変数確認
→ CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS = "1"
2. コードベースの構造を把握
→ Glob / Read でディレクトリ構造確認
3. 所有権マップ作成(最重要)
→ 所有権契約テンプレートを埋める
4. タスク作成
→ TaskCreate で依存関係・ファイル割当を明記
5. チーム作成 & ワーカースポーン
→ TeamCreate → Task tool (name, team_name, mode: "delegate")
→ プロンプトに writable / forbidden を必ず記載
6. 監視 & 完了報告収集
→ TaskList で進捗確認、SendMessage で調整
7. 統合 & 検証
→ 基盤層から順に統合 → テスト → クリーンアップ詳細リファレンス
references/execution-flow.md
- 7ステップ実行フロー詳細(各Stepの入力・出力・完了条件・具体例)
- 所有権契約テンプレート(YAML形式)
- TaskCreate の記述ルール・プロンプト例
- 統合順序(固定順序の理由)
- 検証チェックリスト・クリーンアップ項目
- タスクサイズガイドライン
references/team-patterns.md
- パターン1: フロントエンド + バックエンド分離(所有権・失敗パターン・防止策)
- パターン2: 機能モジュール分離(所有権・失敗パターン・防止策)
- パターン3: 実装 + テスト分離(テスト担当の先行作業、所有権・防止策)
- パターン4: リファクタリング(ディレクトリ分離、統合順序制御)
references/conflict-prevention.md
- コアルール6箇条の詳細(排他的所有権、共有ファイル管理、競合ゾーン、所有権移譲プロトコル)
- 統合前競合検査スクリプト(PowerShell)
- アンチパターン一覧(12項目 + 理由 + 正しいやり方)
- 関連スキル・参考情報
トラブルシューティング
| 問題 | 対処法 |
| ワーカーがスキルファイル改善にCodex workspace-writeを試みて失敗 | ~/.claude/skills/ はgitリポジトリ外のため workspace-write 不可。スキル改善はEdit toolで直接実施する |
関連スキル
/git-worktree-parallel: git worktree を使った並行実装。ワーカーごとに独立ディレクトリを提供し、ファイル競合をOSレベルで完全防止。Agent Teams との併用推奨/github-cli: PR作成・マージのワークフロー。統合後のPR管理に使用
改訂履歴
| 日付 | 変更内容 | 変更理由 |
| 2026-03-17 | トラブルシューティングセクション新設(workspace-write制約) | ~/.claude/skills/ はgitリポ外のためworkspace-write不可。教訓の棚卸しで検出 |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

