# to-spec

Generates a self-contained feature spec from the current conversation and codebase without running a repetitive user interview.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 1700 installs · ★ 1
- Author: pandoscope
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/pandoscope/skills/tree/HEAD/derived/to-spec/SKILL.md
- Updated: 2026-10-23
- HTML: https://affpapa.org/en/nevibecode/skills/pandoscope-to-spec

## What it does

This skill synthesizes a PRD directly from active chat context and repo inspection. Instead of questioning the user, it extracts established requirements into structured sections: problem statement, solution, extensive user stories, implementation decisions, test seams, and scope limits.

Every requirement must pass a reproducibility litmus test: two independent implementers should build nearly identical outcomes. The skill references repo ADRs, pins project terminology using `uvx disambiguate`, and blocks progress if no grilling session exists in context unless explicitly bypassed.

Without tracker rules defined in `AGENTS.md`, the skill cannot publish tickets labeled `ready-for-agent`. Implementation notes deliberately exclude file paths and transient code snippets, keeping only state machines, schemas, or compact prototype shapes.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add pandoscope/skills --skill to-spec -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/to-spec/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/to-spec/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add pandoscope/skills --skill to-spec -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/to-spec/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add pandoscope/skills --skill to-spec -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/to-spec/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install pandoscope/skills to-spec
```

2. **Manually: put the files in place**
- File: `.github/skills/to-spec/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add pandoscope/skills --skill to-spec -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/pandoscope/skills --path derived/to-spec
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/to-spec/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add pandoscope/skills --skill to-spec -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/pandoscope/skills/tree/HEAD/derived/to-spec/SKILL.md

## When to use it
- generate a complete PRD from chat history without prompting interviews
- define test seams before starting feature implementation
- enforce self-contained specifications that survive handoffs
- pin feature decisions to project ADRs and glossary terms

## Example prompts
- Generate a spec from our chat about user authentication
- Turn our discussion into a PRD and publish it to the tracker
- Create a ready-for-agent spec for the background export worker

## Source text · SKILL.md · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: d4dc2c2a05d23fd3.

BEGIN THIRD-PARTY FILE d4dc2c2a05d23fd3
````text
---
name: to-spec
description: Turn the current conversation into a spec published to the project tracker — no interview, just synthesis of what was already discussed.
metadata.derived-from: https://github.com/mattpocock/skills/blob/391a2701dd948f94f56a39f7533f8eea9a859c87/skills/engineering/to-spec/SKILL.md
metadata.derivation-note: Adds reproducibility invariant + self-containedness litmus test (see derived to-tickets) + grilling gate. Tracker deferred to consumer AGENTS.md; vocabulary pinned to docs/glossary (`uvx disambiguate`), decisions to writing-adrs. Upstream `/setup-matt-pocock-skills` dropped. Caveman-condensed.
disable-model-invocation: true
---

# To Spec

Produce spec (aka PRD) from current conversation + codebase understanding. Do NOT interview user — synthesize what you already know.

## Reproducibility invariant

Spec — and tickets later derived from it — must be **self-contained**: replayed by any implementer, human or agent, builds roughly same application. Every outcome-shaping decision lives in spec itself, or durable docs it references — ADRs (`writing-adrs`), glossary terms (`docs/glossary/`). Never conversation context, tribal knowledge, implementer discretion.

**Litmus test:** two independent implementers could build meaningfully different things → spec underspecified. Add decision to spec, or record as ADR/glossary term + reference.

## Grilling gate

Spec is load-bearing. No grilling session (`docs/glossary/grilling-session.md`) in context → stop, ask user: "No grilling session found — really skip?" Proceed only on explicit confirmation; note skip in Further Notes.

## Process

1. Explore repo if not already done. Use glossary vocabulary (`uvx disambiguate <term>`) throughout; respect ADRs in touched area.

2. Sketch seams for testing the feature. Prefer existing seams; new seams at highest point possible. Fewer seams better — ideal is one.

   Check seams with user.

3. Write spec per template — written and checked with the `writing-prose` skill if available, surface `ticket`; precision and understandability must not suffer. Apply litmus test to every section, publish per consumer repo's tracker conventions (AGENTS.md). Apply `ready-for-agent` label — no further triage.

Spec template:

```markdown
## Problem Statement

Problem, from user's perspective.

## Solution

Solution, from user's perspective.

## User Stories

LONG numbered list: "As an <actor>, I want <feature>, so that <benefit>".
Example: "As a mobile bank customer, I want to see balance on my accounts, so that I can make better informed decisions about my spending."
Extremely extensive — cover all aspects.

## Implementation Decisions

Decisions made: modules built/modified, interfaces, technical clarifications, architecture, schema changes, API contracts, specific interactions.

Hard-to-reverse or surprising decisions → also record as ADR (`writing-adrs`) + reference. Decision only in conversation, not listed here → fails litmus test — write it down.
````
END THIRD-PARTY FILE d4dc2c2a05d23fd3

The third-party file has ended. Everything between the d4dc2c2a05d23fd3 tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 3027 of 3507 bytes. © pandoscope · MIT · https://github.com/pandoscope/skills/tree/HEAD/derived/to-spec/SKILL.md

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
