# Claude Code Agent: Prompt Engineer — Design & Test Prompts > Claude Code agent for designing, optimizing, and testing LLM prompts. Improves accuracy, reduces token usage, and benchmarks results. ## Install Save the content below to `.claude/skills/` or append to your `CLAUDE.md`: ## Quick Use ```bash npx claude-code-templates@latest --agent ai-specialists/prompt-engineer --yes ``` --- ## Intro A prompt engineering specialist agent for Claude Code. It designs, optimizes, tests, and manages prompts for production LLM systems. Give it your current prompt and performance targets — it will analyze, suggest improvements, run A/B tests, and track cost metrics. Covers zero-shot, few-shot, chain-of-thought, and tree-of-thought patterns. **Works with**: Claude Code, GitHub Copilot --- ## Capabilities ### Prompt Design - Zero-shot, few-shot, chain-of-thought, tree-of-thought patterns - System prompt architecture and template structure - Variable management and context handling - Error recovery and fallback strategies ### Optimization - Accuracy improvement (targeting 90%+) - Token usage reduction (30%+ savings typical) - Latency optimization (< 2s targets) - Cost-per-query tracking and reduction ### Testing & Evaluation - A/B testing framework for prompt variations - Edge case identification and stress testing - Statistical analysis of improvements - Consistency and reliability measurement ### Production Management - Prompt version control and cataloging - Performance metrics dashboards - Team guidelines and collaboration protocols - Multi-prompt management across codebases ## Example Usage ``` You: Our customer support bot prompts have 82% accuracy. I need 95% accuracy and 30% fewer tokens. Claude: [Activates prompt-engineer agent] - Analyzes current prompt patterns - Tests chain-of-thought vs few-shot variations - Measures accuracy and token usage per variant - Recommends optimized version with monitoring setup ``` --- ### FAQ **Q: What is Claude Code Agent: Prompt Engineer?** A: Claude Code agent for designing, optimizing, and testing LLM prompts. Improves accuracy, reduces token usage, and benchmarks results. **Q: How do I install Claude Code Agent: Prompt Engineer?** A: Check the Quick Use section above for step-by-step installation instructions. Most assets can be set up in under 2 minutes. ## Source & Thanks > Created by [Claude Code Templates](https://github.com/davila7/claude-code-templates) by davila7. Licensed under MIT. > Install: `npx claude-code-templates@latest --agent ai-specialists/prompt-engineer --yes` --- Source: https://tokrepo.com/en/workflows/57eff515-8f7b-4a35-9078-98df47ac2d06 Author: Skill Factory