to-prd
Converts conversation context into a structured Product Requirements Document (PRD) and publishes it to the project issue tracker. Do NOT interview the user — synthesize what is already known. Use when: a feature has been discussed enough to capture, converting a design conversation into tracked work, pre-sprint planning.
Best use case
to-prd is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Converts conversation context into a structured Product Requirements Document (PRD) and publishes it to the project issue tracker. Do NOT interview the user — synthesize what is already known. Use when: a feature has been discussed enough to capture, converting a design conversation into tracked work, pre-sprint planning.
Teams using to-prd should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/to-prd/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How to-prd Compares
| Feature / Agent | to-prd | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Converts conversation context into a structured Product Requirements Document (PRD) and publishes it to the project issue tracker. Do NOT interview the user — synthesize what is already known. Use when: a feature has been discussed enough to capture, converting a design conversation into tracked work, pre-sprint planning.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# To PRD ## One-Liner Synthesize what has already been discussed into a structured Product Requirements Document — without interviewing the user again. --- ## § 1 · Core Constraint **Do NOT interview the user.** This skill runs after a design conversation has already happened. Its job is to organize and commit that knowledge — not to gather more. If key information is missing, note the gap in the PRD's "Open Questions" section rather than pausing to ask. --- ## § 2 · Workflow ### Step 1 — Codebase Exploration Before writing anything: 1. Read `CONTEXT.md` if present — use its canonical terms throughout the PRD 2. Read relevant ADRs — the PRD must not contradict past decisions without noting it 3. Identify the major modules the feature will touch or create 4. Note any existing patterns the new code should follow (naming, error handling, testing) ### Step 2 — Module Sketch Before drafting the PRD body, sketch the major modules: - What new modules will be created? - What existing modules will be modified? - Prefer **deep modules**: encapsulate significant behavior behind a simple, testable interface This sketch goes into the PRD's Implementation Decisions section. ### Step 3 — Write the PRD Use this template: --- **PRD: [Feature Name]** **Problem Statement** [One paragraph: what user problem does this solve? What is the cost of not building it?] **Solution** [One paragraph: what does the feature do at a high level?] **User Stories** 1. As a [role], I want to [action] so that [benefit] 2. ... **Implementation Decisions** - Module: `<name>` — owns [behavior]; interface: [description] - Module: `<name>` — modified to [change]; seam used: [description] - [Pattern to follow]: [rationale] **Testing Decisions** - [Behavior to test]: [test type and approach] - [Edge case]: [how it will be covered] **Out of Scope** - [Explicitly excluded functionality] **Open Questions** - [Anything that needs a human decision before implementation starts] **Further Notes** - [Performance considerations, security notes, rollout strategy, etc.] --- **Important:** Do not include specific file paths or implementation code in the PRD. File paths rot rapidly; behavior descriptions survive. Implementation will determine exact paths. ### Step 4 — Publish Post the PRD to the project issue tracker with: - Label: `needs-triage` (so the issue enters the triage workflow) - Title format: `feat: [feature name]` - Link back to the conversation or design session if available --- ## § 3 · PRD Quality Checklist | Check | Pass Condition | |-------|---------------| | Uses canonical terms | All entity/action names match `CONTEXT.md` | | No file paths | Implementation details left to implementation phase | | Explicit out-of-scope | At least one item listed | | Module sketch present | Major modules identified and their interfaces described | | Open questions captured | Missing info noted, not blocking the PRD | | Testable user stories | Each story has an implied acceptance test | --- ## § 4 · When to Use This Skill **Use when:** - A feature has been fully or mostly designed in conversation - Preparing for a sprint and need to create issues - An enhancement issue was promoted from `issue-triage` to `ready-for-human` and needs a full spec **Do NOT use when:** - The feature has not been discussed at all (nothing to synthesize) - The goal is just a small bug fix (overkill — use `debug-diagnose`) --- ## § 5 · Relationship to Other Skills | Skill | When to reach for it | |-------|---------------------| | `zoom-out` | Run first to map what modules the feature will touch | | `issue-triage` | After publishing — triage the created issue | | `tdd-workflow` | When implementation begins — start from the user stories as behaviors | | `architecture-review` | If the PRD reveals a need for significant structural changes |
Related Skills
write-skill
Meta-skill for creating high-quality SKILL.md files. Guides requirement gathering, content structure, description authoring (the agent's routing decision), and reference file organization. Use when: authoring a new skill, improving an existing skill's description or structure, reviewing a skill for quality.
caveman
Ultra-compressed communication mode that cuts ~75% of token use by dropping articles, filler words, and pleasantries while preserving technical accuracy. Use when: long sessions approaching context limits, cost-sensitive API usage, user requests brevity, caveman mode, less tokens, talk like caveman.
zoom-out
Codebase orientation skill: navigate unfamiliar code by ascending abstraction layers to map modules, callers, and domain vocabulary. Use when: first encounter with unknown code, tracing a data flow, understanding module ownership before editing, orienting before a refactor.
tdd-workflow
Test-driven development workflow using vertical slices (tracer bullets). Enforces behavior-first testing through public interfaces. Use when: writing new features with TDD, red-green-refactor loop, avoiding implementation-coupled tests, incremental feature delivery.
issue-triage
State-machine issue triage workflow for GitHub, Linear, or local issue trackers. Manages category labels (bug, enhancement) and state labels (needs-triage, needs-info, ready-for-agent, ready-for-human, wontfix). Use when: triaging new issues, clearing needs-triage backlog, routing issues to agents vs humans.
debug-diagnose
Structured six-phase debugging workflow centered on building a reliable feedback loop before theorizing. Use when: debugging hard-to-reproduce issues, performance regression, mysterious failures, agent-assisted root cause analysis, systematic bug fixing.
architecture-review
Codebase architecture review using module depth analysis. Surfaces shallow modules, tight coupling, and locality violations. Proposes deepening opportunities. Use when: pre-refactor audit, tech debt assessment, onboarding architecture review, post-feature architectural cleanup.
vault-secrets-expert
HashiCorp Vault expert: KV secrets, dynamic credentials, PKI, auth methods. Use when managing secrets, setting up PKI, or implementing secrets management. Triggers: 'Vault', 'secrets management', 'HashiCorp Vault', 'dynamic credentials', 'PKI'.
nmap-expert
Expert-level Nmap skill for network reconnaissance, port scanning, service detection, and security assessment. Triggers: 'Nmap', '网络扫描', '端口扫描', 'NSE脚本'. Works with: Claude Code, Codex, OpenCode, Cursor, Cline, OpenClaw, Kimi.
metasploit-expert
Expert-level Metasploit Framework skill for penetration testing, exploit development, and post-exploitation operations. Triggers: 'Metasploit', '渗透测试', '红队', '漏洞利用'. Works with: Claude Code, Codex, OpenCode, Cursor, Cline, OpenClaw, Kimi.
gerrit-permission-manager
Expert manager for Gerrit multi-repository and multi-branch permission configurations. Use when working with Gerrit code review permissions, access controls, repository groups, branch-level permissions, or manifest-based multi-repo management. Use when: gerrit, permissions, code-review, access-control, devops.
container-security-expert
Expert-level Container Security skill using Trivy, Snyk, and other tools for vulnerability scanning, compliance checking, and container hardening. Triggers: '容器安全', '漏洞扫描', 'Trivy', 'Docker安全', 'K8s安全'.