implement-spec
它能做什么
它接收已完成的需求说明及其工单,并在一个共享分支上构建整个功能。它适合已经准备好需求说明和工单的开发者。
适用场景
- ✓你有一份带工单的需求说明,希望整个功能都被构建出来的时候。
- ✓你希望按正确顺序处理几项相关任务的时候。
- ✓你希望在功能完成后,关闭所有工单的时候。
技能链接
https://github.com/mattpocock/skills/blob/main/skills/engineering/implement-spec/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请根据我们的需求说明和工单构建这个功能,并按正确的顺序逐项处理。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体把工单当作一张依赖关系图来阅读。它会派出辅助智能体处理已经具备条件的任务,然后把结果整合到一个集成分支上。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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.
Start every subagent with a fresh context window.
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
Read the spec and tickets to understand the task graph.
(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.
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.
Use a fresh implementer subagent for 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
tddto build the ticket; - merges the integration branch tip into its own branch before reporting done
Once an implementer subagent completes, merge its work to the integration branch with a merger subagent.
If this changes the frontier of available tickets, kick off more implementer subagents to work on the new tickets. This allows for maximum concurrency.
Once all tickets are complete, call the Skill tool with
code-reviewon the integration branch. Fix all issues raised by the code review in a single fresh implementer subagent.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.
Clean up all implementer subagent worktrees.
常见问题
使用这项技能之前需要准备什么?
需要一份需求说明和一组描述构建方式的工单,以及一个已连接的议题跟踪器。
多个工单可以同时推进吗?
可以。任何已经具备条件的工单都可以处理,而被阻塞的工单则依次等待。
完成的工作最终放在哪里?
放在一个集成分支上,每张工单都会按照你的议题跟踪器关闭工作的方式进行处理。
详情
热度
- GitHub 星标
- 310k
- 排名
- #103
- 许可证
- MIT
- 更新时间
- 2026/11/1
评论
- …