# Setup guide — Content Repurposing Agent

## 1. Install and connect content sources

Install the agent and connect it to your content and destinations.

```
pipx install content-repurpose-agent
content-repurpose-agent connect --cms wordpress --out buffer
content-repurpose-agent doctor
```

## 2. Configure faithfulness guardrails

No-fabrication and review flags are enforced here.

```
cp .env.example .env
ANTHROPIC_API_KEY=sk-ant-...
NO_INVENTED_STATS=true
PRESERVE_NUMBERS_EXACTLY=true
FLAG_SENSITIVE_CLAIMS=true
```

## 3. Set brand voice & formats

Define your tone and the formats you want generated.

```
# brand.yml
voice: confident_but_grounded
formats: [linkedin, email, x_thread, summary]
banned: [superlatives_without_source, invented_stats]
```

## 4. Test on a real piece

Repurpose a known post and review the facts used and flags.

```
content-repurpose-agent run --source ./post.md --formats linkedin,email --explain
# prints outputs + facts_used + flags (verify nothing was invented)
```

## 5. Wire into your workflow

Repurpose new content automatically into drafts for review.

```
# new post published -> repurpose -> drafts to your scheduler for human review
```
