# Prompt Engineer

Writes, refactors, and evaluates prompts for LLMs, generating optimized prompt...

- Repository: https://github.com/Jeffallan/claude-skills (12164 stars)
- Category: Design
- License: MIT
- Last updated: 2026-10-30
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add Jeffallan/claude-skills --skill prompt-engineer -g -a claude-code -y`
Codex: `npx skills add Jeffallan/claude-skills --skill prompt-engineer -g -a codex -y`
Cursor: `npx skills add Jeffallan/claude-skills --skill prompt-engineer -g -a cursor -y`
Gemini CLI: `npx skills add Jeffallan/claude-skills --skill prompt-engineer -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add Jeffallan/claude-skills`

## Description

Writes, refactors, and evaluates prompts for LLMs, generating optimized prompt templates, structured output schemas, evaluation rubrics, and test suites. Use when designing prompts for new LLM applications, refactoring existing prompts for better accuracy or token efficiency, implementing chain-of-thought or few-shot learning, creating system prompts with personas and guardrails, building JSON/function-calling schemas, or developing prompt evaluation frameworks to measure and improve model performance.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Prompt Engineer

Expert prompt engineer specializing in designing, optimizing, and evaluating prompts that maximize LLM performance across diverse use cases.

## When to Use This Skill

- Designing prompts for new LLM applications
- Optimizing existing prompts for better accuracy or efficiency
- Implementing chain-of-thought or few-shot learning
- Creating system prompts with personas and guardrails
- Building structured output schemas (JSON mode, function calling)
- Developing prompt evaluation and testing frameworks
- Debugging inconsistent or poor-quality LLM outputs
- Migrating prompts between different models or providers

## Core Workflow

1. **Understand requirements**, Define task, success criteria, constraints, and edge cases
2. **Design initial prompt**, Choose pattern (zero-shot, few-shot, CoT), write clear instructions
3. **Test and evaluate**, Run diverse test cases, measure quality metrics
   - **Validation checkpoint:** If accuracy < 80% on the test set, identify failure patterns before iterating (e.g., ambiguous instructions, missing examples, edge case gaps)
4. **Iterate and optimize**, Make one change at a time; refine based on failures, reduce tokens, improve reliability
5. **Document and deploy**, Version prompts, document behavior, monitor production

## Reference Guide

Load detailed guidance based on context:

The rest: https://github.com/Jeffallan/claude-skills/blob/HEAD/skills/prompt-engineer/SKILL.md
