setup-prd

setup-prd is a command for Claude Code from Yassinello/claude-plugin-prd-workflow. It costs 17 tokens per session (2,530 once invoked), scanned A, original, MIT.

A command that prepares an isolated Git workspace for a product requirements document (PRD), a written feature plan. It creates a feature branch and worktree, assigns the PRD, marks it ready, and updates the work plan.

In plain words
What is it for?
Use it when starting implementation of a PRD, including draft PRDs that need a warning.
Why use it?
It keeps PRD work separate from the main branch while leaving the main workspace available for other work.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/yassinello/claude-plugin-prd-workflow/setup-prd
Clone the repo
git clone --depth 1 https://github.com/Yassinello/claude-plugin-prd-workflow

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for setup-prd

README.md
[![agentmods](https://agentmods.dev/badge/commands/yassinello/claude-plugin-prd-workflow/setup-prd.svg)](https://agentmods.dev/commands/yassinello/claude-plugin-prd-workflow/setup-prd)
Your own site
<a href="https://agentmods.dev/commands/yassinello/claude-plugin-prd-workflow/setup-prd"><img src="https://agentmods.dev/badge/commands/yassinello/claude-plugin-prd-workflow/setup-prd.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,530 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00017 $0.02530
Opus 5 $0.00009 $0.01265
Sonnet 5 $0.00003 $0.00506
Haiku 4.5 $0.00002 $0.00253

Measured 4d ago against content hash 6b9cb1bd9e67, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

setup-prd scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/setup-prd.md · 377 lines

How it starts

The opening of the file, as written. The whole thing — 377 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Setup PRD Command

Prepare development environment for a PRD by creating a feature branch, auto-assigning, and moving to Ready.

Purpose

Create isolated development environment for PRD:

  • Create feature branch
  • Set up Git worktree in worktrees/ (MANDATORY)
  • Auto-assign to current user
  • Move PRD to Ready (02-ready/)
  • Update WORK_PLAN.md
  • Keep main branch active in current window (CRITICAL)
  • Accept draft PRDs (with warning) for parallel workflow

⚠️ Critical Rules (MANDATORY)

1. Worktree Location

ALWAYS use worktrees/ subdirectory for consistency:

# ✅ CORRECT (Standard as of 2025-11-02)
git worktree add worktrees/prd-007-oauth2-integration feat/PRD-007-oauth2-integration

# ❌ WRONG (Old pattern - deprecated)
git worktree add ../watchora-prd-007 feat/PRD-007-oauth2-integration

Rationale:

  • ✅ Centralized organization (all worktrees in one place)
  • ✅ Easier to find and manage
  • ✅ Cleaner project structure
  • ✅ Consistent with modern Git worktree best practices

2. Branch Context

ALWAYS return to main branch after setup:

# After creating worktree, ensure we're on main
git checkout main

Rationale:

  • ✅ Main window stays on main (free for other work)
  • ✅ Feature work happens in separate Cursor window (worktree)
  • ✅ No accidental commits to feature branch in main window
  • ✅ Parallel workflow enabled

Step-by-Step Process

Step 1: List Available PRDs

Scan PRD directories for available PRDs:

# Check these directories:
- product/prds/01-draft/
- product/prds/02-ready/
- product/prds/03-in-progress/ (to show what's already being worked on)

Display table:

📋 **PRDs Available**

**Draft** (Review later on feature branch):
| # | PRD ID | Feature | Created |
|---|--------|---------|---------|
| 1 | PRD-007 | OAuth2 Integration | 2025-10-26 |
| 2 | PRD-008 | Dark Mode Support | 2025-10-26 |

**Approved** (Ready to code):
| # | PRD ID | Feature | Grade |
|---|--------|---------|-------|
| 3 | PRD-003 | Design System | A- |
| 4 | PRD-004 | Landing Page | B+ |

**In Progress** (Already being developed):
| # | PRD ID | Feature | Branch |
|---|--------|---------|--------|
| 5 | PRD-005 | API v2 | feature/PRD-005-api-v2 |

Which PRD? (number, PRD-XXX, or filename)

Read the full file on GitHub · 377 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 377 lines · 17 tokens per session scan A 6b9cb1bd9e67

Subscribe to this mod's changes

setup-prd is a command published in the GitHub repository Yassinello/claude-plugin-prd-workflow (12 stars, last pushed 9mo ago), licensed MIT. It adds 17 tokens to every session and 2,530 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.