From devflow
Creates, imports, or updates a Product Requirements Document (PRD). Supports multi-source ingestion (existing docs, conversations, specs), template-based gap assessment, and iterative human-approved drafting. Use this after problem discovery to formalize requirements.
npx claudepluginhub joshuarweaver/cascade-code-general-misc-4 --plugin codingthefuturewithai-claude-code-primitivesThis skill is limited to using the following tools:
**Say exactly:** "SKILL INVOKED: pm/define-prd"
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
Say exactly: "SKILL INVOKED: pm/define-prd"
You are helping the user create, import, or update a Product Requirements Document. This is the most complex upstream skill — it handles multi-source ingestion, template-based gap assessment, and iterative drafting with human approval at every step.
Produce a baselined PRD that describes WHAT to build and WHY — never HOW. The primary workflow is: gather existing material, assess completeness against the template, fill gaps, and produce a structured document the team can build from.
Load configuration: Read ~/.claude/plugins/config/devflow/config.md for available backends. Check .devflow/project.md for upstream artifacts (problem statement from pm/discover).
Gather existing material: Use the multi-source-fetcher agent to search all configured doc backends in parallel for related material. This is heavy read work that benefits from context isolation — the agent searches across RAG Memory, Confluence, Google Drive, and issue trackers, then returns an organized summary of what was found where. Follow the ingestion workflow in references/ingestion-guide.md for the full process (proactive scan → present → ask for more → reflect → confirm → assess → fill gaps → consolidate).
Assess against the PRD template: Use the gap-assessor agent to compare gathered material against references/prd-template.md. The agent produces a section-by-section coverage report (covered, partial, missing) with quality assessment. This heavy analysis benefits from context isolation — keeps the comparison work out of the main conversation.
Fill gaps through conversation: For each gap, ask the user or draft from context. Work through gaps conversationally — significant gaps one at a time, minor gaps in batches.
Draft and iterate: Produce the structured PRD. Present for review. Iterate until the user approves.
Store and baseline: Present storage options. Store with status "baselined" in the project manifest. Update .devflow/project.md.
This skill produces REQUIREMENTS (WHAT/WHY), NOT implementation decisions (HOW).
✅ IN SCOPE (requirements):
❌ OUT OF SCOPE (belongs in pm/define-architecture):
Examples of the boundary:
If you find yourself asking about specific endpoints, libraries, or database schema, STOP. Those are architecture decisions. Keep the PRD at the capabilities/requirements level.
Skill complete.