to-tickets
To Tickets
Section titled “To Tickets”把计划、规格或当前会话整理成一组「示踪弹」工单。每个工单都要注明哪些工单会阻塞它,并发布到已配置的工单跟踪器中。阻塞关系可以写在本地每个工单的文件里,也可以在实际跟踪器中使用原生阻塞链接。
问题跟踪器和分诊标签词汇应该已经提供给你。如果没有,请告诉用户运行 /setup-matt-pocock-skills。
1. 收集上下文
Section titled “1. 收集上下文”根据当前会话里已有的上下文开展工作。如果用户通过参数提供了参考资料(规格文件路径、issue 编号或 URL),就获取并阅读完整正文和评论。
2. 探索代码库(可选)
Section titled “2. 探索代码库(可选)”如果你还没有探索过代码库,就先了解当前代码状态。工单标题和描述应使用项目领域术语表中的词汇,并遵循相关领域的架构决策记录。
留意能否先调整代码结构,让实现更容易。「先让改动变容易,再做容易的改动。」
3. 拟定垂直切片
Section titled “3. 拟定垂直切片”把工作拆分成「示踪弹」工单。
- 每个切片都要贯通每一层,形成一条范围小但完整的路径(数据结构、API、界面、测试):做垂直切片,不要只做某一层的横向切片。
- 每个切片完成后,都能单独演示或验证。
- 每个切片的规模都要能在一个全新的上下文窗口里完成。
- 任何预先调整代码结构的工作都应先完成。
给每个工单标明阻塞关系:哪些其他工单必须先完成,它才能开始。没有阻塞项的工单可以立即开始。
「大范围重构」是垂直切片的例外。「大范围重构」指一项机械性改动(例如重命名列、修改共享符号的类型),影响范围会扩散到整个代码库,导致一次编辑就会破坏成千上万个调用点,因此无法让任何垂直切片单独通过。不要硬拆成示踪弹;要按「扩展—收缩」的顺序安排。先扩展:在旧形式旁边添加新形式,确保现有功能不受影响。再分批迁移调用点,每批按影响范围划分(例如每个包或目录一个批次),每批作为一个工单,并依赖扩展工单。旧形式仍然存在,所以每批完成后 CI 都应保持通过。最后收缩:等所有调用点迁移完后,再删除旧形式;这个工单依赖所有迁移批次。如果连这些批次也无法单独保持通过,就保留这个顺序,但让它们共用一个集成分支,并都依赖最后的集成与验证工单;只有到那一步,才能保证全部通过。
4. 请用户确认拆分方案
Section titled “4. 请用户确认拆分方案”用编号列表展示拟定的拆分。每个工单都要说明:
- 标题:简短明确的名称
- 阻塞项:必须先完成的其他工单(如有)
- 交付内容:这个工单会让哪些端到端行为可用
询问用户:
- 工单拆分的粒度合适吗?(太粗 / 太细)
- 阻塞关系正确吗?每个工单是否只依赖真正会卡住它的工单?
- 是否要合并某些工单,或进一步拆分?
反复调整,直到用户批准这份拆分方案。
5. 将工单发布到已配置的跟踪器
Section titled “5. 将工单发布到已配置的跟踪器”发布已批准的工单。具体方式取决于 /setup-matt-pocock-skills 配置的跟踪器;工单内容相同,只有阻塞关系的表达方式不同:
- 本地文件 → 在
.scratch/<feature-slug>/issues/<NN>-<slug>.md下,每个工单写一个文件,按依赖顺序从01编号(先写阻塞项)。每个文件的「阻塞项」列出它依赖的编号和标题。使用下面的单工单文件模板,不能把多个工单放进同一个文件。
:<工单标题>
Section titled “:<工单标题>”要交付什么: 从用户角度描述这个工单会实现的端到端行为,而不是按层罗列实现步骤。
阻塞项: 会卡住这个工单的编号和标题;如果没有,则写「无(可立即开始)」。
状态: ready-for-agent
- 验收标准 1
- 验收标准 2
填写跟踪器中父 issue 的引用(如果来源是已有 issue;否则省略本节)。
从用户角度描述这个工单会实现的端到端行为,而不是按层罗列实现。
- 标准 1
- 标准 2
- 引用每个阻塞工单;如果没有,则写「无(可立即开始)」。
按照「前沿」推进:阻塞项都已完成的工单就可以开始。纯线性依赖链从上到下推进即可。
不要关闭或修改任何父 issue。
无论使用哪种模板,都要避免写具体文件路径或代码片段,因为它们很容易过时。例外:如果 prototype 产出的代码片段能比文字更准确地表达某项决定(例如状态机、reducer、数据结构),可以直接放进去,并简短说明它来自 prototype。只保留能体现关键决策的部分,不要放完整的演示内容。
原文链接和 commit
Section titled “原文链接和 commit”读者要自己输入 /to-tickets 才会用到它。它在 Claude Code 插件里。
把计划、规格或会话拆成可独立交付的垂直切片工单,标明阻塞关系,经用户确认后发布到已配置的跟踪器。
Break a plan, spec, or the current conversation into a set of tracer-bullet tickets, each declaring its blocking edges, published to the configured tracker (edges as text in one file per ticket locally, or native blocking links on a real tracker).- 仓库 mattpocock/skills
- 文件
skills/engineering/to-tickets/SKILL.md - 提交
d81f3a1 - 说明页
docs/engineering/to-tickets.md - 同目录文件
skills/engineering/to-tickets/agents/openai.yaml
英文 SKILL.md
---name: to-ticketsdescription: Break a plan, spec, or the current conversation into a set of tracer-bullet tickets, each declaring its blocking edges, published to the configured tracker (edges as text in one file per ticket locally, or native blocking links on a real tracker).disable-model-invocation: true---
# To Tickets
Break a plan, spec, or conversation into a set of **tickets**: tracer-bullet vertical slices, each declaring the tickets that **block** it.
The issue tracker and triage label vocabulary should have been provided to you. If not, tell the user to run `/setup-matt-pocock-skills`.
## Process
### 1. Gather context
Work from whatever is already in the conversation context. If the user passes a reference (a spec path, an issue number or URL) as an argument, fetch it and read its full body and comments.
### 2. Explore the codebase (optional)
If you have not already explored the codebase, do so to understand the current state of the code. Ticket titles and descriptions should use the project's domain glossary vocabulary, and respect ADRs in the area you're touching.
Look for opportunities to prefactor the code to make the implementation easier. "Make the change easy, then make the easy change."
### 3. Draft vertical slices
Break the work into **tracer bullet** tickets.
<vertical-slice-rules>
- Each slice cuts a narrow but COMPLETE path through every layer (schema, API, UI, tests): vertical, NOT a horizontal slice of one layer- A completed slice is demoable or verifiable on its own- Each slice is sized to fit in a single fresh context window- Any prefactoring should be done first
</vertical-slice-rules>
Give each ticket its **blocking edges**: the other tickets that must complete before it can start. A ticket with no blockers can start immediately.
**Wide refactors are the exception to vertical slicing.** A **wide refactor** is one mechanical change (rename a column, retype a shared symbol) whose **blast radius** fans across the whole codebase, so a single edit breaks thousands of call sites at once and no vertical slice can land green. Don't force it into a tracer bullet; sequence it as **expand–contract**. First expand: add the new form beside the old so nothing breaks. Then migrate the call sites over in batches sized by blast radius (per package, per directory), each batch its own ticket blocked by the expand, keeping CI green batch to batch because the old form still exists. Finally contract: delete the old form once no caller remains, in a ticket blocked by every migrate batch. When even the batches can't stay green alone, keep the sequence but let them share an integration branch that all block a final integrate-and-verify ticket; green is promised only there.
### 4. Quiz the user
Present the proposed breakdown as a numbered list. For each ticket, show:
- **Title**: short descriptive name- **Blocked by**: which other tickets (if any) must complete first- **What it delivers**: the end-to-end behaviour this ticket makes work
Ask the user:
- Does the granularity feel right? (too coarse / too fine)- Are the blocking edges correct: does each ticket only depend on tickets that genuinely gate it?- Should any tickets be merged or split further?
Iterate until the user approves the breakdown.
### 5. Publish the tickets to the configured tracker
Publish the approved tickets. **How** depends on the tracker `/setup-matt-pocock-skills` configured; the tickets are the same either way, only the shape of the blocking edges changes:
- **Local files** → write one file per ticket under `.scratch/<feature-slug>/issues/<NN>-<slug>.md`, numbered from `01` in dependency order (blockers first). Each file's "Blocked by" lists the numbers/titles it depends on. Use the per-ticket file template below: one ticket per file, never a single combined file.- **A real issue tracker (GitHub, Linear, …)** → publish one issue per ticket in dependency order (blockers first) so each ticket's blocking edges can reference real identifiers. Use the platform's native blocking relationship where it has one; otherwise set each ticket's "Blocked by" to the blocking issues. If the source was an existing issue, make each ticket its sub-issue (tracker doc's operation). Apply the `ready-for-agent` triage label unless instructed otherwise; the tickets are agent-grabbable by construction.
Work the **frontier**: any ticket whose blockers are all done. For a purely linear chain that means top to bottom.
Do NOT close or modify any parent issue.
<local-ticket-template>
# <NN>: <Ticket title>
**What to build:** the end-to-end behaviour this ticket makes work, from the user's perspective, not a layer-by-layer implementation list.
**Blocked by:** the numbers/titles of the tickets that gate this one, or "None (can start immediately)".
**Status:** ready-for-agent
- [ ] Acceptance criterion 1- [ ] Acceptance criterion 2
</local-ticket-template>
<issue-template>
## Parent
A reference to the parent issue on the tracker (if the source was an existing issue, otherwise omit this section).
## What to build
The end-to-end behaviour this ticket makes work, from the user's perspective, not layer-by-layer implementation.
## Acceptance criteria
- [ ] Criterion 1- [ ] Criterion 2
## Blocked by
- A reference to each blocking ticket, or "None (can start immediately)". Omit this section when blockers were set as native edges.
</issue-template>
In either form, avoid specific file paths or code snippets: they go stale fast. Exception: if a prototype produced a snippet that encodes a decision more precisely than prose can (state machine, reducer, schema, type shape), inline it and note briefly that it came from a prototype. Trim to the decision-rich parts, not a working demo, just the important bits.非官方学习站,与 Matt Pocock 和 AI Hero 没有隶属关系。本站不提供可安装的中文技能包。
技能原文采用 MIT 许可。Copyright (c) 2026 Matt Pocock