Create prd

From FradSer/dotclaude · View interactive version

Create prd is an AI agent skill from the GitHub repository FradSer/dotclaude. This skill should be used when the user asks to "create PRD", "write product requirements document", or mentions "PRD", "product requirements document".

How to use this skill

Skill file

PRD Creation

Follow the phases below to transform product ideas into a complete PRD document. All PRD content is written in Chinese (the target audience is Chinese-speaking teams).

Output Mode

Determine output mode from $ARGUMENTS:

| Argument | Mode | Output |

|----------|------|--------|

| --md (default) | Local Markdown | Save as .md file to project directory |

| --lark | Feishu Cloud Doc | Create via lark-cli using Lark rich-text features |

--lark mode accepts optional location arguments (mutually exclusive), supporting token or Feishu URL:

Pass URL directly to lark-cli — no manual token extraction needed. Defaults to user's personal space root when no location specified.

Phase 0: Import Context

Check for existing design or requirements documents:

  1. Search for docs/, prd/ directories or user-specified files
  2. If found, extract key information (problem statement, target users, core features) as pre-filled content
  3. If nothing found, skip this phase

Phase 1: Determine PRD Type

Ask the user which PRD type they need:

Phase 2: Gather Information

Follow the interview questions in references/prd-interview-questions.md, one question at a time. Wait for the answer before continuing.

If Phase 0 found pre-filled content, show it to the user for confirmation and skip covered questions.

Phase 3: Generate PRD Document

  1. Select template:
  1. Fill content: Use gathered information for each section, following references/prd-best-practices.md writing principles
  1. AI Agent consumability:
  1. Quality requirements:
  1. Format:

Phase 4: Validate and Save

Run validation per references/prd-validation-checklist.md — completeness, SMART goals, content quality, BDD acceptance criteria.

`--md` Mode

Save file after validation:

`--lark` Mode

Create Feishu document after validation:

  1. CRITICAL — Confirm standalone lark plugin (lark@frad-dotclaude) is installed; follow its lark-shared skill for authentication
  2. Follow the lark plugin's lark-doc skill for document creation guidance
  3. Refer to lark-doc-create.md for full docs +create parameters and Lark-flavored Markdown syntax
  4. Convert PRD content to Lark-flavored Markdown (see Feishu enhancements section)
  5. Create document:

```bash

lark-cli docs +create --title "PRD-[ProductName]-[YYYYMMDD]" \

[--folder-token TOKEN_OR_URL | --wiki-node TOKEN_OR_URL | --wiki-space ID_OR_URL] \

--markdown "<lark-flavored-markdown>"

```

  1. For longer PRDs, split: docs +create for first half, then docs +update --mode append for remaining sections
  2. If board_tokens are present:
  1. Report the document URL

Phase 5: Next Steps

After saving, suggest follow-up options:

Feishu Document Enhancements

CRITICAL — In --lark mode, use Lark-flavored Markdown syntax to leverage Feishu's rich-text capabilities.

Required Feishu Features by PRD Section

| PRD Section | Feishu Feature | Description |

|---|---|---|

| Project metadata (version/date/owner) | <lark-table> | Enhanced table with header row |

| Key risks/assumptions/dependencies | <callout> | Color-coded: risk=red, assumption=blue, dependency=yellow |

| Core goals / success metrics | <callout emoji="..." background-color="light-green"> | Highlight key OKRs |

| Priority comparison (P0/P1/P2) | <grid cols="3"> | Three-column side-by-side layout |

| User journey / business process | <whiteboard type="blank"> | Flowchart, filled via lark-whiteboard |

| System architecture | <whiteboard type="blank"> | Architecture diagram, filled via lark-whiteboard |

| Milestones / timeline | <whiteboard type="blank"> | Timeline chart |

| Non-goals / scope exclusions | <callout emoji="..." background-color="light-red"> | Red highlight for prohibited scope |

| Glossary / abbreviations | Two-column Markdown table | Compact reference |

| Decision records | <callout> + blockquote | Key decisions with rationale |

Whiteboard Rules

Insert whiteboards for: user journeys, system architecture, data flows, milestones, team organization. Skip for pure text, data-heavy content (use tables), or when user requests text-only.

Format Principles

Quality Principles

Supporting Files

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.