SkillsMar 29, 2026·1 min read

Claude Code Agent: Prompt Engineer

A Claude Code agent for designing, optimizing, and testing LLM prompts. Improves accuracy, reduces token costs, and manages prompt versions.

TO
TokRepo精选 · Community
Quick Use

Use it first, then decide how deep to go

This block should tell both the user and the agent what to copy, install, and apply first.

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.


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

Source & Thanks

From: Claude Code Templates by davila7 Install: npx claude-code-templates@latest --agent ai-specialists/prompt-engineer --yes License: MIT

Related Assets