К основному содержанию
скилл CX Codex

prd-writing — скилл для Claude Code: что делает и как установить

Пошаговый сценарий для составления продуктовых требований (PRD) из 6 этапов и шаблона на 12 разделов. Помогает агенту собрать контекст до кодинга.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add AsyrafHussin/agent-skills --skill prd-writing -a claude-code
Открыть на GitHub

Что делает prd-writing

Скилл запрещает агенту сразу приступать к коду или черновику без исследования. Сначала помощник проверяет репозиторий: если код уже есть, анализирует существующие маршруты, модели и авторизацию. Для новых проектов агент задаёт от 3 до 5 уточняющих вопросов с вариантами ответов о проблеме, пользователях, ограничениях и критериях готовности.

После сбора фактов агент формирует документ по структуре из 12 разделов, включая нефункциональные требования, границы скоупа, техническую спецификацию и список не-целей. Итоговый файл сохраняется по пути docs/prd/{feature-name}.md с YAML-шапкой. Для работы скилла не нужны внешние ключи или серверы: логика опирается на 25 встроенных правил проектирования.

Какие задачи решает

  • составить детальный PRD по шаблону из 12 разделов
  • зафиксировать границы фичи и список не-целей до начала разработки
  • собрать требования и контекст кодовой базы перед постановкой задач
  • описать проверяемые критерии приёмки в формате Given/When/Then

Примеры запросов агенту

  • Составь PRD для новой системы авторизации через OAuth
  • Подготовь спецификацию требований для интеграции со Stripe
  • Создай PRD для рефакторинга роутинга в docs/prd/routing.md

Как установить prd-writing

1Через Skills CLI (Vercel)

npx skills add AsyrafHussin/agent-skills --skill prd-writing -a claude-code

2Вручную: положить файлы

~/.claude/skills/prd-writing/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/prd-writing/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о prd-writing

Как установить prd-writing в Claude Code?

Выполните команду npx skills add AsyrafHussin/agent-skills --skill prd-writing -a claude-code. Файл спецификации сохранится в директорию ~/.claude/skills/prd-writing/SKILL.md.

Что делает скилл prd-writing?

Он направляет агента по шести шагам разработки PRD: от анализа кодовой базы и опроса пользователя до оформления 12 секций спецификации и сохранения готового документа.

Куда сохраняются готовые спецификации?

Скилл записывает документ в файл docs/prd/{feature-name}.md с метаданными статуса и даты в заголовке frontmatter.

Исходный текст

SKILL.md · MIT
---
name: prd-writing
description: Step-by-step workflow for writing Product Requirements Documents. Use when creating PRDs, documenting features, writing specifications, or planning new products. Triggers on "write PRD", "create PRD", "document requirements", "feature spec", or "product requirements".
license: MIT
metadata:
  author: agent-skills
  version: "1.0.0"
---

# PRD Writing

Step-by-step workflow for writing clear, actionable Product Requirements Documents. Follow the 6-step process below, using the 25 rules across 7 categories as supporting knowledge.

## Metadata

- **Version:** 1.0.0
- **Rule Count:** 25 rules across 7 categories
- **License:** MIT

## Workflow

Follow these steps in order. Skip a step only if the user has already provided that information. Do NOT start drafting before completing discovery.

### Step 1: Assess Project State

Determine what you're working with:

- **Existing project** — code exists → explore the codebase first (models, routes, controllers, auth, patterns). See `disc-codebase-exploration`.
- **Empty/greenfield project** — no code yet → ask the user what they want to build first. Brainstorm together until the product idea and core features are clear, then ask about planned stack, architecture decisions, and constraints.

### Step 2: Ask Clarifying Questions

Ask 3-5 targeted questions to fill knowledge gaps. Use **lettered options** (A/B/C) when there are clear choices, and open-ended questions when you need free-text answers. Focus on:

1. **Problem** — What problem are we solving? Why now?
2. **Users** — Who are the target users?
3. **Scope** — What should it NOT do?
4. **Success** — How do we know it's done?
5. **Constraints** — Timeline, budget, team size?

Mark unknowns as TBD, not assumptions. See `disc-clarifying-questions`.

### Step 3: Draft the PRD

Use the template from `struct-prd-template` and fill in all 12 sections:

1. **Executive Summary** — 1 paragraph: problem, solution, impact
2. **Problem Statement** — what, who, evidence, why now
3. **Goals & Success Metrics** — 3-5 measurable KPIs
4. **User Personas** — primary and secondary with roles/goals/pain points
5. **User Stories & Acceptance Criteria** — "As a / I want / So that" with checkboxes
6. **Functional Requirements** — numbered FR-1, FR-2, etc.
7. **Non-Functional Requirements** — performance, security, accessibility with specific numbers
8. **Technical Specifications** — data model, auth, routes, integrations
9. **Out of Scope** — what we're NOT building and why
10. **Non-Goals** — what we're NOT optimizing for
11. **Dependencies & Risks** — blockers with owners and mitigations
12. **Open Questions** — unresolved items with owners and due dates

**Key rules to follow while drafting:**
- Start with the problem, not the solution (`disc-problem-first`)
- Replace vague language with numbers (`metric-no-vague-language`)
- Every requirement must be testable (`quality-acceptance-criteria`)
- Use Given/When/Then for complex acceptance criteria

### Step 4: Present for Review

Show the draft to the user. Ask specifically:
- Does the problem statement match your understanding?
- Are user stories missing any workflows?
- Are the scope boundaries correct?
- Any open questions I should resolve?

### Step 5: Revise Based on Feedback

Incorporate feedback, resolve open questions, and update the PRD. Add a review history entry if the PRD will be shared with a team.

