Implement Spec

作者 mattpocockb0618bc436ad無授權條款收錄於 2026年10月8日更新於 2026年10月8日

Implement the result of /to-spec and /to-tickets in code.

AI 產生的概覽

在單一整合分支上,用並行子代理依規格與工單實作程式碼。

功能
此技能接收一份規格及其相關工單,這些工單構成帶有阻塞關係的任務圖,並在一個整合分支上推進實作。它使用探索子代理收集程式庫或文件筆記,使用實作子代理在各自的工作樹與分支上開發,並使用合併子代理合併已完成的工作。最後在整合分支上執行程式碼審查、修正問題、依問題追蹤器的方式關閉工單並清理工作樹。
適用情境
適用於規格及其工單已經產出、需要將整份規格實作為程式碼的情境。也適合問題追蹤器透過工單或拉取請求關閉工作、並希望並行使用子代理實作的流程。
執行需求
需要提供規格與相關工單,以及一個問題追蹤器;若缺少追蹤器,會提示使用者執行設定指令。依賴子代理、git 工作樹與分支,以及用於 tdd 和 code-review 的 Skill 工具。不附帶指令碼。

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

The issue tracker should have been provided to you. If not, tell the user to run /setup-matt-pocock-skills.

The goal is the entire spec implemented on a single integration branch, with every ticket resolved the way the issue tracker closes work.

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 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 the integration branch. If the issue tracker closes work through PRs, or the user asks for one, open a draft PR after the first merge in step 5 (a branch with no commits ahead of main can't open one), marked as closing the spec and tickets.

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

    • confirms its worktree is based on the integration branch before starting, and resets onto it if not;
    • calls the Skill tool with tdd to build the ticket;
    • merges the integration branch tip into its own branch before reporting done
  5. Once an implementer subagent completes, merge its work to the integration 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, call the Skill tool with code-review on the integration branch. Fix all issues raised by the code review in a single implementer subagent.

  8. If a draft PR exists, mark it ready for review. Otherwise, resolve each ticket the way the issue tracker closes work, and report the integration branch.

  9. Clean up all implementer subagent worktrees.

來源與署名

來源:mattpocock/skills位於skills/engineering/implement-spec提交b0618bc

授權條款: 無授權條款

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

檢舉或申請下架