From dev-workflow
Plan a new feature with structured PRD documentation. Researches codebase patterns, designs implementation phases, and writes PRD files to .dev/. Use when starting a new feature, spike, or major task.
How this skill is triggered — by the user, by Claude, or both
Slash command
/dev-workflow:dev-planThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Run the [discovery script](scripts/discover.sh):
Run the discovery script:
bash "$DISCOVER" root
Where $DISCOVER is the absolute path to scripts/discover.sh within this skill's directory.
Path safety — shell state does not persist between tool calls, so you must provide full script paths on each call:
$HOME instead of the literal home directory (e.g., bash "$HOME/code/…/discover.sh", not bash "/Users/name/…/discover.sh"). This prevents username hallucination.$PROJECT_ROOT), copy it verbatim from that command's output. Never retype a path from memory.Store the output as $PROJECT_ROOT. If the command fails, inform the user and stop.
The sole deliverable is PRD files written to $PROJECT_ROOT/.dev/$FEATURE_NAME/.
Produce documentation, not code. Every session must end with files on disk.
This is part of a 3-skill system (/dev-plan → /dev-checkpoint → /dev-resume). The other skills parse PRD files using status markers (⬜/✅), phase gates, file changes summary, and sub-PRD links.
Plan mode: If active, write a PRD summary to the plan file, call ExitPlanMode, then write full PRD files after approval.
This skill uses specialized agents for research and planning:
Agent definitions are in agents/ within this skill's directory.
$ARGUMENTS
The 3 key questions for this phase:
If $ARGUMENTS above is non-empty (the user provided a feature description):
If $ARGUMENTS above is empty (the user ran /dev-plan with no arguments):
Guardrail: Once confirmed (Path B) or summarized (Path A), move to research. Don't linger here.
$FEATURE_NAMEBefore creating any directories or files, set a safe feature slug in $FEATURE_NAME.
Normalize and validate with the validation script:
bash "$VALIDATE" normalize "<candidate-name>"
Where $VALIDATE is the absolute path to scripts/validate.sh within this skill's directory. Apply the path safety rules from Step 0 ($HOME, copy from output). Outputs $FEATURE_NAME on success; on failure, STOP immediately — do not continue with an unvalidated path.
Rules:
$ARGUMENTS directly in file paths.$FEATURE_NAME for all .dev/ path references.Launch 2-3 prd-researcher agents in parallel using the Task tool with different focuses:
Agent 1: "Find similar implementations and patterns to reuse for [feature]. Include file:line references."
Agent 2: "Identify architecture constraints, dependencies, and integration points for [feature]."
Agent 3: "List all files that will need modification for [feature] and what changes are needed."
Use subagent_type=dev-workflow:prd-researcher and model=sonnet for each agent.
file:line refs)Keep it to ~10-15 lines.
STOP. Do not proceed to Phase 3 until the user confirms the research findings or provides corrections.
Guardrail: Research serves the PRD. Move to writing after one research round. If deeper investigation is requested, do one more round — then write.
Launch 1 prd-planner agent to design the implementation structure:
"Design implementation phases for [feature].
Research findings: [summarize key patterns and files from Phase 2].
Determine if this needs sub-PRDs (complex) or a single PRD (simple)."
Use subagent_type=dev-workflow:prd-planner.
STOP. Do not create any files until the user confirms the architecture approach or requests adjustments.
$PROJECT_ROOT/.dev/$FEATURE_NAME/:
00-master-plan.md — use the Master Plan template in prd-templates.md01-sub-prd-[name].md etc. — use the Sub-PRD template in prd-templates.md/dev-checkpoint to save a continuation prompt.Guardrail: Files MUST be created. If this phase is reached without writing, stop everything else and write the PRD.
findings.md)NEVER include in PRD files — use safe alternatives:
<API_KEY>, $ENV_VAR)npx claudepluginhub andreaserradev-gbj/dev-workflow --plugin dev-workflowGenerates a structured Product Requirements Document (PRD) from feature descriptions. Analyzes codebase (package.json, configs, README), processes references, asks clarifying questions, saves to .plans/. Use for new feature planning.
Generates Product Requirement Plans (PRPs) for feature implementation via systematic codebase analysis and external research. Use when requesting PRP, PRD, or detailed implementation plans.
Generates structured Product Requirements Documents via interview, codebase research using Explore/librarian, planning, and approval workflow. Triggers on '/ralph-plan <topic>', 'create prd', 'generate prd', 'plan this'.