tderoussel/fleet-brief

複数の並列ビルドエージェントを1つのコードベースに派遣するためのワークストリーム概要書を作成します。レーンごとのファイル所有権、共有グラウンドの警告、派生DO-NOTリストを提供します。作業を複数の並列エージェント、ワーカー、レーン、またはウェーブに分割する際に使用します。

fleet-brief とは?

このスキルは、複数の並列エージェント(Claude Code、Cursor、Codexなど)が同じコードベース上で同時に作業する際に衝突を防ぐための「ワークストリーム概要書(brief)」を作成します。概要書は、ファイルマップの読み取り、各レーンへの排他的ファイル所有権の割り当て、共有グラウンド(複数のレーンが読み取るファイル)の特定、DO-NOTリスト(禁止事項とその理由)の導出、マージ前のレビューゲートの設定という6つの手順で構成されます。このスキルは概要書の作成のみを行い、実際のエージェント派遣は行いません。git worktreesを使用した実行分離や、独立してマージ可能なレーンサイズの推奨など、実践的なガイドラインも含まれています。これにより、ユーザーが「fan out」「parallel agents」「orchestrate this」「split into lanes」などのトリガーフレーズを使用した際に、衝突のない安全な並列作業計画を自動生成できます。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/tderoussel/agent-skills/tree/main/skills/fleet-brief

Installed? Explore more 生産性&コラボレーション skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

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

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

ドキュメント

Fleet Brief (フリート概要書)

並列エージェントは共有グラウンドで失敗します — 2つのレーンが1つのファイルを編集するケースです。概要書は、派遣前にその衝突を不可能にするために存在します。実際のファイルマップから境界を導出し、決して推測してはいけません。

この順序で概要書を作成する

1. 最初にファイルをマッピングする

レーンを定義する前に、提案された各変更が影響するファイルをリストアップしてください。それらを読み込んでください。ファイルを読まずに定義されたレーンは、衝突が起きるのを待っているようなものです。

2. 排他的所有権を割り当てる

すべてのファイルには正確に1つの所有レーンがあります。以下の表を作成します。

レーン所有(書き込み)読み取りのみ
W1 — <名前>path/a.ts、path/b.tspath/shared.ts

2つのレーンが1つのファイルに書き込む必要がある場合、3つの選択肢があります — 明示的に1つを選び、曖昧なままにしてはいけません。

  • 順序化する(W2はW1のマージを待つ)
  • 1つのレーンに統合する
  • シームを入れる:一方のレーンが拡張ポイントを追加し、もう一方がそれを利用する

3. 共有グラウンドを名前付ける

複数のレーンが読み取るすべてのファイルをリストアップし、誰が書き込んでもよいかを明記します。

このリストは目の前のコードベースから導出してください — 別のプロジェクトのリストを流用してはいけません。チェックすべき繰り返し発生するパターンは以下の通りです。

  • ライブインバウンドパス。 Webhookやユーザートラフィックを受信するもの。ここでの並行編集はテストではなく本番で失敗します。
  • 複数の機能が呼び出すエンジンモジュールとディスパッチャモジュール。
  • 追加専用のマニフェスト — デプロイ設定、ルートテーブル、関数リスト。プラットフォームには制限(関数数、ファイルサイズ)があり、2つのレーンが独立して追加すると制限を超える可能性があります。
  • 広くインポートされているエクスポート。 追加的に拡張します;名前変更はすべての呼び出し元に波及します。
  • 生成またはベンダリングされたファイル — どのレーンも手動で編集すべきではありません。

一度衝突を引き起こしたファイルは、永久に共有グラウンドと見なします。それを概要書に記録し、次のフリートがその知識を継承できるようにします。

4. DO-NOTリストを導出する

各DO-NOTには、ファイルまたは動作の名前とその理由を記載します。理由のない禁止は無視されますが、根拠のあるものは守られます。

ほとんどのコードベースに一般化できるエントリ:

  • 競合解決中に決して git add -A を行わない — 競合マーカーや他のレーンの作業がステージングされます。
  • ワーカーはリンクされたワークツリーでコミットしません;オーケストレーターがコミットします。
  • テストスイートがデータベースをグローバルにモックしている場合、ユニットテストが成功してもデータベースについては何も証明しません。そのことを明示的に述べてください。
  • 理由を一行で説明せずに依存関係を追加しないでください。
  • レーン内からスキーママイグレーションを適用しないでください。レビューされる単一のステップに延期してください。
  • サイレントに失敗するCLI呼び出しに注意してください — 例:gh pr create には明示的な --base が必要であり、連鎖heredocはエラーを飲み込む可能性があります。

