# Setup guide — PRD Drafting Agent

## 1. Install and connect

Install the agent and connect your docs/notes source.

```
pipx install prd-agent
prd-agent connect --notes notion --out gdocs
prd-agent doctor
```

## 2. Configure grounding guardrails

No fabricated research/metrics is enforced here.

```
cp .env.example .env
ANTHROPIC_API_KEY=sk-ant-...
GROUND_IN_INPUT=true
NO_FABRICATED_RESEARCH=true
METRICS_PROVIDED_OR_TBD=true
```

## 3. Set your PRD template

Define the sections your team uses.

```
# prd.yml
sections: [problem, goals, user_stories, requirements, success_metrics, assumptions, open_questions]
label_proposed_items: true
```

## 4. Draft from notes

Generate a PRD and review assumptions and open questions.

```
prd-agent run --notes ./feature-notes.md --explain
# prints PRD draft + assumptions + open questions + decisions_for_pm
```

## 5. Wire into your workflow

Turn discovery notes into draft PRDs for refinement.

```
# notes/brief -> draft PRD -> PM refines, resolves open questions, sets metrics
```
