/prd-generator:prd-generator <project name, idea, or path to an existing repo>from prd-generator
Generates or revises a Product Requirements Document through a short bilingual interview. Reads existing repos to pre-fill answers. Exports Markdown PRD, JSON tasks, Mermaid roadmap, and .cursorrules.
Ships in prd-generator. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Turn an idea — or a half-finished repo — into a complete PRD plus machine-readable exports, through a warm conversational interview.
The interview only works if it feels like talking to a friend, not filling a form.
gw/lu if they use it), switch to English when they do.Ask questions with the host agent's structured prompt tool:
| Host | Tool |
|---|---|
| Qoder CLI | AskUserQuestion |
| Claude Code | AskUserQuestion |
| Codex / OpenCode / plain terminal | ask directly in chat, one round per message |
AskUserQuestion caps at 4 questions per call — that is why the interview runs
in rounds instead of 16 sequential popups. Always leave free-text available
(via the "Other" option) for open-ended answers like the description.
Before anything else, register the six procedure phases in the host's task tracker so a long interview can't silently drop a step:
| Host | Tracker |
|---|---|
| Qoder CLI | TaskCreate / TaskUpdate |
| Claude Code | TodoWrite |
| Codex / OpenCode / terminal | keep a - [ ] checklist, updating it in chat each phase |
in_progress when entering it, completed only once its exit
condition holds: 0 context known · 1 every answer evidenced or confirmed ·
2 file written · 3 validator PASS · 4 summary shown · 5 exports on disk or
the user declined them.FAIL.<basename>.tasks.json (P0 first) only
after the user asks to start building.Run these phases in order. Load the reference file for the phase you are in — do not improvise the question set from memory.
Before asking anything, check whether the project already exists:
package.json / pyproject.toml / README*, list the source tree, and
sample entry points.PRD.md, docs/PRD-*.md, *-PRD.md) → skip to
references/revise.md and ask what to change.Pre-fill as many interview answers as the codebase honestly supports, show the
user that draft, and only ask about the gaps. Loading
references/interview.md gives the full rule set.
Load references/interview.md. 16 questions in 4 rounds (basics →
problem/context → features/scope → tech/timeline/metrics/language), pre-filled
answers skipped, gaps asked. A 5th round (business model, compliance,
integrations, maintenance) runs only when the project touches those — never by
default. Never silently skip a question that has no evidence behind it.
Load references/generate.md and assets/prd-structure.md. Write the PRD to
<project>/docs/PRD-<slug>.md, or PRD.md at the project root when there is
no docs/; for a pure idea with no project, write to ./PRD-<slug>.md. Confirm
the path in one line before writing.
Run the validator and fix every FAIL before showing the result as done:
node scripts/validate_prd.mjs <path-to-PRD.md>
It checks required sections, leftover [...] placeholders, user stories
missing a "so that" or acceptance criteria, and an absent priority bucket.
Print the PRD path, the validator result, then a 3-5 sentence non-technical summary. Do not paste the whole document back into chat unless asked.
Offer exports (references/export.md):
node scripts/export_prd.mjs <path-to-PRD.md> --format all --out <project>/docs/
This writes PRD-<slug>.tasks.json, PRD-<slug>.roadmap.md, and
PRD-<slug>.cursorrules. On any change request, follow references/revise.md,
then re-run steps 3 and 5 so exports never drift from the PRD.
references/interview.md — 16-question flow in 4 rounds, conditional round 5, pre-fill rulesreferences/generate.md — section-by-section PRD writing rulesreferences/revise.md — targeted edits and cross-section consistencyreferences/export.md — export formats and script usageassets/prd-structure.md — the fill-in templatescripts/lib.mjs — shared PRD parser and completeness checksscripts/validate_prd.mjs — deterministic completeness checkscripts/export_prd.mjs — PRD → tasks.json / roadmap.md / .cursorrulesassets/prd-structure.md (opens in a new tab)references/export.md (opens in a new tab)references/generate.md (opens in a new tab)references/interview.md (opens in a new tab)references/revise.md (opens in a new tab)scripts/export_prd.mjs (opens in a new tab)scripts/lib.mjs (opens in a new tab)scripts/validate_prd.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
prd, product-requirements, planning, bilingual, project-scoping
npx claudepluginhub vann4799/ai-prd-generator --plugin prd-generatorOther plugins' skills for the same job