### Step 6: Save the PRD

Save to `docs/prd/{feature-name}.md` using kebab-case naming. Include frontmatter:

```markdown
---
title: Feature Name
status: draft
author: Author Name
created: YYYY-MM-DD
updated: YYYY-MM-DD
---
```

## Rules Reference

The 25 rules below provide detailed guidance for each step. Read them when you need deeper context.

### 1. Discovery (CRITICAL)

- `disc-problem-first` - Start with the problem, not the solution
- `disc-clarifying-questions` - Ask clarifying questions before writing
- `disc-codebase-exploration` - Explore the codebase before drafting
- `disc-stakeholder-alignment` - Align with stakeholders on goals and constraints

### 2. Structure (CRITICAL)

- `struct-standard-sections` - Use standardized PRD sections
- `struct-executive-summary` - Write a concise executive summary
- `struct-prd-template` - Provide a ready-to-use PRD template
- `struct-output-location` - Save PRDs to a consistent file location
- `struct-single-source-of-truth` - PRD is the definitive reference for a feature

### 3. Requirements (HIGH)

- `req-user-personas` - Define target user personas
- `req-user-stories` - Write user stories with acceptance criteria
- `req-functional` - Define specific functional requirements
- `req-non-functional` - Define non-functional requirements

### 4. Scope (HIGH)

- `scope-out-of-scope` - Explicitly define what is out of scope
- `scope-non-goals` - List non-goals to protect timeline
- `scope-dependencies` - Identify dependencies and blockers

### 5. Metrics (HIGH)

- `metric-measurable-success` - Define measurable success criteria
- `metric-no-vague-language` - Replace vague terms with quantifiable benchmarks
- `metric-kpis` - Define 3-5 key performance indicators

### 6. Technical (MEDIUM)

- `tech-data-model` - Document the data model and relationships
- `tech-auth-model` - Define authentication and authorization
- `tech-api-routes` - Document API and route structure
- `tech-integration-points` - Identify third-party integrations

### 7. Quality (MEDIUM)

- `quality-acceptance-criteria` - Write testable acceptance criteria
- `quality-iterative-review` - Iterate with feedback before finalizing

## References

- [Lenny's Newsletter - How to Write a Great PRD](https://www.lennysnewsletter.com/p/how-to-write-a-great-prd)
- [Silicon Valley Product Group - Product Discovery](https://www.svpg.com/product-discovery/)
- [Shape Up - Basecamp](https://basecamp.com/shapeup)
- [Writing Great Specifications - Kamil Nicieja](https://www.manning.com/books/writing-great-specifications)
- [Atlassian - Product Requirements Document](https://www.atlassian.com/agile/product-management/requirements)

## Full Compiled Document

For the complete guide with all rules expanded: `AGENTS.md`

© agent-skills · MIT · AsyrafHussin/agent-skills

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

Все скиллы по теме «Тексты и документация» →
grill-with-docs Matt Pocock Скилл проводит жёсткое интервью по плану или дизайну и по ходу создаёт ADR и глоссарий. Подойдёт перед началом сложной разработки. 1 219 756установок skill-creator официальный anthropics Помогает создать новый скилл, доработать существующий и проверить результат через тестовые промпты и оценки. 414 180установок setup-matt-pocock-skills Matt Pocock Скилл настраивает репозиторий для инженерных скиллов Matt Pocock: задаёт трекер задач, метки триажа и расположение доменной документации. Запустите его перед первым использованием остальных скиллов. 1 052 851установок handoff Matt Pocock Собирает текущий диалог в документ передачи, чтобы другой агент продолжил работу с нужным контекстом. Нужен при смене сессии или исполнителя. 1 038 491установок triage Matt Pocock Скилл проводит issue и внешние PR через роли триажа, проверку и подготовку брифа для агента. Подойдёт мейнтейнеру, который разбирает очередь задач. 990 453установок domain-modeling Matt Pocock Скилл помогает уточнять термины проекта, вести GLOSSARY.md и фиксировать архитектурные решения в ADR. Нужен, когда модель предметной области меняется. 876 391установок

Из того же набора22

git-workflow Задаёт правила для коммитов по Conventional Commits, именования веток и оформления pull request. Пригодится при наведении порядка в истории Git. CX Codex +1 837установок e2e-playwright-testing Скилл для написания и разбора E2E-тестов на Playwright: локаторы, авторизация, формы, ассерты и конфиг для CI. CX Codex +1 796установок state-management Скилл с готовыми паттернами TanStack Query v5 и Zustand v5: запросы, кеш, мутации, оптимистичные обновления и клиентские сторы. CX Codex +1 783установок code-slop Находит паттерны сгенерированного ИИ кода в PHP/Laravel и TypeScript/React. Помогает при ревью пулреквестов отсеять избыточные обёртки, пустые тесты и очевидные комментарии. CX Codex +1 769установок seo-best-practices Скилл проверяет SEO веб-приложений и помогает внедрять метатеги, JSON-LD, sitemap, Open Graph и настройки Core Web Vitals. CX Codex +1 724установок laravel-ai-sdk Скилл с 17 правилами для пакета laravel/ai. Помогает проектировать агентов, генерировать медиа и настраивать RAG в проектах на Laravel 13. CX Codex +1 656установок laravel-mcp Скилл для разработки MCP-серверов на Laravel: инструменты, промпты, ресурсы и защита через OAuth или Sanctum. CX Codex +1 651установок project-docs Скилл ведёт документацию проекта от создания до уборки: раскладывает файлы по папкам, проверяет свежесть и вычищает мусор, оставшийся от ИИ. CX Codex +1 644установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой