write-prd
БесплатноБез исполняемых скриптовНе проверенUse to turn a raw feature idea into a reviewed PRD.md — a lightweight Socratic interview front (capture the idea, deep-dive the problem) merged with a full…
от genkovich★ 17 звёзд на GitHubОб этом скилле
Skill: write-prd (SDLC stage 03 — PRD drafter)
Turns a one-line idea into a reviewed PRD.md: a lightweight interview captures and stress-tests the idea, then the skill drafts a product spec (context → goals → user stories → acceptance criteria → NFRs → KPIs), validates it Socratically, and runs a clean-context critic before writing. Less typing, more reviewing. This file is the spine; detail lives in references/.
The Socratic machine, the critic, and the ask-style are shared — this skill keeps only its deltas:
→ ../_shared/socratic-loop.md · ../_shared/critic.md · ../_shared/ask-style.md
Depth governs question volume + autonomy → ../_shared/interview-depth.md.
Owner
PM + Tech Lead (co-authors). PM drives goals / non-goals / KPIs; Tech Lead drives context patterns and the acceptance-criteria coverage.
Inputs
Hard required (skill stops without them):
<slug>— kebab-case feature slug.docs/features/<slug>/idea-brief.md— problem, RICE, Recommendation (§13), Out of scope (§6). Missing → «run/sdlc:interview <slug>first».docs/features/<slug>/CONTEXT.md— canonical glossary (role names, domain terms). Missing → «run/sdlc:fix-term <slug>first». No silent fallback.
Optional:
docs/features/<slug>/.size— depth hint (MVP vs Full per the size matrix). Read if present; established here if absent (step 1 classifies + writes it), so downstream stages never silently default to M.--reference <path-to-module>— passed at invocation; pre-selects the «Reference module code» channel in step 3.
Protocol
Prereq check + read context + set interview depth.
test -fboth required inputs and stop with the appropriate error if either is missing. Then: ifCONTEXT.mdexists, load its## Glossaryas session state (canonical roles + terms). If.sizeexists, read it to size the PRD's depth; if absent, establish it now — classify the feature via the 4 signals in../_shared/size-matrix.md(PR count / time-to-merge / new module·API·migration / breaking changes), confirm in one bundledAskUserQuestion(ateasydepth, take the matrix default and record it in the assumptions ledger), and writedocs/features/<slug>/.size— so every later stage reads a real size instead of silently defaulting to M.classify-sizestays the utility to re-classify when scope changes. Ifdocs/architecture-map.mdexists (frommap-architecture), read it so the PRD is architecture-aware — it informs §1 Context, §2 Constraints, and §3 Non-goals (what the existing system already does / can't do). Absent → suggest running/sdlc:map-architecturefirst, but proceed (the PRD is product-level and can be captured without it). Do not leak the map's tech into §5 AC — AC stay business-observable; the map shapes constraints, not acceptance criteria. Then set the interview depth (the opening question): if.claude/sdlc.local.mdis absent, auto-create it with the documented default frontmatter (every key + its allowed values explained inline) and patch.gitignore; then readinterview_depthfrom it (else default medium), and — unless a--depth=easy|medium|hardarg was passed (which skips the question) — ask ONE depth-selectionAskUserQuestionphrased per../_shared/ask-style.md, with the saved/medium value as the «(Recommended)» first option, overridable per run. The chosen level governs the step-2 deep-dive volume and the step-7 Socratic volume →../_shared/interview-depth.md. (Completeness — §5's 5-type AC floor and §4→§5 use-case floor — is unaffected by depth.)Capture the idea (interview front). One
AskUserQuestionfor the raw idea in 1–3 sentences (persist verbatim as the baseline). Then a Socratic deep-dive across problem clarity / success criteria / constraints / strategic fit, delivered in batches of 2–3 — its volume scales with the depth dial (easy: only the few un-inferable ones, then a stated-assumptions ledger; medium: 3–5; hard: walk every angle, foreground each trade-off). Phrase every question per../_shared/ask-style.md.Reconcile the glossary in-flow (a hard rule, at every depth). On every new or unknown domain term that surfaces in the interview or the draft, invoke
/sdlc:fix-term <slug>for it immediately — compare it againstCONTEXT.mdand add/update the definition before continuing. By the time the PRD is written, every §4 role and §5 domain term is already glossary-canonical; the glossary is never a deferred batch.Ask which extra channels to read (multi-select
AskUserQuestion): reference module code / project docs / MCP-Atlassian (Confluence) / MCP-Atlassian (Jira) / knowledge-base / none. For each picked channel ask the specific path/query — no sile
Установить write-prd в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл write-prd?
Use to turn a raw feature idea into a reviewed PRD.md — a lightweight Socratic interview front (capture the idea, deep-dive the problem) merged with a full product spec (context, goals, user stories, acceptance criteria, NFRs, KPIs). Triggers on "/sdlc:write-prd {slug}", "write PRD for {slug}", "draft PRD for {slug}", "PRD для {slug}", "write spec for {slug}", "product requirements for {slug}", "напиши PRD {slug}", "опиши вимоги", "зафіксуй ідею". Opens by setting the interview-depth dial (easy/medium/hard), drafts from templates/PRD-template.md, validates each acceptance criterion Socratically, runs a clean-context critic (sdlc:critic), then writes docs/features/{slug}/PRD.md. Hard refuse if idea-brief.md or CONTEXT.md missing.
Как установить скилл write-prd?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл write-prd запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic