Skip to content
AI Skills Central

Type to search Agent Skills, workflows, tutorials, tools and the glossary.

Agent Skill

Plan to tickets (Matt Pocock)

Splits a plan or spec into thin end-to-end tickets, each naming the tickets that block it, checks the breakdown with you, then files them in your tracker.

name: to-ticketsBy Matt PocockChecked
View source on GitHub
Bookmark

Bookmarks are kept in your free account, so you can find this page again on any device.

Sign in to bookmark

Install

Commands are pinned to commit d653911, the version we read, wherever the install method supports it.

npx skills

Terminal
npx skills add mattpocock/skills@d65391149dbb5fe76478e76fa8d5122b2aa5a70e --skill to-tickets --skill setup-matt-pocock-skills -a claude-code

Copies both skills into .claude/skills/ in this project, pinned to the reviewed commit.

Plugin marketplace

Claude Code prompt
/plugin install mattpocock-skills@claude-plugins-official

Run inside Claude Code. Installs the whole mattpocock-skills plugin, setup skill included, from its default branch, not the pinned commit; the official marketplace is available by default.

What it does

You run it yourself, as /to-tickets in Claude Code or $to-tickets in Codex, at the end of a planning conversation or with a spec or issue as the argument. The agent reads the plan, looks through the codebase if it has not already, and drafts “tracer bullet” tickets: each one a thin slice through every layer (schema, API, UI, tests) that can be demonstrated on its own and fits in one fresh context window. Every ticket lists its blocking edges, the tickets that must finish before it can start, so anything with no blockers can be picked up straight away.

It then shows you the breakdown as a numbered list and asks three questions: is the granularity right, are the blocking edges real, should anything be merged or split. Only after you approve does it publish: one Markdown file per ticket under .scratch/<feature>/issues/ if you track work locally, or one issue per ticket on GitHub or another tracker, in dependency order so later tickets can reference earlier ones, using the tracker’s native “blocked by” link where there is one and the ready-for-agent label. Large mechanical renames get an expand, migrate and contract sequence instead of vertical slices, because no single slice can land green.

When to use it

After you have a plan you trust: the output of a grill me session, a spec from to-spec, or an issue with a long description. It turns “build the export feature” into five or six tickets you could hand to different people or to background agents in parallel, with the order already worked out. The approval step is the useful part for a team lead: you see the whole breakdown and its dependencies before anything lands in the tracker.

When to skip it

When the plan is still moving; tickets written from a half-made decision get rewritten. Skip it for work that fits in one pull request, and on teams whose tracker has its own conventions for epics, estimates and fields, which this skill does not fill in. It writes “What to build”, acceptance criteria and blockers, nothing more, and deliberately avoids file paths so tickets do not go stale.

Try it

/to-tickets docs/specs/csv-export.md
We track work in GitHub Issues on acme/billing. Keep each ticket small
enough for one agent session, and make the permissions change its own
ticket that everything else waits on.

What it can touch

Bundles scripts
No
Pre-approved tools
None declared
Needs
An issue tracker the agent can write to (GitHub through gh, GitLab through glab, or local Markdown files), recorded by the companion setup skill
Client-specific fields
disable-model-invocation

claude.ai and the Claude API reject uploads that use fields outside the open spec or names containing "claude" or "anthropic", so this skill needs editing before you upload it there.

Its instructions steer what your agent does, and it may have changed since the commit we read. How to check a skill.

It reads the conversation, the spec or issue you name (including its comments) and the repository. After you approve, it creates issues through whatever CLI the setup recorded, such as gh issue create, sets blocking links and the ready-for-agent label, or writes files under .scratch/. It is told not to close or edit a parent issue. No scripts and no allowed-tools.

disable-model-invocation: true is outside the open spec. Claude Code and Cursor honour it, and Codex gets the same effect from agents/openai.yaml; other agents may trigger the skill on their own, so check before it files issues you did not ask for. The claude.ai upload rejects unknown keys, which is why there is no upload command.

At commit d653911 the SKILL.md is 105 lines long. Alongside it:

  • agents/ (1 entry): openai.yaml, Codex display metadata that also sets allow_implicit_invocation: false, so Codex only runs it when you call it.

The ticket templates, for local files and for tracker issues, are inside the SKILL.md. Which tracker to use comes from the separate setup-matt-pocock-skills skill, which writes docs/agents/issue-tracker.md once per repository; without it, the skill tells you to run the setup first.

Alternatives

To-spec from the same author writes the spec this skill breaks down, and the two are designed to run in that order. Writing plans from Superpowers produces a single step-by-step implementation plan in a file rather than tracker tickets. For the whole flow from idea to merged pull request, see the spec-driven feature build workflow.

SKILL.md

The file exactly as published at the reviewed commit, reproduced under its MIT licence.

skills/engineering/to-tickets/SKILL.md
---
name: to-tickets
description: 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.
  • To spec (Matt Pocock)

    Turns what you have already discussed with the agent into a written spec with user stories and decisions, and files it in your issue tracker.

    Engineering workflowChecked at abeeaf9

  • Grill me

    A user-invoked interview that questions you in rounds until a loose idea becomes a plan you can commit to. Needs the companion grilling skill.

    Matt PocockChecked at abeeaf9

  • Writing plans

    obra's Superpowers skill that turns a spec into a step-by-step implementation plan with right-sized tasks, exact files and test steps, before any code.

    Engineering workflowJesse Vincent (obra)Checked at 22f0b46