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.
git clone --depth 1 https://github.com/TestAny-io/testany-agent-skillsnpx agentmods add skills/testany-io/testany-agent-skills/prd-writerWrote 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.
[](https://agentmods.dev/skills/testany-io/testany-agent-skills/prd-writer)<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.
<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>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once 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 |
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.
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。
核心原则
- 先读后写,遵循项目现有约定:写 PRD 前必须先了解项目上下文,包括已有的 PRD/HLD 文档、命名规范、技术栈等,确保输出与项目现有风格一致
- 基于证据,不猜测:所有关于项目现状、已有能力、业务流程的描述必须有文档/代码依据;找不到证据时必须使用 AskUserQuestion 确认,禁止凭空推测
- PRD 只描述 What 和 Why,不规定 How:PRD 定义业务需求和目标,技术实现细节(如数据库选型、API 路径设计、具体算法)属于 HLD 范畴
- 关键问题必须确认,非关键问题直接给建议:减少不必要的交互,提高效率
- 强制使用 AskUserQuestion 工具提问:不要在普通文本中提问,必须使用工具
- 审查阶段必须执行:完成初稿后必须进行强制审查
- PRD 必须携带可脚本处理的追溯元数据:输出中必须包含符合
prd-profile-v1的TRACEABILITY-METADATAblock
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 类型
- 新功能(有 UI) - 涉及用户界面的新功能
- 新功能(无 UI / 后端) - 后端服务、API、后台任务
- 第三方集成 - 接入外部服务
- 功能重构 - 不改变外部功能的内部重构
- 性能/安全优化 - 非功能性改进
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
What ships with it
13 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- agents/openai.yaml 287 B
- assets/integration.en.md 11 KB
- assets/integration.md 9.1 KB
- assets/new-feature-backend.en.md 11 KB
- assets/new-feature-backend.md 9.3 KB
- assets/new-feature-ui.en.md 12 KB
- assets/new-feature-ui.md 10 KB
- assets/optimization.en.md 11 KB
- assets/optimization.md 9.3 KB
- assets/refactoring.en.md 10 KB
- assets/refactoring.md 8.4 KB
- assets/testany-logo-small.png 48 KB
- assets/testany-logo.svg 7.5 KB
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.
- 11d ago First seen · 630 lines · 46 tokens per session scan A b87b80a12319
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.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
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…
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…
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…
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…
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…