Skills2026年3月29日·1 分钟阅读

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
快速使用

先拿来用,再决定要不要深挖

这里应该同时让用户和 Agent 知道第一步该复制什么、安装什么、落到哪里。

npx claude-code-templates@latest --agent ai-specialists/prompt-engineer --yes

介绍

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

来源与感谢

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

相关资产