Skip to content
AI Skills Central

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

Agent Skill

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.

name: to-specBy 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 abeeaf9, the version we read, wherever the install method supports it.

npx skills

Terminal
npx skills add mattpocock/skills@abeeaf95660ba9e8b7c753eb38f441ca707a8823 --skill to-spec -a claude-code

Copies the skill 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 from its default branch, not the pinned commit; the official marketplace is available by default.

What it does

Turns a conversation you have already had with the agent into a written spec, without interviewing you again. The agent explores the repository if it has not yet, uses the project’s domain vocabulary and existing ADRs, and sketches the seams where the feature will be tested, preferring existing ones and as few as possible, which it checks with you. Then it writes the spec from a fixed template: problem statement and solution from the user’s point of view, a long numbered list of user stories, implementation decisions (modules, interfaces, schema changes, API contracts, but no file paths or code snippets that will go stale), testing decisions and an explicit out-of-scope list. Finally it publishes the spec to your issue tracker with a ready-for-agent label.

When to use it

After a long design discussion, or a grill-me session, when the decisions are made and need to be written down before an agent or a colleague builds them.

When to skip it

When the decisions are not made yet: it synthesises, it does not ask. Run a design conversation first. It also expects to know your issue tracker and labels; the skill says those come from a companion /setup-matt-pocock-skills step in the same repository, and without it the agent will ask you.

Try it

/to-spec

Run it at the end of the discussion. Before it publishes, read the user stories: the template asks for an “extremely extensive” list, and you may want to cut it.

What it can touch

Bundles scripts
No
Pre-approved tools
None declared
Needs
An issue tracker the agent can write to, set up 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 repository and writes to your issue tracker through whatever tool or CLI the setup configured, such as gh issue create. disable-model-invocation: true means Claude Code and Cursor only run it when you call it; that field is outside the open spec, so other agents may trigger it themselves and claude.ai will reject the upload. No scripts.

At commit abeeaf9 the SKILL.md is 75 lines long. Alongside it:

  • agents/ (1 entry)

Alternatives

Spec-driven development from Addy Osmani writes a spec through a guided process rather than from an existing conversation. Handoff from the same author captures session state for another agent rather than a spec for the tracker. Once the spec is filed, Plan to tickets breaks it into tickets with their blocking order.

SKILL.md

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

skills/engineering/to-spec/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.

2. 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.

3. 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>
  • Spec-driven development

    Addy Osmani's skill for writing a spec before code: scope check, capability map, objectives, commands, boundaries and success criteria, with V1 and V2 scoping.

    Addy OsmaniChecked at 8c99fa3

  • 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.

    Productivity and thinking toolsMatt PocockChecked at abeeaf9

  • Handoff (Matt Pocock)

    Writes a short handoff document from the current session so a fresh agent can pick up the work, saved to your temp folder with secrets redacted.

    Productivity and thinking toolsChecked at abeeaf9

  • Write a product requirements doc with AI

    Turn notes and customer quotes into an evidence table, draft goals, non-goals and acceptance criteria, get grilled, then check every claim.

    WorkflowBeginner1 h 35 min6 steps

  • Spec-driven development

    Writing a spec and plan before an agent implements, then checking against it.

    SkillIntermediate