跳到正文
Skillpedia
通用编程310k · #103

implement-spec

它能做什么

它接收已完成的需求说明及其工单,并在一个共享分支上构建整个功能。它适合已经准备好需求说明和工单的开发者。

适用场景

  • ✓你有一份带工单的需求说明,希望整个功能都被构建出来的时候。
  • ✓你希望按正确顺序处理几项相关任务的时候。
  • ✓你希望在功能完成后,关闭所有工单的时候。

技能链接

https://github.com/mattpocock/skills/blob/main/skills/engineering/implement-spec/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/mattpocock/skills/blob/main/skills/engineering/implement-spec/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

  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 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 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 fresh 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.

常见问题

使用这项技能之前需要准备什么?

需要一份需求说明和一组描述构建方式的工单,以及一个已连接的议题跟踪器。

多个工单可以同时推进吗?

可以。任何已经具备条件的工单都可以处理,而被阻塞的工单则依次等待。

完成的工作最终放在哪里?

放在一个集成分支上,每张工单都会按照你的议题跟踪器关闭工作的方式进行处理。

详情

作者的原始描述

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

repo: mattpocock/skills

热度

GitHub 星标
310k
排名
#103
许可证
MIT
更新时间
2026/11/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能