Agent skill · luongnv89

prd-generator

Generate Product Requirements Documents from `idea.md` and `validate.md` files. Use when asked to create or update a PRD. Don't use for TAD, sprint tasks, or raw idea validation.

What it needs

About 5k tokens when loaded.

What this skill does

PRD Generator Generate comprehensive Product Requirements Documents from validated idea files. Repo Sync Before Edits (mandatory) Before creating/updating/deleting files in an existing repository, sync the current branch with remote: If the working tree is not clean, stash first, sync, then restore: If origin is missing, pull is unavailable, or rebase/stash conflicts occur, stop and ask the user before continuing. Input Preferred: project folder path in $ARGUMENTS containing: idea.md - Product concept and technical context (required) validate.md - Evaluation and recommendations (required) If path is not provided (auto-pick mode): 1. Reuse the most recent project folder path from this chat/session (typically from idea-validator output). 2. If unavailable, use env var IDEASROOT when present. 3. Else check shared marker file ~/.config/ideas-root.txt. 4. Backward compatibility fallback: ~/.openclaw/ideas-root.txt. 5. If still unavailable, ask the user to provide the path or set IDEASROOT. 6. If multiple candidates are plausible, ask user to choose. Workflow Mode selection (decide before Phase 1): If PROJECTDIR/prd.md already exists and the user wants changes to it, this is a modify run — do Phase 1's steps 1-4 (including the mandatory backup), then skip to ## Modification Mode below instead of Phases 2-5, rejoining the workflow at Phase 6. Otherwise this is a create run — proceed through Phases 1-7 in order. Both modes share Phase 1's backup step; see ## Modification Mode for modify-run detail. Phase 1: Validate Input 1. Resolve PROJECTDIR (from $ARGUMENTS or auto-pick mode above) 2. Check PROJECTDIR/idea.md exists 3. Check PROJECTDIR/validate.md exists 4. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills luongnv89/prd-generator

View the source on GitHub

Browse the @skills marketplace