to-spec
vinvcn/mattpocock-skills-zh-cn
Convert conversation context into a spec and publish to your project issue tracker.
What is to-spec?
This skill synthesizes your current conversation and codebase understanding into a structured specification document, then publishes it to your project's issue tracker. It does not conduct interviews—only consolidates what you've already discussed. Use it when you're ready to formalize feature requirements based on existing context.
- Explores the repository to understand current codebase state and domain vocabulary
- Drafts testing seams for the feature, prioritizing existing seams over new ones
- Generates a comprehensive spec using the provided template with problem statement, solution, and user stories
- Applies the ready-for-agent triage label and publishes directly to your issue tracker
- Includes implementation decisions, testing decisions, and out-of-scope sections in the spec
How to install to-spec
npx skills add https://github.com/vinvcn/mattpocock-skills-zh-cn --skill to-spec- Issue tracker integration configured in your project
- Triage label vocabulary already provided (or run /setup-matt-pocock-skills)
- Existing conversation context about the feature to synthesize
How to use to-spec
- 1.Ensure your repository is accessible and your issue tracker is configured
- 2.Run the skill after you've discussed the feature requirements in conversation
- 3.The skill will explore your codebase to understand current state and vocabulary
- 4.Review the generated spec with testing seams before publication
- 5.Confirm the seams align with your expectations
- 6.The spec is automatically published to your issue tracker with the ready-for-agent label
Use cases
- Formalizing feature requirements after team discussion without additional interviews
- Converting informal conversation context into a tracked specification in your issue tracker
- Documenting architectural and implementation decisions made during development planning
- Creating comprehensive user stories that cover all aspects of a planned feature
- Establishing testing strategy and seams before implementation begins
- Development teams using issue trackers for feature planning
- Agents working with codebases that have established domain vocabulary and ADRs
- Teams that want to avoid redundant interviews by synthesizing existing context
- Projects using the matt-pocock-skills setup with configured triage labels
to-spec FAQ
No. It only synthesizes content from your current conversation and codebase understanding. It does not ask clarifying questions.
Run /setup-matt-pocock-skills to configure the issue tracker and triage label vocabulary for your project.
The skill uses a standard template with sections for problem statement, solution, user stories, implementation decisions, testing decisions, and out-of-scope items. Customization would require modifying the skill itself.
Ideally one seam. The skill prioritizes existing seams over new ones and uses the highest-level seams possible to minimize complexity.
The skill avoids file paths and code snippets unless a prototype snippet more precisely encodes a decision (like a state machine or schema). Only decision-dense portions are included.
Full instructions (SKILL.md)
Source of truth, from vinvcn/mattpocock-skills-zh-cn.
name: to-spec description: "把当前对话转成 spec 并发布到项目 issue tracker——不做访谈,只综合已经讨论的内容。" disable-model-invocation: true
这个 skill 使用当前 conversation context 和 codebase understanding 产出 spec。不要访谈用户,只综合你已经知道的内容。
Issue tracker 和 triage label vocabulary 应该已经提供给你;如果没有,请让用户运行 /setup-matt-pocock-skills。
Process
-
如果还没有探索 repo,先探索它以理解 codebase 当前状态。在 spec 中始终使用项目 domain glossary vocabulary,并遵守相关 ADRs。
-
草拟你准备在哪些 seams 上测试这个 feature。优先使用现有 seams,而不是新增 seams。使用尽可能高层的 seam。如果确实需要新增 seams,尽可能在最高层提出。
Seams 越少越好,理想数量是一个。与用户确认这些 seams 是否符合预期。
- 使用下面模板写 spec,并发布到项目 issue tracker。应用
ready-for-agenttriage label;不需要额外 triage。
Problem Statement
用户正在面对的问题,从用户视角描述。
Solution
问题的解决方案,从用户视角描述。
User Stories
一份很长的编号 user stories 列表。每条 user story 使用以下格式:
- As an <actor>, I want a <feature>, so that <benefit>
这份 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>Related skills
More from vinvcn/mattpocock-skills-zh-cn and the wider catalog.

to-tickets
Break plans, specs, or conversations into tracer-bullet tickets with blocking dependencies for your issue tracker.

triage
Triage issues and PRs through a state machine of roles, verify claims, and generate agent-ready briefs.

ubiquitous-language
Extract and formalize domain terminology from conversations into a DDD-style ubiquitous language glossary.

wait-what
Pause and clarify: restate unclear messages using simplified technical English.

wayfinder
Break large projects into decision tickets on an issue tracker, resolving them systematically until the path to your goal is clear.

wizard
Generate interactive bash wizards to guide users through manual-only processes step-by-step.