Skip to content
To Spec

To Spec Skill

Matt Pocock's skill that turns what you have already discussed with your agent into a written spec and files it on the project's issue tracker, without a second round of interview questions.

GitHub Docs

Install

Install with the skills CLI

One command for Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf and dozens of other agents. Needs Node.js; the skill is fetched straight from mattpocock/skills.

$ npx skills add mattpocock/skills --skill to-spec

Run it in a terminal. The CLI finds the agents installed on your machine, asks which ones to add the skill to, and whether to install it into the folder you ran it from or for all your projects.

Other ways to install

Copy the whole skill folder — SKILL.md and any scripts or references beside it — into ~/.claude/skills/to-spec/, where Claude Code picks it up in every project. Only git is needed.

tmp=$(mktemp -d) && \
  git clone --depth 1 --branch main https://github.com/mattpocock/skills.git "$tmp" && \
  mkdir -p ~/.claude/skills && \
  cp -R "$tmp"/skills/engineering/to-spec ~/.claude/skills/to-spec

No scripts or references next to it? Saving the SKILL.md alone as ~/.claude/skills/to-spec/SKILL.md works too.

Using another agent? Its personal skills folder
Codex
~/.agents/skills/
Cursor
~/.cursor/skills/
GitHub Copilot
~/.copilot/skills/
Gemini CLI
~/.gemini/skills/
Windsurf
~/.codeium/windsurf/skills/
OpenCode
~/.config/opencode/skills/

About

  • Synthesises the current conversation: no new interview
  • Proposes testing seams and confirms them with you first
  • Fixed template: problem, solution, user stories, implementation and testing decisions, out of scope
  • Uses the project's domain glossary and respects ADRs
  • Publishes to the configured issue tracker with the ready-for-agent label
  • Leaves out file paths and code snippets that would go stale

To Spec is the hand-off step in Matt Pocock's engineering skill set. Once a feature has been talked through in a session, you invoke it yourself (the skill is marked as user-invoked only) and the agent writes up what it already knows instead of asking more questions.

It first explores the repository, using the project's domain glossary and respecting any architecture decision records in the area being changed. It then proposes the testing seams for the feature, preferring existing ones and the highest seam possible, and checks them with you. The spec itself follows a fixed template: problem statement, solution, an extensive numbered list of user stories in "As an <actor>, I want…, so that…" form, implementation decisions, testing decisions, out of scope and further notes. File paths and code snippets are deliberately left out because they go stale; the one exception is a prototype snippet that pins a decision down more precisely than prose.

The finished spec is published to the configured issue tracker with the ready-for-agent label. The tracker and label vocabulary come from the collection's /setup-matt-pocock-skills step, so install that first. Pairs naturally with To Tickets, which breaks a spec into implementable slices.

SKILL.md

The instructions your agent loads, as published by Matt Pocock.

SKILL.md
name
to-spec
description
Turn the current conversation into a spec and publish it to the project issue tracker: no interview, just synthesis of what you've already discussed.
disable-model-invocation
true

This skill takes the current conversation context and codebase understanding and produces a spec. Do NOT interview the user; just synthesize what you already know.

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. Explore the repo to understand the current state of the codebase, if you haven't already. Use the project's domain glossary vocabulary throughout the spec, and respect any ADRs in the area you're touching.
  1. Sketch out the seams at which you're going to test the feature. Existing seams should be preferred to new ones. Use the highest seam possible. If new seams are needed, propose them at the highest point you can. The fewer seams across the codebase, the better - the ideal number is one.

Check with the user that these seams match their expectations.

  1. Write the spec using the template below, then publish it to the project issue tracker. Apply the ready-for-agent triage label - no need for additional triage.

<spec-template>

Problem Statement

The problem that the user is facing, from the user's perspective.

Solution

The solution to the problem, from the user's perspective.

User Stories

A LONG, numbered list of user stories. Each user story should be in the format of:

  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>

This list of user stories should be extremely extensive and cover all aspects of the feature.

Implementation Decisions

A list of implementation decisions that were made. This can include:

  • The modules that will be built/modified
  • The interfaces of those modules that will be modified
  • Technical clarifications from the developer
  • Architectural decisions
  • Schema changes
  • API contracts
  • Specific interactions

Do NOT include specific file paths or code snippets. They may end up being outdated very quickly.

Exception: if a prototype produced a snippet that encodes a decision more precisely than prose can (state machine, reducer, schema, type shape), inline it within the relevant decision and note briefly that it came from a prototype. Trim to the decision-rich parts, not a working demo, just the important bits.

Testing Decisions

A list of testing decisions that were made. Include:

  • A description of what makes a good test (only test external behavior, not implementation details)
  • Which modules will be tested
  • Prior art for the tests (i.e. similar types of tests in the codebase)
Out of Scope

A description of the things that are out of scope for this spec.

Further Notes

Any further notes about the feature.

</spec-template>

Install

Skill: Wayfinder

by Matt Pocock

New

Matt Pocock's planning skill for work too big for one agent session: it charts a shared map of decision tickets on your issue tracker and resolves them one per session until the route to the goal is clear.

Skill: To Tickets

by Matt Pocock

New

Matt Pocock's skill for breaking a plan, spec or conversation into tracer-bullet tickets, each a thin end-to-end slice with explicit blocking edges, published to your issue tracker or as local files.

Skill: Triage

by Matt Pocock

New

Matt Pocock's /triage skill: moves issues and external PRs through a label state machine, verifies claims, grills vague requests and writes agent-ready briefs.

Skill: Prototype

by Matt Pocock

New

Matt Pocock's skill for throwaway prototypes that answer one design question: a single-file HTML walkthrough for state models and logic, or several switchable UI variations on one route.

Browse all skills →