Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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

  1. Prereq check + read context + set interview depth. test -f both required inputs and stop with the appropriate error if either is missing. Then: if CONTEXT.md exists, load its ## Glossary as session state (canonical roles + terms). If .size exists, 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 bundled AskUserQuestion (at easy depth, take the matrix default and record it in the assumptions ledger), and write docs/features/<slug>/.size — so every later stage reads a real size instead of silently defaulting to M. classify-size stays the utility to re-classify when scope changes. If docs/architecture-map.md exists (from map-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-architecture first, 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.md is absent, auto-create it with the documented default frontmatter (every key + its allowed values explained inline) and patch .gitignore; then read interview_depth from it (else default medium), and — unless a --depth=easy|medium|hard arg was passed (which skips the question) — ask ONE depth-selection AskUserQuestion phrased 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.)

  2. Capture the idea (interview front). One AskUserQuestion for 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.

  3. 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 against CONTEXT.md and 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.

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

Полный SKILL.md на GitHub

Установить write-prd в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/ask-examples.mdreferences/checklist.mdreferences/critic-phase.mdreferences/critic-prompt.mdreferences/critic.mdreferences/draft-generation.mdreferences/socratic-loop.mdtemplates/PRD-template.md

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), без исполняемых скриптов.

Похожие скиллы

Сравнить write-prd с