次に、プロジェクト固有のものを追加します。夜を費やしたすべてのインシデントは、その理由とともにここに属します。

5. ゲートを設定する

レーンごとに、「完了」の意味、それを証明する証拠、マージ前にレビューする担当者を明示的に述べてください。

デフォルトとして維持する価値があるのはレビュー後のライブリリースです — ビルド、独立した行レビュー、修正必須ラウンド、マージ。レーンをその作成者だけの判断でマージしてはいけません。作成者のエージェントは、自身の差分にとって最悪のレビュアーです。

6. 保留されているものをマークする

あえて未完了 — 人間の判断が必要 セクション。明示的な承認のために保留されている項目は、意図的に保留されています。準備ができているように見えても、レーンに実行させてはいけません。

分離

ビルドはgit worktreesで実行し、メインチェックアウトでは実行しないでください — 1つのワーキングディレクトリを共有するフリートは編集が混在します。マップにもかかわらずレーンが重複するファイルを変更する場合は、各レーンに独自のworktreeを割り当ててください。

サイジング

レーンは独立してマージ可能であるべきです。あるレーンが別のレーンのPRなしではマージできない場合、それはレーンではなくフェーズです。フェーズは順序化し、レーンは並列化します。

出力

プロジェクトが計画を保持する場所に概要書を書き込み、「確認し、決して推測するな」という警告とともに開いてください。ソースドキュメント内のステータス行はチェックポイントであり、権威ではありません — 派遣前にライブコミット、データベース状態、PRチェック、ワークツリーヘッドを再確認してください。

Individual skills in this repo

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

tderoussel/codebase-audit

Runs a ranked, evidence-backed audit of a product, codebase, or subsystem, ending in a verify list that separates proven findings from inferred ones. Use when the user asks for an audit, a gap analysis, a deep read, a bug hunt, a readiness check, a re-audit, a state reconciliation, or asks what they are not seeing. Trigger phrases include "audit", "gap analysis", "what am I missing", "deep audit", "readiness", "bug hunt", "review the whole thing". Produces findings and a verify list; does not fix.

tderoussel/competitive-teardown

Researches a competing product against your own and produces a ranked build-or-ignore verdict, plus optional comparison-page copy. Use when the user names a competitor or asks how their product stacks up against one. Trigger phrases include "vs us", "competitor", "what does X have", "should we copy", "competitive gap", "teardown", "are we behind". Produces a ranked verdict with effort estimates and an explicit not-worth-copying list.

tderoussel/decision-council

Run a structured multi-perspective review of a decision instead of getting one agreeable answer. Use when the user says run a council, get me perspectives on this, should I do X, stress-test this decision, or is this a good idea.

tderoussel/inbox-triage

Triage an email inbox — sort what needs a reply, draft the replies, flag what needs a decision, and surface what can be ignored or unsubscribed. Use when the user says triage my inbox, do my email, what's in my inbox, or clean up my email.

tderoussel/overnight-build

Composes an autonomous unattended Claude Code build prompt that survives usage-limit resets via BUILD_LOG.md checkpointing, plus the launcher that restarts it. Use when the user asks for an overnight build, an autonomous build, a build to run while they sleep, an unattended or unsupervised session, or any long build they will not be monitoring. Trigger phrases include "overnight build", "run overnight", "build while I sleep", "autonomous build", "let it run", "unattended". Produces a single copyable prompt; does not run the build.

tderoussel/session-log

Write a durable record of a work session — what was built, root-caused, or shipped — into the project's notes. Use when the user says log this session, write a session log, record this, or when a substantial piece of work has just finished and needs to be handed off to a future session.

tderoussel/ship-gate

Verification gate for a Next.js-on-Vercel + Supabase + GitHub Actions stack, to run before claiming anything is shipped, deployed, live, merged, passing, or done. Use before saying a change is in production, before merging a PR, before reporting CI green, and before writing any status into a document — even if the user does not ask for verification. Trigger phrases include "is it live", "did it deploy", "ship it", "merge it", "is CI green", "confirm prod", "did that work". Encodes traps where the obvious check returns a false pass.

tderoussel/vault-doctor

Audits and repairs an Obsidian vault's structural health — broken [[wikilinks]], ambiguous duplicate filenames, missing or malformed frontmatter, stale status markers, and hub notes whose state sections have gone cold. Use when the user asks about vault health, broken links, vault cleanup, dead links, orphan notes, tag consistency, or says the vault feels messy or out of date. Trigger phrases include "vault health", "broken links", "clean up the vault", "audit the vault", "is the vault current". Read-only by default; every repair is proposed before it is made.

関連スキル