agentleFS
heyongjun666heyongjun666/AICU-Graph/skills/to-prd/SKILL.md

to-prd

Skill200 starsChanged 23 days agoApache-2.0View on GitHub

将当前对话/上游文档综合为 PRD,写入本地 prd.md 文件。纯 batch 模式,不发布到任何 issue tracker,不与用户交互。

132 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use decision-mapping, zoom-out and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • FabienDehopreSkill

    decision-mapping

    Turn a loose idea into a sequenced map of investigation tickets, then drive them to resolution one at a time.

    Also in 8 projects that use this

  • victorgarciaesgiSkill

    zoom-out

    Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.

    Also in 60 projects that use this

  • simo97Skill

    request-refactor-plan

    Use this skill when user wants to create a refactor plan.

    Also in 23 projects that use this

  • simo97Skill

    edit-article

    The user will invoke this skill to help them edit an article.

    Also in 23 projects that use this

  • kennethkeimSkill

    ubiquitous-language

    Extract a DDD-style ubiquitous language glossary from the current conversation, flagging ambiguities and proposing canonical terms. Saves to UBIQUITOUS_LANGUAGE.md. Use when user wants to define domain terms, build a glossary, harden terminology, create a ubiquitous language, or mentions "domain model" or "DDD".

    Also in 23 projects that use this

  • AnasX7Skill

    setup-pre-commit

    Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.

    Also in 34 projects that use this

  • +4 more from simo97

The file

Files
SKILL.md

To PRD (Local File)

将已有上下文(需求文档、原型、对话)综合为一份 PRD,写入当前工作目录的 prd.md。

本 skill 是本地 batch 流水线版本:

  • ❌ 不发布到任何 issue tracker(GitHub/Jira)
  • ❌ 不与用户交互确认 seam
  • ✅ 只生成 prd.md 文件
  • ✅ 全部决策由 CC 自对话完成

Process

1. Gather context

读取上游文档(需求文档、原型设计、架构设计等)。如果已有 CONTEXT.md 和 docs/adr/,使用其中的领域词汇,并尊重相关 ADR。

2. Decide test seams

自行识别测试 seam(不问用户)。原则:

  • 优先复用已有 seam,不要新建
  • 选最高层 seam(端到端 > 集成 > 单元)
  • seam 数量越少越好,理想是 1 个
  • 如果需要新 seam,在最高可行点提出

将 seam 决策写入 PRD 的 "Testing Decisions" 小节,并简短说明为什么选这个 seam。

3. Write PRD

用下面的模板,把 PRD 写入 prd.md(当前工作目录下)。

PRD Template

# PRD: <feature name>

## Problem Statement

从用户视角描述要解决的问题。

## Solution

从用户视角描述解决方案。

## User Stories

编号列表,覆盖所有方面:

1. As a <actor>, I want <feature>, so that <benefit>
2. ...

## Implementation Decisions

- 要构建/修改的模块
- 模块接口
- 技术澄清
- 架构决策
- Schema 变更
- API 契约
- 具体交互

不要写具体文件路径或代码片段(容易过时)。

例外:如果原型里有一段 snippet 精确编码了某个决策(状态机、reducer、schema、type shape),可以内联到相关决策里,标注来自原型。只保留决策密集部分,不是完整 demo。

## Testing Decisions

- 什么算好测试(只测外部行为,不测实现细节)
- 哪些模块要测
- 测试 seam 选择(最高层优先)+ 理由
- 现有类似测试参考

## Out of Scope

明确不在本 PRD 范围内的事项。

## Further Notes

其他需要说明的。

Quality Requirements

  • User Stories 必须详尽,覆盖功能所有方面,不要只列 3-5 条
  • Implementation Decisions 必须具体(模块名、接口签名),不能写"采用合适的架构"
  • Testing Decisions 必须给出 seam 选择 + 理由,不能只写"写单元测试"
  • 不要包含具体文件路径或代码片段(容易过时)
  • 直接写入 prd.md,不需要额外说明

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.