PRD Generator Skill

Generate a Product Requirements Document through a short conversational
interview instead of making someone write one. Works with Claude Code, Codex,
OpenCode, Hermes Agent, and Qoder CLI.
The skill interviews in rounds of at most four questions, reads an existing repo
first and pre-fills every answer the code can prove, writes the PRD from a fixed
template, validates it with a deterministic script, and exports it to a JSON task
list, a Mermaid roadmap, and a hand-off file for coding agents. The interview is
bilingual — natural Indonesian or English, whichever the user speaks.
Why it exists: a PRD written from a blank page is either a wish list or a wall of
text. This one is interviewed out of you, checked by a script, and exported into
the formats the build actually consumes.
Install
The skill itself lives in skills/prd-generator/ —
SKILL.md plus its references, template and scripts.
One command
npx github:Vann4799/ai-prd-generator --list # see what it would touch
npx github:Vann4799/ai-prd-generator # install into detected agents
It copies skills/prd-generator/ into each agent skills folder it finds
(~/.claude/skills, ~/.codex/skills, ~/.agents/skills), refuses to overwrite
without --force, and prints the hermes skills add command instead of guessing
at Hermes. --host claude,qoder or --dir <path> narrow it down. No network, no
dependencies.
Claude Code plugin
/plugin marketplace add Vann4799/ai-prd-generator
/plugin install prd-generator@vann4799-prd
By hand
git clone https://github.com/Vann4799/ai-prd-generator.git /tmp/aiprd
Then copy skills/prd-generator/ into whichever skills directory your agent
reads. ~ is %USERPROFILE% on Windows.
Claude Code
cp -r /tmp/aiprd/skills/prd-generator ~/.claude/skills/
Codex / OpenCode
cp -r /tmp/aiprd/skills/prd-generator ~/.codex/skills/
Hermes Agent
hermes skills add /tmp/aiprd/skills/prd-generator
Qoder CLI
cp -r /tmp/aiprd/skills/prd-generator ~/.agents/skills/
Restart the session (or reload skills) so the new skill is discovered.
Use
Write a PRD for my grocery-store POS app
Generate a PRD for this repo and pre-fill what the code already proves
Turn this idea into requirements: a booking app for barbershops
Revise the PRD — cut P1 down to two features and re-export
The agent then:
- Registers the six phases as tracked tasks, so progress is visible and no step
gets dropped halfway through.
- Reads the repo if one exists and shows a pre-filled draft, asking only about
the gaps it cannot evidence.
- Asks 16 questions in 4 rounds — basics, problem and context, features and
scope, tech and timeline — plus a 5th round only when the project touches
payments, personal data, integrations, or post-launch maintenance.
- Writes
docs/PRD-<slug>.md from the template.
- Runs the validator and clears every
FAIL before calling it done.
- Gives a 3-5 sentence non-technical summary, then exports on request.
What the validator enforces
Not vibes — exit codes. On the shipped fixtures:
$ node scripts/validate_prd.mjs tests/fixtures/good/PRD.md
PASS 11/11 sections, 2 P0 features, 0 warning(s)
$ node scripts/validate_prd.mjs tests/fixtures/bad/PRD.md
FAIL missing section: Risks
FAIL 1 unfilled placeholder(s), first on line 7
FAIL 1 leftover TODO:, first on line 40
FAIL user story "Barcode checkout" has no "so that" clause
FAIL P0 feature "Barcode checkout" has no acceptance criteria
FAIL P0 feature "Offline sales queue" has no user story
WARN non-technical summary has ~1 sentence(s), aim for 3-5
6 failed, 1 warning(s) — fix before publishing
Eleven required sections, no leftover [placeholders] or TODO: strings, a
non-empty P0 bucket, a user story and acceptance criteria for every P0 feature,
a "so that" clause in every story, and a summary a layperson can read. The
exporter refuses to run on a PRD that fails, so exports never drift from the
document.
Layout