to-spec
Agent skill fromvinvcn/mattpocock-skills-zh-CN
把当前对话转成 spec 并发布到项目 issue tracker:不做访谈,只综合已经讨论的内容。
How to install to-spec
install to-spec
# install the mattpocock-skills-zh-CN pack with the skills CLI
npx skills add vinvcn/mattpocock-skills-zh-CN# or add only this skill to Claude Code: copy the folder
skills/engineering/to-spec/
# into
~/.claude/skills/to-spec/ (all projects)
.claude/skills/to-spec/ (one project)
1这个 skill 使用当前 conversation context 和 codebase understanding 产出 spec。**不要**访谈用户,只综合你已经知道的内容。23Issue tracker 和 triage label vocabulary 应该已经提供给你;如果没有,请让用户运行 `/setup-matt-pocock-skills`。45## 流程671. 如果还没有探索 repo,先探索它以理解 codebase 当前状态。在 spec 中始终使用项目 domain glossary vocabulary,并遵守相关 ADRs。892. 草拟你准备在哪些 seams 上测试这个 feature。优先使用现有 seams,而不是新增 seams。使用尽可能高层的 seam。如果确实需要新增 seams,尽可能在最高层提出。1011Seams 越少越好,理想数量是一个。与用户确认这些 seams 是否符合预期。12133. 使用下面模板写 spec,并发布到项目 issue tracker。应用 `ready-for-agent` triage label;不需要额外 triage。1415<spec-template>1617## Problem Statement1819用户正在面对的问题,从用户视角描述。2021## Solution2223问题的解决方案,从用户视角描述。2425## User Stories2627一份很长的编号 user stories 列表。每条 user story 使用以下格式:28291. As an <actor>, I want a <feature>, so that <benefit>3031<user-story-example>321. As a mobile bank customer, I want to see balance on my accounts, so that I can make better informed decisions about my spending33</user-story-example>3435这份 user stories 列表应该非常完整,覆盖 feature 的所有方面。3637## Implementation Decisions3839已作出的 implementation decisions 列表。可以包括:4041- 将 build/modify 的 modules42- 将 modify 的 module interfaces43- 来自 developer 的技术澄清44- Architectural decisions45- Schema changes46- API contracts47- Specific interactions4849不要包含具体 file paths 或 code snippets。它们可能很快过时。5051例外:如果 prototype 产出的 snippet 比 prose 更精确地编码了某个决策(state machine、reducer、schema、type shape),可以内联到相关 decision 中,并简短说明它来自 prototype。只保留决策密集部分,不要放完整 working demo。5253## Testing Decisions5455已作出的 testing decisions 列表。包括:5657- 什么是好测试的描述(只测试 external behavior,不测试 implementation details)58…
Excerpt shown under the repository's MIT license.
