to-prd

A product requirements document (PRD) generator that turns a finished discussion and codebase review into a structured backlog item. A PRD records the problem, proposed solution, user needs, implementation decisions, testing decisions, and what is out of scope.

In plain words
What is it for?
Use it to explore the codebase, identify affected modules, define user stories and tests, and publish the result to a project backlog.
Why use it?
It turns informal agreement into a detailed document that developers can use to plan and build a feature.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/yulin-bi/codeauto/to-prd
Any agent
npx skills add Yulin-Bi/CodeAuto --skill to-prd
Clone the repo
git clone --depth 1 https://github.com/Yulin-Bi/CodeAuto

Made for: Claude Code, Codex.

Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 608 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00050 $0.00608
Opus 5 $0.00025 $0.00304
Sonnet 5 $0.00010 $0.00122
Haiku 4.5 $0.00005 $0.00061

Measured yesterday against content hash 690ca9eb7796, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

to-prd scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.codeauto/skills/to-prd/SKILL.md · 73 lines

What it actually says

此技能基于当前对话上下文和对代码库的理解来生成 PRD。不要追问用户——仅基于已有信息进行综合整理。

如果尚未配置好 backlog 后端和 triage 标签体系,请先运行 /setup-matt-pocock-skills

流程

  1. 探索仓库,了解代码库当前状态(如果尚未做)。在整个 PRD 中使用项目的领域术语,并遵守相关区域的 ADR(架构决策记录)。

  2. 勾勒主要模块,识别需要新建或修改哪些模块来完成实现。积极寻找可以提取为"深度模块"(deep module)的机会——这类模块封装大量功能,提供简单、可测试且不易变动的接口。

    与用户确认这些模块是否符合预期,以及用户希望对哪些模块编写测试。

  3. 按以下模板撰写 PRD,然后发布到项目 backlog。打上 needs-triage 标签以便进入正常的三级流程。

问题陈述

从用户视角描述所面临的问题。

解决方案

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

用户故事

一份长长的、编号的用户故事列表。每个用户故事的格式为:

  1. 作为 <角色>,我想要 <功能>,以便 <收益>

用户故事列表应尽可能详尽,覆盖该功能的各个方面。

实现决策

已做出的实现决策清单,可包括:

  • 将要构建/修改的模块
  • 这些模块将要修改的接口
  • 来自开发者的技术澄清
  • 架构决策
  • 数据库 Schema 变更
  • API 契约
  • 具体的交互方式

不要包含具体的文件路径或代码片段——它们可能很快就会过时。

测试决策

已做出的测试决策清单,包括:

  • 好测试的标准(只测试外部行为,不测试实现细节)
  • 哪些模块需要测试
  • 测试的参考依据(即代码库中类似的测试范例)

非范围

明确说明本次 PRD 不涉及的内容。

补充说明

关于该功能的任何补充说明。

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 73 lines · 50 tokens per session scan A 690ca9eb7796

Subscribe to this mod's changes

to-prd is a skill published in the GitHub repository Yulin-Bi/CodeAuto (43 stars, last pushed 5d ago), licensed MIT. It adds 50 tokens to every session and 608 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

issue-triage

Triage and categorize GitHub issues with priority labels. Use when user says "triage issues", "check issues", "review open issues", or during regular maintenance of GitHub issue backlog.

decebals/claude-code-java · 44 tokens

multi-module-maven

Use when working in a multi-module Maven project. Covers parent POM conventions, shared dependency management, inter-module rules, and build ordering.

rrezartprebreza/spring-boot-skills · 33 tokens

epic-breakdown-advisor

Break down epics into user stories with Humanizing Work split patterns. Use when a backlog item is too large to estimate, sequence, or deliver safely.

getcrew44/crew44 · 38 tokens

lean-ux-canvas

Guide teams through Lean UX Canvas v2. Use when framing a business problem, surfacing assumptions, and defining what to learn next.

getcrew44/crew44 · 33 tokens

daily-meeting-update

Interactive daily standup/meeting update generator. Use when user says 'daily', 'standup', 'scrum update', 'status update', 'what did I do yesterday', 'prepare for meeting', 'morning update', or 'team sync'. Pulls activity from GitHub, Jira, and Claude Code session history. Conducts 4-question interview (yesterday…

softaworks/agent-toolkit · 94 tokens

jira

Use when the user mentions Jira issues (e.g., "PROJ-123"), asks about tickets, wants to create/view/update issues, check sprint status, or manage their Jira workflow. Triggers on keywords like "jira", "issue", "ticket", "sprint", "backlog", or issue key patterns.

softaworks/agent-toolkit · 67 tokens