To Spec skill for Claude

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.

To Spec SKILL.md

The full skill file from mattpocock/skills (MIT).

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.

  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>

How to install To Spec

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit mattpocock/skills/skills/engineering/to-spec#main ~/.claude/skills/to-spec

Codex

npx degit mattpocock/skills/skills/engineering/to-spec#main ~/.codex/skills/to-spec

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the To Spec skill do?

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.

+How do I install To Spec in Claude Code?

Copy the skill folder into ~/.claude/skills/to-spec, for example with "npx degit mattpocock/skills/skills/engineering/to-spec#main ~/.claude/skills/to-spec". Claude Code loads it automatically and uses it when a task matches.

+Does To Spec work with ChatGPT or Codex?

Yes. To Spec uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/to-spec. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is To Spec free?

To Spec is published on GitHub by mattpocock under the MIT license, which allows free use.

Related software development skills

  1. Code Review

    Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes: Standards (does the code follow this repo's…

    mattpocock/skills★ 327k
  2. Using Agent Skills

    Discovers and invokes agent skills. Use when starting a session, or when you need to decide which skill or workflow applies to the piece of…

    addyosmani/agent-skills★ 119k
  3. Build

    Fully automate a coding task with make-plan, do, and babysit.

    thedotmack/claude-mem★ 118k
  4. Diagnosing Superpowers

    Use when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results,…

    obra/superpowers★ 319k
  5. Requesting Code Review

    Use when completing tasks, implementing major features, or before merging to verify work meets requirements

    obra/superpowers★ 319k
  6. Using Git Worktrees

    Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated…

    obra/superpowers★ 319k
  7. Template Skill

    Official

    Replace with description of the skill and when Claude should use it.

    anthropics/skills★ 197k
  8. Caveman Commit

    Write a Conventional Commits message compressed to intent only. Use for "write a commit", "commit message", /commit or /caveman-commit.

    JuliusBrussee/caveman★ 121k
  9. Lean Build

    Build feature work with high overbuilding risk. Use for new behavior, product slices, or integrations where repository reuse, strict scope,…

    JuliusBrussee/caveman★ 121k

See all software development skills →

More skills from mattpocock

  1. Triage

    Move issues and external PRs through a state machine of triage roles, categorise, verify, grill if needed, and write agent-ready briefs.

    mattpocock/skills★ 327k
  2. Wait What

    Stop. That last message did not land: re-pitch it.

    mattpocock/skills★ 327k
  3. Wizard

    Generate an interactive bash wizard that walks a human through steps only they can perform.

    mattpocock/skills★ 327k

All skills by mattpocock →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.