prd-style

prd-style is a skill for Claude Code from ryanzhao1011/workframe. It costs 230 tokens per session (4,587 once invoked), scanned A, original, MIT.

A project-specific guide for the structure and writing style of product requirement documents, or PRDs.

In plain words
What is it for?
It defines how requirements are organized, how acceptance criteria are numbered, and how decisions and changes are recorded.
Why use it?
It keeps PRDs consistent with the project's preferred sections, diagrams, labels, and formatting rules.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the core plugin — 36 skills, 4 agents, 12 hooks shipped together

Good fit It defines how requirements are organized, how acceptance criteria are numbered, and how decisions and changes are recorded.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ryanzhao1011/workframe/prd-style
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.

Any agent
npx skills add ryanzhao1011/workframe --skill prd-style
Clone the repo
git clone --depth 1 https://github.com/ryanzhao1011/workframe

Made for: Claude Code.

Or install core, the plugin that ships this one along with the rest of its 36 skills, 4 agents, 12 hooks.

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-style

README.md
[![agentmods](https://agentmods.dev/badge/skills/ryanzhao1011/workframe/prd-style/github.svg)](https://agentmods.dev/skills/ryanzhao1011/workframe/prd-style)
Your own site
<a href="https://agentmods.dev/skills/ryanzhao1011/workframe/prd-style"><img src="https://agentmods.dev/badge/skills/ryanzhao1011/workframe/prd-style/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-style

Your own site · 80×15
<a href="https://agentmods.dev/skills/ryanzhao1011/workframe/prd-style"><img src="https://agentmods.dev/badge/skills/ryanzhao1011/workframe/prd-style.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 230 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,587 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.
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.00230 $0.04587
Opus 5.5 $0.00092 $0.01835
Sonnet 5.5 $0.00046 $0.00917
Haiku 4.5 $0.00023 $0.00459

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

Security

Grade A, and why

prd-style 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 3d 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/core/templates/project-skills/prd-style/SKILL.md · 267 lines

How it starts

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

{{PROJECT_NAME}} · PRD 框架

这份文件属于你的项目:装机时由框架放入(出厂默认版),之后框架不再覆盖。 想让 PRD 长成你习惯的样子——章节怎么排、要不要流程图、用不用原型——直接改这份文件, 下一次写需求即生效。改坏了想回默认:从框架模板重新复制一份即可—— $WF_PLUGIN_ROOT/templates/project-skills/prd-style/SKILL.md。

与 core 的分工:core prd-writer 管工作流骨架与通用写作纪律(怎么协作、怎么写得清楚), 本文件管本项目的框架与风格(写成什么样)。两边冲突时以本文件为准,但下方 「机器契约红线」除外。

§0 机器契约红线(本文件不可覆盖的部分)

以下内容由 core 保证跨项目一致,改了会断索引 / 断 QA 链路,本文件的任何声明不覆盖它们:

契约 归属
frontmatter 必填字段与落盘路径(projects/modules/.../prd.md) document-norms §1 §2
需求资产包结构(prototypes/ assets/ test-cases/ 等) modules-template
验收标准的 AC-{序号} 编号 QA test-case-design 的输入,编号全文档唯一递增
「变更与决策记录」章的存在(frontmatter 无 version 字段,正文「变更与决策记录」是唯一版本史) prd-writer 落盘契约(表的格式可改,章不能没有)

§1 工序形态声明

core prd-writer 的六段工作流骨架(理解 → 骨架确认 → 填充 → 落盘 → 附属产物 → 发布) 在以下工序点读本节取值。每行都可改:换形态直接改「取值」,停用整个工序把「取值」改为「不启用」。

工序点 本项目取值
S2 范围确认形态 Mermaid 思维导图(只呈现核心模块与关键子模块,不展开实现细节——字段 / 接口 / 文件 / 失败分类 / 配置值等一律不入图;主干与总行数按需求大小合理控制)
S2 结构确认图件 启用——流程图(选型判据与图纪律见 core prd-writer/diagram-guide.md)
S2 页面骨架确认(V1 时) 启用——简洁文字描述(区域布局 / 核心元素 / 空状态),不生成 HTML
S3 填充波次 两波:先「头部元信息(如启用)+ 需求背景与目标 + 方案概览」校准方向,再其余全部章节
S5 附属产物(V1 时) HTML 交互原型(规范见 core prd-writer/html-prototype.md);已有拍板 demo 时走「demo 先行变体」

§2 维度开关(按产品形态裁剪章节)

写作前按需求推断以下维度,决定启用哪些章节。维度可增删(如硬件产品可加「供应链/认证」维度并映射到自建章节):

# 维度 推断信号 影响
V1 有 UI 页面/用户操作流程? 含"页面/列表/按钮/弹窗/表单/菜单"("配置/管理/操作"不单独作数——CLI、管道类需求同样高频用这些词) 启用「需求路径」章;需求详情按前端模块分层;启用页面骨架确认与原型工序
V2 需向研发/算法说明实现方案? 含"模型/算法/LLM/接口/训练/管道" 启用「技术方案」章;「上线策略」章 V2 或 V3 任一启用即写
V3 分期交付或多团队协作? 含"一期/二期/阶段/跨团队"或规模较大 启用「项目管理」章;头部输出相关负责人
V4 有字段设计或数据结构? 含"字段/表结构/导入/导出/数据定义" 需求详情含字段说明表
V5 需跨角色问题追踪? 涉及多方沟通或历史有多轮确认 启用「附录」章

§3 章节总览与输出顺序

标准章节序列(按维度裁剪后连续重编号,不跳号):

章节 必选/维度 说明
头部元信息 按需 相关负责人仅多团队协作时输出;更新记录并入「变更与决策记录」
一、需求背景与目标 必选 背景 / 目标 / 边界 三小节
二、方案概览 必选 分点文字,一目了然
三、需求路径 V1 平台 > 菜单 > 页面/弹窗 > 动作;无 UI 的需求(CLI / API / 数据管道)不设本章
四、业务流程与逻辑 必选 流程图双格式 + 产品视角后端逻辑
五、需求详情 必选 V1 主导时题为「前端交互详情」,按前端模块分级
六、验收标准 必选 AC 表格
七、技术方案 V2 面向研发/算法
八、上线策略 V2/V3 灰度 / 回滚
九、项目管理 V3 里程碑
倒数第二章、待确认项 按需 仅用户明确提出的未决事项;无则不设
最后一章、变更与决策记录 必选(契约) 版本 + 拍板合并表
附录 V5 参考文档 / 团队分工

Read the full file on GitHub · 267 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. 3d ago Changed 10fa0df955f3
  2. 20d ago Changed · +1 lines f8107d957f7a
  3. 1mo ago Changed · -6 lines · +142 tokens per session scan B → A 392f7ddad074
  4. 3mo ago First seen · 272 lines · 88 tokens per session scan B 53c9e8c186b0

Subscribe to this mod's changes

prd-style is a skill published in the GitHub repository ryanzhao1011/workframe (9 stars, last pushed 5d ago), licensed MIT. It adds 230 tokens to every session and 4,587 once invoked, about $0.0009 per session on Opus 5.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-31.

Related

prd-style compared with skills from other repositories

prd-style next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
prd-styleryanzhao1011/workframeSkill95d agoMITA230Claude Code
html-prototypemayuemarsha-del/pm-skillsSkill56mo agoMITA97Claude Code
feature-acceptancemayuemarsha-del/pm-skillsSkill56mo agoMITA192Claude Code
prdmayuemarsha-del/pm-skillsSkill56mo agoMITA202Claude Code
ui-walkthroughmayuemarsha-del/pm-skillsSkill56mo agoMITA231Claude Code
gbgcielebak/goal-by-goalSkill15mo agoMITA150Claude Code
competitor-researchmayuemarsha-del/pm-skillsSkill56mo agoMITA123Claude Code