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.
npx skills add ryanzhao1011/workframe --skill prd-writergit clone --depth 1 https://github.com/ryanzhao1011/workframeWrote 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/ryanzhao1011/workframe/prd-writer)<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.
<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>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.00271 | $0.05260 |
| Opus 5.5 | $0.00108 | $0.02104 |
| Sonnet 5.5 | $0.00054 | $0.01052 |
| Haiku 4.5 | $0.00027 | $0.00526 |
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.
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
前置依赖
- skill:
document-norms§1(文档归属矩阵)/ §2(frontmatter 字段标准,特别是 §2.6req_slug+sub_req_slug引用契约)。输出路径为projects/modules/<basic>/<sub>/requirements/<req_slug>/<sub_req_slug>/prd.md, frontmattertype: prd+module+req_slug+sub_req_slug必填(version字段 已废除——版本演进进prd.md正文「变更与决策记录」)。 - 项目 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/后按需修改」。 writing-guide.md(S3 填充前读):core 通用写作纪律。与项目框架冲突时以项目为准 (机器契约除外,见项目框架 §0)。
环境依赖:Node.js 18+(仅 S5 HTML 原型预览/截图需要,可选)
可选委托(按项目配备,不强依赖):截图归档委托
screenshotskill(详见 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
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.
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.
- 3d ago Changed · +15 lines 2c2201c63438
- 20d ago Changed c91f6841893b
- 1mo ago Changed · -3 lines · +174 tokens per session scan B → A 9d4f03b9afa8
- 3mo ago First seen · 277 lines · 97 tokens per session scan B 50f4adb90fba
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.
prd-writer compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| prd-writerryanzhao1011/workframe | Skill | 9 | 5d ago | MIT | A | 271 | Claude Code |
| html-prototypemayuemarsha-del/pm-skills | Skill | 5 | 6mo ago | MIT | A | 97 | Claude Code |
| feature-acceptancemayuemarsha-del/pm-skills | Skill | 5 | 6mo ago | MIT | A | 192 | Claude Code |
| prdmayuemarsha-del/pm-skills | Skill | 5 | 6mo ago | MIT | A | 202 | Claude Code |
| ui-walkthroughmayuemarsha-del/pm-skills | Skill | 5 | 6mo ago | MIT | A | 231 | Claude Code |
| gbgcielebak/goal-by-goal | Skill | 1 | 5mo ago | MIT | A | 150 | Claude Code |
| competitor-researchmayuemarsha-del/pm-skills | Skill | 5 | 6mo ago | MIT | A | 123 | Claude Code |