Implement Spec

mattpocock/skills/skills/in-progress/implement-spec

作者 mattpocockc55ee46073ed無授權條款280K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫昨天更新

Implement a specification in code.

AI 產生的概覽

透過協調子代理完成工單並提交拉取請求,將規格實作爲程式碼。

功能
此技能會把一份規格及其相關工單轉化爲單一拉取請求,在一個分支上實作整份規格。它把工單視爲帶有阻塞關係的任務圖,追蹤可領取工單的前沿,並在各自的工作樹與分支上派發實作子代理,再透過合併子代理合併其成果。它也會在 PR 分支上執行程式碼審查、修正發現的問題、將 PR 標記爲可供審查,並清理所有工作樹。
適用情境
當你已有規格及相關工單,並希望把整份規格實作爲一個 PR,而不是依序逐步執行時使用。它適合可跨獨立工單並行、且工單之間存在阻塞依賴的工作。
執行需求
需要一份帶相關工單的規格、支援分支與工作樹的程式碼倉庫,以及建立草稿拉取請求與執行程式碼審查命令的能力。它依賴可在背景執行、並能把 Markdown 筆記儲存到倉庫之外的子代理。它不附帶指令碼,唯一檔案是代理設定。

You have been provided a spec. This spec should have tickets associated with it, describing how to implement the spec.

The goal is a PR which implements the entire spec on a single branch.

The tickets are not a list of steps. They are a task graph with blocking relationships between them. This means there is always a frontier of tickets which are ready to be grabbed.

Communication to and from subagents should be sparse. Communicate primarily through context pointers: to the spec, tickets, research notes, and previous commits. Don't duplicate information already available via pointers.

Implementer subagents should be run in the background where possible for maximum concurrency.

Steps

  1. Read the spec and tickets. Read enough to understand the task graph.

  2. (optional) Use an exploration subagent to conduct any exploration required by the tickets - relevant codebase files or external documentation. Ensure the exploration subagent can save files - it should save its markdown notes in a directory outside the repo, accessible by all future subagents. This lets implementer subagents focus on implementation rather than exploration.

  3. Create a branch, and a draft PR. The PR should be marked as 'closing' the spec issue and tickets.

  4. Use implementer subagents to implement each ticket. Each implementer subagent should work in its own worktree, on its own branch.

  5. Once an implementer subagent completes, merge its work to the PR branch with a merger subagent.

  6. If this changes the frontier of available tickets, kick off more implementer subagents to work on the new tickets. This allows for maximum concurrency.

  7. Once all tickets are complete, run /code-review on the PR branch. Fix all issues raised by the code review in a single implementer subagent.

  8. Mark the PR as ready for review.

  9. Clean up all implementer subagent worktrees.

來源與署名

來源:mattpocock/skills位於skills/in-progress/implement-spec提交c55ee46

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架