Community生產力與協作github.com

tderoussel/fleet-brief

撰寫一份工作流簡報,以便在單一程式碼庫中調度多個並行建置代理者,包含每個工作線的檔案所有權、共享地雷警告以及衍生出的『禁止事項』清單。當工作即將分配給多個並行代理者、工作者、工作線或批次時使用——即使使用者沒有說『撰寫簡報』。觸發詞包括『fan out』、『parallel agents』、『orchestrate this』、『split into lanes』、『workstreams』、『run these in parallel』、『review-gated build』。產出簡報;不執行調度。

fleet-brief 是什麼?

Fleet Brief 是一項針對開發者工具與 AI 代理者的技能,旨在解決多個並行建置代理者在同一程式碼庫中工作時的衝突問題。其核心功能是產生一份結構化的「工作流簡報」,明確界定每個工作線(lane)的檔案所有權、共享讀取檔案(即共享地雷)以及禁止行為清單,從而避免兩個工作線同時編輯同一檔案導致的合併衝突。技能支援 Claude Code、Cursor、Codex 等平台,透過辨識「fan out」、「parallel agents」、「split into lanes」等觸發詞來自動建議使用者產出簡報。工作流程分為六個步驟:先讀取並映射所有受影響檔案,再分配獨佔所有權,接著標記共享讀取檔案與其可能風險,然後推導出帶有具體理由的禁止事項清單,設定每個工作線的完成閘道(例如 review-before-live),最後標記刻意保留給人類決策的項目。簡報強調隔離(建議使用 git worktrees)、獨立合併性,並要求狀態資訊僅作為檢查點而非權威,需在調度前重新驗證。此技能特別適用於需要協調多個代理者平行工作的場景,有助於防止生產環境中的故障與開發流程中的夜間事故。

相容平台~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 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

Fleet brief

平行代理者會在共享地雷上失敗——兩個工作線編輯同一個檔案。這份簡報的目的就是在調度前讓這種衝突不可能發生。請根據實際的檔案對映來推導邊界,切勿假設。

按此順序建構簡報

1. 先對映檔案

在定義工作線之前,列出每個提案變更會觸及的檔案。讀取它們。未讀取檔案就定義的工作線,是等待發生的衝突。

2. 指定獨佔所有權

每個檔案恰好有一個擁有它的工作線。產出這個表格:

工作線擁有(寫入)僅讀取
W1 — <名稱>path/a.ts, path/b.tspath/shared.ts

如果兩個工作線需要寫入同一個檔案,你有三個選項——明確選定其中一個,切勿留下模糊空間:

  • 排序它們(W2 等待 W1 合併)
  • 合併它們成一個工作線
  • 接合它:一個工作線新增擴充點,另一個消費它

3. 命名共享地雷

列出每個被超過一個工作線讀取的檔案,並說明誰可以寫入它。

根據你面前的程式碼庫推導此清單——不要搬移另一個專案的清單過來。值得檢查的常見模式:

  • 即時入站路徑。 接收網頁鉤子或使用者流量的任何東西。這裡的並行編輯會在生產環境失敗,而非測試環境。
  • 引擎與調度器模組,多個功能會呼叫它們。
  • 僅附加的清單——部署配置、路由表、函式列表。平台會施加限制(函式數量、檔案大小);兩個工作線獨立附加可能會突破其中一個。
  • 廣泛匯出的匯出。 附加性地擴展;重新命名會波及每個呼叫者。
  • 產生或供應的檔案,任何工作線都不應手動編輯。

一個曾造成衝突的檔案將永久視為共享地雷。將其記錄在簡報中,以便下一個 fleet 繼承此知識。

4. 推導出禁止事項清單

每個禁止事項指定一個檔案或行為以及原因。沒有理由的禁令會被忽略;有根據的才能成立。

跨多數程式碼庫適用的項目:

  • 在衝突解決期間絕對不要執行 git add -A——它會暫存衝突標記與其他工作線的成果。
  • 工作者不應在連結的工作樹中提交;由協調者提交。
  • 如果測試套件全域模擬資料庫,則通過的單元測試對資料庫完全沒有證明力。明確說出這一點。
  • 未附上一行理由之前,不要新增相依套件。
  • 不要從工作線內部執行資料庫架構遷移。將其延後到一個經審查的步驟。
  • 注意會靜默失敗的 CLI 呼叫——例如 gh pr create 需要明確的 --base,而鏈結的 heredoc 可能吞掉錯誤。

然後加入專案特定的禁止事項。每個曾經讓你熬夜的事故都應該在這裡,附上原因。

5. 設定閘道

為每個工作線明確說明:「完成」的定義、哪些證據可以證明、以及合併前由誰審查。

值得保留的預設是上線前審查——建置、然後獨立逐行審查、然後必須修正的回合、然後合併。絕不能僅憑工作線作者自己的說法就合併。作者的代理者是自己差異的最差審查者。

6. 標記保留事項

一個「刻意未完成——需要人類介入」章節。為明確的目標而保留的項目,是刻意保留的。不要讓工作線因為看起來準備就緒就執行其中任何一個。

隔離

在 git 工作樹中執行建置,而非主要檢出目錄——共享一個工作目錄的 fleet 會交錯編輯。如果工作線儘管有對映仍變更重疊的檔案,請為每個工作線提供各自的工作樹。

規模

工作線應該可以獨立合併。如果一個工作線無法在沒有另一個工作線的 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.

相關技能