/to-spec
把当前对话转成 spec 并发布到项目 issue tracker——不做访谈,只综合已经讨论的内容。
$ npx -y skills add vinvcn/mattpocock-skills-zh-cn --skill to-spec --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/to-spec
Context preview
The summary Claude sees to decide when to auto-load this skill.
把当前对话转成 spec 并发布到项目 issue tracker——不做访谈,只综合已经讨论的内容。
SKILL.md
to-spec.SKILL.mdname: to-spec
description: 把当前对话转成 spec 并发布到项目 issue tracker——不做访谈,只综合已经讨论的内容。
disable-model-invocation: true
这个 skill 使用当前 conversation context 和 codebase understanding 产出 spec(你可能把这种文档称为 PRD)。**不要**访谈用户,只综合你已经知道的内容。
Issue tracker 和 triage label vocabulary 应该已经提供给你;如果没有,运行 `/setup-matt-pocock-skills`。
Process
1. 如果还没有探索 repo,先探索它以理解 codebase 当前状态。在 spec 中始终使用项目 domain glossary vocabulary,并遵守相关 ADRs。
2. 草拟你准备在哪些 seams 上测试这个 feature。优先使用现有 seams,而不是新增 seams。使用尽可能高层的 seam。如果确实需要新增 seams,尽可能在最高层提出。
Seams 越少越好,理想数量是一个。与用户确认这些 seams 是否符合预期。
3. 使用下面模板写 spec,并发布到项目 issue tracker。应用 `ready-for-agent` triage label;不需要额外 triage。
<spec-template>
Problem Statement
用户正在面对的问题,从用户视角描述。
Solution
问题的解决方案,从用户视角描述。
User Stories
一份很长的编号 user stories 列表。每条 user story 使用以下格式:
1. As an <actor>, I want a <feature>, so that <benefit>
<user-story-example> 1. As a mobile bank customer, I want to see balance on my accounts, so that I can make better informed decisions about my spending </user-story-example>
这份 user stories 列表应该非常完整,覆盖 feature 的所有方面。
Implementation Decisions
已作出的 implementation decisions 列表。可以包括:
- 将 build/modify 的 modules
- 将 modify 的 module interfaces
- 来自 developer 的技术澄清
- Architectural decisions
- Schema changes
- API contracts
- Specific interactions
不要包含具体 file paths 或 code snippets。它们可能很快过时。
例外:如果 prototype 产出的 snippet 比 prose 更精确地编码了某个决策(state machine、reducer、schema、type shape),可以内联到相关 decision 中,并简短说明它来自 prototype。只保留决策密集部分,不要放完整 working demo。
Testing Decisions
已作出的 testing decisions 列表。包括:
- 什么是好测试的描述(只测试 external behavior,不测试 implementation details)
- 哪些 modules 会被测试
- 测试的 prior art(即 codebase 中类似类型的 tests)
Out of Scope
本 spec 范围外事项的描述。
Further Notes
关于 feature 的其他 notes。
</spec-template>
Read more
name: to-spec description: 把当前对话转成 spec 并发布到项目 issue tracker——不做访谈,只综合已经讨论的内容。 disable-model-invocation: true
这个 skill 使用当前 conversation context 和 codebase understanding 产出 spec(你可能把这种文档称为 PRD)。**不要**访谈用户,只综合你已经知道的内容。
Issue tracker 和 triage label vocabulary 应该已经提供给你;如果没有,运行 `/setup-matt-pocock-skills`。
Process
1. 如果还没有探索 repo,先探索它以理解 codebase 当前状态。在 spec 中始终使用项目 domain glossary vocabulary,并遵守相关 ADRs。
2. 草拟你准备在哪些 seams 上测试这个 feature。优先使用现有 seams,而不是新增 seams。使用尽可能高层的 seam。如果确实需要新增 seams,尽可能在最高层提出。
Seams 越少越好,理想数量是一个。与用户确认这些 seams 是否符合预期。
3. 使用下面模板写 spec,并发布到项目 issue tracker。应用 `ready-for-agent` triage label;不需要额外 triage。
<spec-template>
Problem Statement
用户正在面对的问题,从用户视角描述。
Solution
问题的解决方案,从用户视角描述。
User Stories
一份很长的编号 user stories 列表。每条 user story 使用以下格式:
1. As an <actor>, I want a <feature>, so that <benefit>
<user-story-example> 1. As a mobile bank customer, I want to see balance on my accounts, so that I can make better informed decisions about my spending </user-story-example>
这份 user stories 列表应该非常完整,覆盖 feature 的所有方面。
Implementation Decisions
已作出的 implementation decisions 列表。可以包括:
- 将 build/modify 的 modules
- 将 modify 的 module interfaces
- 来自 developer 的技术澄清
- Architectural decisions
- Schema changes
- API contracts
- Specific interactions
不要包含具体 file paths 或 code snippets。它们可能很快过时。
例外:如果 prototype 产出的 snippet 比 prose 更精确地编码了某个决策(state machine、reducer、schema、type shape),可以内联到相关 decision 中,并简短说明它来自 prototype。只保留决策密集部分,不要放完整 working demo。
Testing Decisions
已作出的 testing decisions 列表。包括:
- 什么是好测试的描述(只测试 external behavior,不测试 implementation details)
- 哪些 modules 会被测试
- 测试的 prior art(即 codebase 中类似类型的 tests)
Out of Scope
本 spec 范围外事项的描述。
Further Notes
关于 feature 的其他 notes。
</spec-template>
Repo: vinvcn/mattpocock-skills-zh-cn
Other skills on mattpocock-skills.
- /ask-matt
询问当前情境适合哪个技能或流程;它是本仓库所有 skills 的路由器。
Open skill - /code-review
从固定点(commit、branch、tag 或 merge-base)开始,按 Standards(代码是否符合本仓库记录的编码标准?)和 Spec(代码是否符合来源 issue/PRD 的要求?)两个轴线审查变更。两个审查会在并行子代理中运行,并并排报告。适用于用户想审查 branch、PR、进行中的变更,或要求 “review since X” 时。
Open skill - /codebase-design
用于设计深模块的共享词汇。适用于用户想设计或改进模块接口、寻找深化机会、决定 seam 放在哪里、让代码更容易测试或更适合 AI 导航,或其他技能需要深模块词汇时。
Open skill - /diagnosing-bugs
面向棘手缺陷和性能回退的诊断循环。适用于用户说 “diagnose” / “debug this”,或报告某些东西 broken、throwing、failing、slow 时。
Open skill - /domain-modeling
构建并打磨项目的领域模型。适用于用户想明确领域术语或通用语言、记录架构决策,或其他技能需要维护领域模型时。
Open skill - /grill-with-docs
一个用来打磨计划或设计的持续追问式访谈,并在过程中创建文档(ADRs 和词汇表)。
Open skill

