write-stories — команда для Claude Code: истории и установка
Команда write-stories разбивает описание функции или PRD на элементы бэклога с критериями приёмки. Выберите формат: user stories, job stories или WWA.
MIT ★ 28 211 обновлён 2026-10-16
/plugin marketplace add phuryn/pm-skills
/plugin install pm-execution@pm-skillsЧто делает write-stories
Передайте команде описание функции или PRD и укажите формат. Она разложит задачу на независимые элементы, упорядочит их по зависимостям и приоритету, добавит критерии приёмки и отметит задачи, которым нужны дизайн или техническое исследование. Результат оформляется как Markdown-бэклог.
Для user stories команда проверяет элементы по INVEST, для job stories описывает ситуацию и мотивацию, а WWA связывает стратегическую причину, результат и критерии. Обычно команда формирует от 5 до 15 историй и от 3 до 5 критериев на каждую; крупную задачу предлагает сгруппировать в эпики или этапы. Если формат не задан, она спросит о предпочтении и рекомендует user stories. Критерии должны быть проверяемыми, поэтому расплывчатое описание функции потребует уточнений.
Какие задачи решает
- разбить описание функции на независимые элементы бэклога
- сформулировать критерии приёмки для каждой истории
- выбрать формат историй под подход команды
- расставить элементы по зависимостям и приоритету
- выделить задачи для дизайна или технического исследования
Примеры запросов агенту
- Разбей PRD на job stories: система уведомлений о сроках задач.
- Оформи функцию экспорта отчётов в PDF и CSV как user stories.
- Разложи тёмную тему мобильного приложения в формате WWA.
Как установить write-stories
1Через маркетплейс плагинов
/plugin marketplace add phuryn/pm-skills/plugin install pm-execution@pm-skills2Вручную: положить файлы
.claude/commands/write-stories.mdВызов — /write-stories. Для всех проектов — ~/.claude/commands/
Вручную: положить файлы
~/.codex/prompts/write-stories.mdВызов — /prompts:write-stories. В Codex этот формат помечен устаревшим, замена — скиллы
Вручную: положить файлы
.github/prompts/write-stories.prompt.mdВручную: положить файлы
.gemini/commands/write-stories.tomlGemini хранит команды в TOML: текст запроса — в поле prompt
Вопросы о write-stories
Как установить write-stories в Claude Code?
Выполните /plugin marketplace add phuryn/pm-skills и затем /plugin install pm-execution@pm-skills.
Что делает write-stories?
Команда превращает описание функции или PRD в упорядоченный бэклог с критериями приёмки. Можно выбрать user stories, job stories или WWA.
Какие форматы поддерживает write-stories?
User stories строятся вокруг роли пользователя и его цели, job stories — вокруг ситуации и мотивации, а WWA связывает причину, результат и критерии приёмки.
Исходный текст
write-stories.md · MIT
--- description: Break a feature into backlog items — user stories, job stories, or WWA format with acceptance criteria argument-hint: "[user|job|wwa] <feature description or PRD>" --- # /write-stories -- Backlog Item Generator Break a feature into well-structured backlog items. Choose from three formats based on your team's preference, each with full acceptance criteria. ## Invocation ``` /write-stories user Allow users to export reports as PDF and CSV /write-stories job Notification system for task deadlines /write-stories wwa Dark mode for the mobile app /write-stories [upload a PRD or feature spec] # asks format preference /write-stories # asks for feature and format ``` ## Formats ### User Stories **Format**: "As a [user type], I want [capability], so that [benefit]" Apply the **user-stories** skill: - Follow the 3 C's: Card (brief), Conversation (context), Confirmation (acceptance criteria) - Validate against INVEST: Independent, Negotiable, Valuable, Estimable, Small, Testable - Include design links or mockup references where relevant ### Job Stories **Format**: "When [situation], I want to [motivation], so I can [outcome]" Apply the **job-stories** skill: - Focus on the situation and context, not the user role - Ground in real user scenarios observed in research - Ideal for JTBD-oriented teams ### WWA (Why-What-Acceptance) **Format**: Why [strategic context] → What [deliverable] → Acceptance [criteria] Apply the **wwas** skill: - Includes strategic reasoning (why we're building this) - Produces independent, valuable, testable items - Good for cross-functional teams that need business context ## Workflow ### Step 1: Accept the Feature Accept in any form: PRD, feature description, user research finding, or verbal idea. If a PRD is provided, extract the requirements to decompose. ### Step 2: Determine Format If not specified in the invocation, ask: - "Which format does your team use? **User stories**, **Job stories**, or **WWA**?" - If unsure, recommend user stories as the default ### Step 3: Decompose the Feature - Break the feature into 5-15 independent stories (small enough to complete in one sprint) - Ensure each story is independently valuable (delivers user value on its own) - Order by dependency and priority - Write 3-5 acceptance criteria per story - Flag stories that need design input or technical spikes ### Step 4: Generate Stories ``` ## Backlog: [Feature Name] **Format**: [User Stories / Job Stories / WWA] **Total stories**: [count] **Estimated total effort**: [if possible] ### Stories #### Story 1: [Short title] **[The story in chosen format]** Acceptance Criteria: - [ ] [Criterion 1] - [ ] [Criterion 2] - [ ] [Criterion 3] Priority: [P0/P1/P2] | Effort: [S/M/L] | Dependencies: [none or list] --- [Repeat for each story] ### Story Map [Visual ordering: must-have → should-have → nice-to-have] ### Technical Notes [Cross-cutting concerns: API changes, data migration, infrastructure] ### Open Questions [Things that need answers before implementation can start] ``` Save as markdown. ### Step 5: Offer Next Steps - "Want me to **generate test scenarios** for these stories?" - "Should I **create dummy data** for development and testing?" - "Want me to **estimate sprint capacity** for these stories?" - "Should I **convert to a different format** (user stories ↔ job stories ↔ WWA)?" ## Notes - One story = one deployable unit of value — if it needs another story to be useful, they should be combined - Acceptance criteria should be testable by QA without additional interpretation - Error handling and edge cases deserve their own stories, not bullet points within a happy-path story - If the feature is large (15+ stories), suggest grouping into epics or phases - Flag any story that requires a spike (technical investigation before estimation is possible)
© Paweł Huryn · MIT · phuryn/pm-skills