prd-writer

prd-writer is a skill for Claude Code from ryanzhao1011/workframe. It costs 271 tokens per session (5,260 once invoked), scanned A, original, MIT.

A method for deciding which specialised agent or process should handle a request. It routes work based on the task type, such as research, implementation, review, or documentation.

In plain words
What is it for?
Use it to choose the right skill or agent for a request and to coordinate work across different task types.
Why use it?
It prevents unrelated tasks from being handled by the wrong workflow. Clear routing helps maintain the required steps and output for each kind of work.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths.

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

Good fit Use it to choose the right skill or agent for a request and to coordinate work across different task types.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/ryanzhao1011/workframe/prd-writer/github.svg)](https://agentmods.dev/skills/ryanzhao1011/workframe/prd-writer)
Your own site
<a href="https://agentmods.dev/skills/ryanzhao1011/workframe/prd-writer"><img src="https://agentmods.dev/badge/skills/ryanzhao1011/workframe/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/ryanzhao1011/workframe/prd-writer"><img src="https://agentmods.dev/badge/skills/ryanzhao1011/workframe/prd-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 271 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,260 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.00271 $0.05260
Opus 5.5 $0.00108 $0.02104
Sonnet 5.5 $0.00054 $0.01052
Haiku 4.5 $0.00027 $0.00526

Measured 3d ago against content hash 2c2201c63438, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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/skills/prd-writer/SKILL.md · 289 lines

How it starts

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

PRD 需求文档编写 Skill

前置依赖

  1. skill: document-norms §1(文档归属矩阵)/ §2(frontmatter 字段标准,特别是 §2.6 req_slug + sub_req_slug 引用契约)。输出路径为 projects/modules/<basic>/<sub>/requirements/<req_slug>/<sub_req_slug>/prd.md, frontmatter type: prd + module + req_slug + sub_req_slug 必填(version 字段 已废除——版本演进进 prd.md 正文「变更与决策记录」)。
  2. 项目 PRD 框架:Read <项目 skills 目录>/prd-style/SKILL.md——本项目 PRD 的工序形态 (§1)、维度开关(§2)、章节结构(§3)、各章写法(§4)、标注习惯(§5)的唯一事实源。 <项目 skills 目录> 按存在性解析(与 _harness.project_skills_dir() 同一规则):项目根下 有 .agents/skills/ 就是它(新建项目的真实源,.claude/skills 是指向它的目录链接,两条路径 读到同一份文件;链接在而目标目录暂缺时也按 .agents/skills/ 算),否则是 .claude/skills/(已装项目的真目录)。 缺失时 fallback:读框架默认模板 <插件根>/templates/project-skills/prd-style/SKILL.md(插件根 = $WF_PLUGIN_ROOT)照用,并提示用户 「本项目未配置 PRD 框架,本次按框架默认执行;正常装机会自动放入,可跑 doctor 检查, 或从上述模板复制到 <项目 skills 目录>/prd-style/ 后按需修改」。
  3. writing-guide.md(S3 填充前读):core 通用写作纪律。与项目框架冲突时以项目为准 (机器契约除外,见项目框架 §0)。

环境依赖:Node.js 18+(仅 S5 HTML 原型预览/截图需要,可选)

可选委托(按项目配备,不强依赖):截图归档委托 screenshot skill(详见 html-prototype.md);外部发布由项目配备的发布 skill 处理,不在本 skill 内;Obsidian CLI 增强按需委托 obsidian-doc-structure / obsidian-link-audit / obsidian-safe-write, CLI 不可用时 fallback 到 Read / rg / Edit。


Workflow:六段骨架

「做什么」由本 skill 固定;「用什么形态做」读项目框架 §1 工序形态声明。

S1 理解      读上下文 + 维度推断 → 呈现理解摘要                    [固定]
S2 骨架确认  范围骨架(形态读框架 §1)→(启用图件时)结构图草稿
             → 章节预告(按框架 §3 裁剪)→(框架声明时)页面骨架    [形态可配]
S3 填充      按框架章节分波写,[待确认] 汇总一次问                  [章节/波次可配]
S4 落盘      机器契约段:触发词 → 路径/frontmatter/索引             [固定]
S5 附属产物  按框架 §1 声明执行(图件渲染 / HTML 原型 / 无)        [整段可配]
S6 发布      仅用户显式触发                                        [固定]

核心原则:AI 主动分析填充,用户确认补充。不确定的内容标 [待确认],汇总后一次性 问用户。所有交付物中不保留需求确认过程标记(如"Q12"、"用户澄清 #2"),确认结论作为正常 需求点融入正文对应位置。

demo 先行变体(项目框架启用原型工序、且用户已有可交互 demo 时的标准路径):

  • S2 范围与结构草稿从 demo 反推(仍需用户确认——demo 可能只覆盖部分需求);页面骨架 确认跳过(以 demo 为准)
  • S3 交互细节直接读 demo 的 HTML / JS 提取(状态文案、禁用逻辑、显隐条件、状态机以 代码为准),对话记录仅作补充
  • S5 改为归档——demo 复制到 prototypes/(不重新生成),删除 tmp/ 原件避免双源; 按需截图归档 assets/
  • demo 本身的生成规范见 skill: html-demo

Read the full file on GitHub · 289 lines

Files

What ships with it

3 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.

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 · +15 lines 2c2201c63438
  2. 20d ago Changed c91f6841893b
  3. 1mo ago Changed · -3 lines · +174 tokens per session scan B → A 9d4f03b9afa8
  4. 3mo ago First seen · 277 lines · 97 tokens per session scan B 50f4adb90fba

Subscribe to this mod's changes

prd-writer is a skill published in the GitHub repository ryanzhao1011/workframe (9 stars, last pushed 5d ago), licensed MIT. It adds 271 tokens to every session and 5,260 once invoked, about $0.0011 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-writer compared with skills from other repositories

prd-writer next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
prd-writerryanzhao1011/workframeSkill95d agoMITA271Claude 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