prd-writer

prd-writer is a skill for Claude Code, Codex from TestAny-io/testany-agent-skills. It costs 46 tokens per session (6,855 once invoked), scanned A, original, MIT.

A writing assistant for creating a product requirements document (PRD), which explains what a product or feature should do and why. It covers goals, user scenarios, requirements, rules, data concepts, quality targets, and acceptance criteria without prescribing technical implementation.

In plain words
What is it for?
Use it for new features, user-interface or non-interface work, third-party integrations, refactors, and performance or security improvements.
Why use it?
It helps teams create evidence-based requirements that are clear enough to build and review without mixing them with engineering decisions.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present. Also seen: names the AskUserQuestion tool.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is **语言规则**:默认跟随用户输入语言;用户显式指定时以用户指定为准;不要因为本 `SKILL.md` 是中文而强制输出中文;`TRACEABILITY-METADATA` 的字段名、枚举值、ID、comment markers 始终保持英文。若本 skill 使用模板或派发子任务,继续传递同一个 `output_la.

Part of the testany-eng plugin — 21 skills, 21 commands shipped together

Good fit Use it for new features, user-interface or non-interface work, third-party integrations, refactors, and performance or security improvements.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/TestAny-io/testany-agent-skills
agentmods
npx agentmods add skills/testany-io/testany-agent-skills/prd-writer

Made for: Claude Code, Codex.

Or install testany-eng, the plugin that ships this one along with the rest of its 21 skills, 21 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for prd-writer

README.md
[![agentmods](https://agentmods.dev/badge/skills/testany-io/testany-agent-skills/prd-writer/github.svg)](https://agentmods.dev/skills/testany-io/testany-agent-skills/prd-writer)
Your own site
<a href="https://agentmods.dev/skills/testany-io/testany-agent-skills/prd-writer"><img src="https://agentmods.dev/badge/skills/testany-io/testany-agent-skills/prd-writer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for prd-writer

Your own site · 80×15
<a href="https://agentmods.dev/skills/testany-io/testany-agent-skills/prd-writer"><img src="https://agentmods.dev/badge/skills/testany-io/testany-agent-skills/prd-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,855 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00046 $0.06855
Opus 5 $0.00023 $0.03427
Sonnet 5 $0.00009 $0.01371
Haiku 4.5 $0.00005 $0.00685

Measured 11d ago against content hash b87b80a12319, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

prd-writer 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 11d ago.

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.

plugins/testany-eng/skills/prd-writer/SKILL.md · 630 lines

How it starts

The opening of the file, as written. The whole thing — 630 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PRD Writer

语言规则:默认跟随用户输入语言;用户显式指定时以用户指定为准;不要因为本 SKILL.md 是中文而强制输出中文;TRACEABILITY-METADATA 的字段名、枚举值、ID、comment markers 始终保持英文。若本 skill 使用模板或派发子任务,继续传递同一个 output_language。详见 ../../references/language-policy.md

你是一个专业的产品需求文档(PRD)写作助手。你的职责是帮助用户撰写清晰、完整、可执行的 PRD。

核心原则

  1. 先读后写,遵循项目现有约定:写 PRD 前必须先了解项目上下文,包括已有的 PRD/HLD 文档、命名规范、技术栈等,确保输出与项目现有风格一致
  2. 基于证据,不猜测:所有关于项目现状、已有能力、业务流程的描述必须有文档/代码依据;找不到证据时必须使用 AskUserQuestion 确认,禁止凭空推测
  3. PRD 只描述 What 和 Why,不规定 How:PRD 定义业务需求和目标,技术实现细节(如数据库选型、API 路径设计、具体算法)属于 HLD 范畴
  4. 关键问题必须确认,非关键问题直接给建议:减少不必要的交互,提高效率
  5. 强制使用 AskUserQuestion 工具提问:不要在普通文本中提问,必须使用工具
  6. 审查阶段必须执行:完成初稿后必须进行强制审查
  7. PRD 必须携带可脚本处理的追溯元数据:输出中必须包含符合 prd-profile-v1TRACEABILITY-METADATA block

PRD 内容边界(强制遵守)

PRD 应该包含(What & Why)

  • 业务背景和目标
  • 业务现状与变更(现有流程、变更内容、影响范围)
  • 用户故事和使用场景
  • 功能需求描述
  • 业务规则和约束
  • 数据概念(业务实体和关系)
  • 相关能力识别(强制表格:已有能力、能力范围、与本需求匹配度、能力差距、建议方向;复用决策留给 HLD)
  • 非功能需求(性能、安全、兼容性要求等目标)
  • 可量化的成功指标(含数据来源/采集方式)
  • 验收标准

PRD 不应该包含(How - 属于 HLD)

  • 具体的 API 路径设计(如 POST /api/v1/users
  • 数据库表结构和字段定义
  • 技术架构图和组件设计
  • 具体的技术选型决定(如最终决定用 Redis 还是 Memcached)
  • 注:PRD 可包含方案建议和分析,但最终选型决定属于 HLD
  • 代码实现细节
  • 部署方案

边界示例

正确(PRD)

| 实体 | 说明 | 关键属性 |
|------|------|----------|
| 订单 | 用户的购买记录 | 订单号、金额、状态、下单时间 |

错误(越界到 HLD)

| 字段 | 类型 | 约束 |
|------|------|------|
| id | UUID | PRIMARY KEY |
| created_at | TIMESTAMP | NOT NULL |

正确(PRD)

### 创建订单能力

| 属性 | 说明 |
|------|------|
| 能力描述 | 根据购物车创建订单 |
| 调用方 | 前端购物车页面 |

错误(越界到 HLD)

### POST /api/v1/orders

请求体:
{ "cart_id": "string", "address_id": "string" }

支持的 PRD 类型

  1. 新功能(有 UI) - 涉及用户界面的新功能
  2. 新功能(无 UI / 后端) - 后端服务、API、后台任务
  3. 第三方集成 - 接入外部服务
  4. 功能重构 - 不改变外部功能的内部重构
  5. 性能/安全优化 - 非功能性改进

Traceability Metadata(强制)

产出的 PRD 必须内嵌 traceability metadata block,并遵循以下参考:

  • ../../references/traceability-schema/traceability-schema-v1.md
  • ../../references/traceability-schema/prd-profile-v1.example.yaml
  • ../../references/traceability-schema/trace-lint-contract-v1.md

Read the full file on GitHub · 630 lines

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. 11d ago First seen · 630 lines · 46 tokens per session scan A b87b80a12319

Subscribe to this mod's changes

prd-writer is a skill published in the GitHub repository TestAny-io/testany-agent-skills (81 stars, last pushed 2d ago), licensed MIT. It adds 46 tokens to every session and 6,855 once invoked, about $0.0002 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

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens