Prompt Engineer
Expert prompt engineering skill that transforms rough ideas into well-structured, production-ready prompts optimized for LLMs.
When to Activate
- User provides a rough prompt/idea and wants it refined
- User asks to create/design/optimize a prompt for any LLM
- User needs prompt architecture for agents, RAG, or multi-step workflows
- User asks about prompting techniques or best practices
Workflow
1. Analyze Input
Identify from user's request:
- Target model (Codex, GPT, Llama, etc.) — default: Codex
- Use case (agent system prompt, task prompt, RAG, chat, etc.)
- Domain (technical, creative, business, etc.)
- Constraints (token limits, output format, safety requirements)
2. Apply Techniques
Select appropriate techniques from references/techniques.md based on use case:
- Complex reasoning → Chain-of-Thought, Tree-of-Thoughts
- Safety-critical → Constitutional AI patterns
- Data extraction → Structured output, JSON mode
- Multi-step tasks → Prompt chaining, agent patterns
- Knowledge-heavy → RAG optimization
3. Craft the Prompt
Follow model-specific guidelines from references/model-optimization.md:
- Structure with clear sections (role, context, instructions, output format)
- Include examples where beneficial (few-shot)
- Add constraints and guardrails
- Optimize for token efficiency
4. Deliver Output
MANDATORY format — always include ALL sections:
The Prompt
Display complete prompt in a single copyable code block.
Implementation Notes
- Techniques used and rationale
- Model-specific optimizations
- Parameter recommendations (temperature, max_tokens)
- Expected behavior and output format
Testing & Evaluation
- 3-5 test cases to validate
- Edge cases and failure modes
- Optimization suggestions
Usage Guidelines
- When/how to use effectively
- Customization options
- Integration considerations
Key Principles
- Always show the complete prompt — never just describe it
- Token efficiency — concise but comprehensive
- Production-ready — reliable, safe, optimized
- Model-aware — tailor to target model's strengths
- Refer to
references/techniques.md for advanced technique details
- Refer to
references/model-specific-optimization-guide.md for model-specific guidance
- Refer to
references/production-patterns-and-enterprise-templates.md for enterprise patterns
1---2name: prompt-engineer3description: Transform rough prompts/ideas into production-ready LLM prompts. Use when crafting, refining, or optimizing prompts for any AI model (Codex, GPT, Llama, etc.) with advanced techniques like CoT, constitutional AI, RAG optimization.4---56# Prompt Engineer78Expert prompt engineering skill that transforms rough ideas into well-structured, production-ready prompts optimized for LLMs.910## When to Activate1112- User provides a rough prompt/idea and wants it refined13- User asks to create/design/optimize a prompt for any LLM14- User needs prompt architecture for agents, RAG, or multi-step workflows15- User asks about prompting techniques or best practices1617## Workflow1819### 1. Analyze Input2021Identify from user's request:22- **Target model** (Codex, GPT, Llama, etc.) — default: Codex23- **Use case** (agent system prompt, task prompt, RAG, chat, etc.)24- **Domain** (technical, creative, business, etc.)25- **Constraints** (token limits, output format, safety requirements)2627### 2. Apply Techniques2829Select appropriate techniques from `references/techniques.md` based on use case:30- Complex reasoning → Chain-of-Thought, Tree-of-Thoughts31- Safety-critical → Constitutional AI patterns32- Data extraction → Structured output, JSON mode33- Multi-step tasks → Prompt chaining, agent patterns34- Knowledge-heavy → RAG optimization3536### 3. Craft the Prompt3738Follow model-specific guidelines from `references/model-optimization.md`:39- Structure with clear sections (role, context, instructions, output format)40- Include examples where beneficial (few-shot)41- Add constraints and guardrails42- Optimize for token efficiency4344### 4. Deliver Output4546**MANDATORY format** — always include ALL sections:4748#### The Prompt49Display complete prompt in a single copyable code block.5051#### Implementation Notes52- Techniques used and rationale53- Model-specific optimizations54- Parameter recommendations (temperature, max_tokens)55- Expected behavior and output format5657#### Testing & Evaluation58- 3-5 test cases to validate59- Edge cases and failure modes60- Optimization suggestions6162#### Usage Guidelines63- When/how to use effectively64- Customization options65- Integration considerations6667## Key Principles6869- **Always show the complete prompt** — never just describe it70- **Token efficiency** — concise but comprehensive71- **Production-ready** — reliable, safe, optimized72- **Model-aware** — tailor to target model's strengths73- Refer to `references/techniques.md` for advanced technique details74- Refer to `references/model-specific-optimization-guide.md` for model-specific guidance75- Refer to `references/production-patterns-and-enterprise-templates.md` for enterprise patterns