implement-with-subagents/SKILL.md
當有多份規格文檔需並行實作時,調度 subagents 按依賴關係分批完成各份 spec,並將變更合併回當前分支。不用於單一 spec 的實作(請使用 implement),不用於無 coordination.md 的 batch spec。
npx skillsauth add laitszkin/apollo-toolkit implement-with-subagentsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
調度多個 subagents 並行完成規格文檔的實作。
checklist.md、tasks.md、spec.md閱讀用戶指定的 spec:
spec.md 定義了用戶的需求tasks.md 定義了詳細的實作任務checklist.md 定義了任務的完成和驗收條件contract.md 定義了 spec 的外部依賴design.md 定義了相關業務鏈路的架構設計coordination.md(如有)定義了 batch spec 之中各份 spec 各自的實作邊界preparation.md(如有)定義了實作 batch spec 之前各 spec 的共用準備工作按照以上文件,閱讀 repo,理解本次 spec 的實作範圍。
若 batch spec 有 preparation.md,在開始實作前先完成其規定的任務。
驗收後回填 preparation.md。
使用 commit 技能提交前置準備工作。不需要推送到 remote。
識別各份 spec 之間的依賴關係,並建立調度順序。將多份 spec 的實作切分為多個實作批次。每一個實作批次內部的 spec 之間沒有互相依賴。
為每個批次中的每份 spec 建立簡短宣告:
Spec: [spec 名稱]
目標檔案: [預計修改的檔案列表]
變更類型: [新增功能 / 重構 / bug fix]
風險標記: [auth / schema / 資料庫 migration / 外部 API]
若兩份同批次的 spec 目標檔案有重疊,不應並行處理。
在派發 subagent 前,對同一批次內的各份 spec 進行檔案重疊檢查:
git merge-tree 對不同分支進行預先衝突檢測(無需實際合併)非重疊的檔案所有權是平行開發最重要的規則。沒有兩個 subagent 應同時編輯相同檔案。
若批次中有多份 spec 可能修改 lockfile(package-lock.json、yarn.lock 等):
每一個被創建的 subagent 都需要有專屬的獨立 worktree。
每一個 subagent 的工作流程如下:
implement 技能實作 speccommit 技能將變更提交到所屬 worktree若 subagent 執行失敗(超時、當機、或回報無法完成):
在開始新的實作批次前,使用 merge-changes-from-local-branches 技能。
將前一批次的變更從本地其他分支合併回來。
合併後必須執行完整測試套件,確認無 regression 後才進入下一批次。
完成所有批次的合併後:
checklist.md、tasks.md、spec.md,確保非用戶填寫的任務 checkboxes 都被勾選為完成preparation.md。3 份 spec 之間無依賴。" -> "先完成 preparation.md 的實作並提交。啟動三個 subagents 並行完成三份 spec。完成後合併回當前分支。執行測試套件確認無 regression。驗證後回報結果。"development
Read a user-specified PDF that marks the week's key financial events, deeply research each marked event with current sources, capture any additional breaking financial developments, and produce a concise Chinese-capable PDF briefing that explains what happened and why it matters.
documentation
Generate long-form videos (more than 10 minutes) by following user instructions and invoking related skills only when needed (`openai-text-to-image-storyboard`, `docs-to-voice`, `remotion-best-practices`). For text inputs, extract a complete long-form story arc, generate fresh storyboard images (no reuse of previously generated pictures), and render a 16:9 animated long-form video.
tools
協助完成自動化版本發佈。同步文檔、更新版本號、推送 tag 並建立 GitHub Release。
development
Incrementally refresh the architecture atlas when the project diagram drifts from actual code. Measures drift before updating to determine scope, then updates the base atlas and re-renders HTML.