Skip to content
Back to skills

Write Prd

ASecurity

Creates or updates the PRD (docs/prd.md) and user stories (docs/stories/R-NN.md) with acceptance criteria. Used by product-owner only.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsgoapi

Works with

  • api

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add sayeed1999/aidlc-agent-crew --skill write-prd --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Write Prd?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Write Prd
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sayeed1999-write-prd/badge)](https://www.skillsdirectory.com/skills/sayeed1999-write-prd)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: write-prd
description: Creates or updates the PRD (docs/prd.md) and user stories (docs/stories/R-NN.md) with acceptance criteria. Used by product-owner only.
---

# write-prd

## Files
```
docs/
  prd.md        # brief + story index
  stories/      # create if missing
    R-01.md     # one story per file
    R-02.md
```

## Steps
1. Read `docs/prd.md` and `docs/stories/` if they exist. Continue from the highest ID.
2. Write or update the brief. Put unknown or conflicting points under Open questions. Do not guess.
3. Write one file per story.
4. Sync the index and key journeys with the story files.
5. Remove items now covered by a story from Out of scope and Open questions.
6. Check every rule below.

## Brief: `docs/prd.md`
Examples show shape only. Never copy their content.

```markdown
# PRD: StockBook

## 1. Overview
- Problem: Shop owners lose track of stock kept on paper.
- Target user: Small shop owners
- Platform: android, web
- Pitch: Know what is on your shelves at any time.

## 2. Goals and non-goals
- Goals (max 3): Keep stock counts correct; spot shortages early
- Non-goals: Accounting; online selling

## 3. Roles
- Owner: runs the shop and manages products
- Staff: records stock coming in and going out

## 4. User stories
- R-01 Manage products [MVP] [MUST] [DRAFT]
- R-02 Record stock changes [MVP] [MUST] [DRAFT]
- R-03 Warn about low stock [PROD] [SHOULD] [DRAFT]

## 5. Key journeys
- J-01 Set up and track stock: R-01 -> R-02

## 6. Out of scope
- Barcode scanning

## 7. Open questions
- Can staff correct a wrong stock entry?
```

## User story: `docs/stories/R-01.md`
```markdown
# R-01 Manage products

- Status: DRAFT
- Stage: MVP
- Priority: MUST
- Source: notes
- Extends: -

## Background (optional)
Prices change often and the paper list goes out of date.

## Goal
As an owner, I want to:
- add a product
- change its name or price
- delete a product

so that the product list matches what the shop sells.

## Acceptance criteria
- Given no product named "Rice 5kg", When the owner adds it with price 450, Then it appears in the product list
- Given an empty name, When the owner saves, Then nothing is saved and the owner is asked for a name
- Given a price below 0, When the owner saves, Then nothing is saved and the owner is asked for a valid price
- Given "Rice 5kg" exists, When the owner adds the same name, Then it is rejected as a duplicate
- Given a product priced 450, When the owner changes the price to 480, Then the list shows 480
- Given a product, When the owner deletes it and confirms, Then it leaves the list
- Given a staff member, When they try to add, change, or delete a product, Then nothing changes and they are told only the owner can
- Given no products, When a user views the list, Then they are told there are none yet
```

## Fields
- Status: `DRAFT` (new or changed) or `APPROVED` (the user approved it)
- Stage: `MVP` or `PROD`, the release it belongs to
- Priority: `MUST` or `SHOULD`
- Source: `notes` (from the notes or the user) or `proposed` (from product-owner, `PROD` only)
- Extends: `-` or `R-NN`, the story this one adds to or replaces
- Platform: one or more of `android`, `ios`, `web`, `api-only`

## Rules

### Stories
- One cohesive outcome per story.
  - Group goals delivered together: add, edit, delete products.
  - Split goals that have separate value, delivery, or outcome: record stock, warn about low stock.
- Cover every goal and important edge case: success, invalid input, duplicates, empty state, who is not allowed.
- For calculated results, state the formula, ties, missing input, and who sees them.
- Use product language only. No endpoints, tables, frameworks, or screen names.

- Wrong: `POST /products` returns 201. Right: The product appears in the product list.
- Wrong: A row is saved in the products table. Right: The product is still there after reopening the app.
- Wrong: The Dashboard screen shows a toast. Right: The owner is told the product was saved.

### IDs and limits
- IDs are `R-NN`, sequential across both stages. Never renumber or reuse.
- At most 10 active (not deprecated) `MVP` stories. List extras under Out of scope, without an ID.
- Every active `MUST` story appears in at least one key journey.
- Index title, Stage, Priority, and Status match the story file.

### Changes
- Set `APPROVED` only after the user approves.
- Changing the goal or criteria of an `APPROVED` story resets it to `DRAFT`.
- Never rewrite an `MVP` story for `PROD`. Add a new story:

```markdown
# R-03 Warn about low stock

- Status: DRAFT
- Stage: PROD
- Priority: SHOULD
- Source: proposed
- Extends: R-02
```

- To deprecate, prefix the title in the file and the index. Keep both.

```markdown
- R-04 [DEPRECATED] Print stock list [MVP] [SHOULD] [APPROVED]
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.