---
id: gh-to-prd
name: "to-prd"
url: https://skills.yangsir.net/skill/gh-to-prd
author: mattpocock
domain: product
tags: ["prd", "documentation", "product-management", "issue-tracker", "automation"]
install_count: 128100
rating: 4.80 (120 reviews)
github: https://github.com/mattpocock/skills/tree/main/skills/engineering/to-prd
---

# to-prd

> 该技能基于当前对话上下文和代码库理解，自动生成产品需求文档（PRD），并发布到项目问题跟踪器。它简化了PRD撰写流程，确保文档全面且与代码库状态一致，加速产品迭代。

**Stats**: 128,100 installs · 4.8/5 (120 reviews)

## Before / After 对比

### PRD撰写效率提升

**Before**:

手动撰写PRD耗时耗力，容易遗漏细节，且难以与最新代码库状态保持同步，导致文档与实际开发脱节，评审周期长。

**After**:

AI自动生成PRD，大幅缩短撰写时间，确保内容全面且与代码库一致，减少人工错误，加速产品迭代和上市。

| Metric | Before | After | Change |
|---|---|---|---|
| PRD撰写时间 | 240分钟 | 30分钟 | -88% |

## Readme

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

The issue tracker and triage label vocabulary should have been provided to you — run `/setup-matt-pocock-skills` if not.

## 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 PRD, and respect any ADRs in the area you're touching.

2. Sketch out the major modules you will need to build or modify to complete the implementation. Actively look for opportunities to extract deep modules that can be tested in isolation.

A deep module (as opposed to a shallow module) is one which encapsulates a lot of functionality in a simple, testable interface which rarely changes.

Check with the user that these modules match their expectations. Check with the user which modules they want tests written for.

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

<prd-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 PRD.

## Further Notes

Any further notes about the feature.

</prd-template>


---
*Source: https://skills.yangsir.net/skill/gh-to-prd*
*Markdown mirror: https://skills.yangsir.net/api/skill/gh-to-prd/markdown*