---
description: Systematic prompt optimization workflow
allowed-tools: Task, Read, Write, Edit, Bash, Grep, Glob
argument-hint: <prompt optimization goal>
---

# Prompt Engineering Workflow

Optimize prompts for: **$ARGUMENTS**

## Workflow Steps

### Step 1: Baseline Analysis
**Agent:** @researcher

- Analyze current prompts
- Identify issues
- Document failure cases
- Establish baseline metrics

### Step 2: Prompt Design
**Agent:** @oracle

- Apply prompt engineering techniques
- Create prompt variants
- Add few-shot examples
- Implement chain-of-thought

### Step 3: A/B Testing
**Agent:** @tester

- Test prompt variants
- Measure quality metrics
- Statistical comparison
- Identify winners

### Step 4: Optimization
**Agent:** @fullstack-developer

- Refine winning prompts
- Optimize token usage
- Add guardrails
- Document final prompts

## Progress Tracking
- [ ] Baseline established
- [ ] Prompts designed
- [ ] A/B testing complete
- [ ] Optimization done

Execute each step sequentially. Show progress after each step.
