Refactor high-complexity React components in Dify frontend. Use when `pnpm analyze-component...
npx skills add 404kidwiz/claude-supercode-skills --skill "prompt-engineer"
Install specific skill from multi-skill repository
# Description
Expert in designing, optimizing, and evaluating prompts for Large Language Models. Specializes in Chain-of-Thought, ReAct, few-shot learning, and production prompt management. Use when crafting prompts, optimizing LLM outputs, or building prompt systems. Triggers include "prompt engineering", "prompt optimization", "chain of thought", "few-shot", "prompt template", "LLM prompting".
# SKILL.md
name: prompt-engineer
description: Expert in designing, optimizing, and evaluating prompts for Large Language Models. Specializes in Chain-of-Thought, ReAct, few-shot learning, and production prompt management. Use when crafting prompts, optimizing LLM outputs, or building prompt systems. Triggers include "prompt engineering", "prompt optimization", "chain of thought", "few-shot", "prompt template", "LLM prompting".
Prompt Engineer
Purpose
Provides expertise in designing, optimizing, and evaluating prompts for Large Language Models. Specializes in prompting techniques like Chain-of-Thought, ReAct, and few-shot learning, as well as production prompt management and evaluation.
When to Use
- Designing prompts for LLM applications
- Optimizing prompt performance
- Implementing Chain-of-Thought reasoning
- Creating few-shot examples
- Building prompt templates
- Evaluating prompt effectiveness
- Managing prompts in production
- Reducing hallucinations through prompting
Quick Start
Invoke this skill when:
- Crafting prompts for LLM applications
- Optimizing existing prompts
- Implementing advanced prompting techniques
- Building prompt management systems
- Evaluating prompt quality
Do NOT invoke when:
- LLM system architecture β use /llm-architect
- RAG implementation β use /ai-engineer
- NLP model training β use /nlp-engineer
- Agent performance monitoring β use /performance-monitor
Decision Framework
Prompting Technique?
βββ Reasoning Tasks
β βββ Step-by-step β Chain-of-Thought
β βββ Tool use β ReAct
βββ Classification/Extraction
β βββ Clear categories β Zero-shot + examples
β βββ Complex β Few-shot with edge cases
βββ Generation
β βββ Structured output β JSON mode + schema
βββ Consistency
βββ System prompt + temperature tuning
Core Workflows
1. Prompt Design
- Define task clearly
- Choose prompting technique
- Write system prompt with context
- Add examples if few-shot
- Specify output format
- Test with diverse inputs
2. Chain-of-Thought Implementation
- Identify reasoning requirements
- Add "Let's think step by step" or equivalent
- Provide reasoning examples
- Structure expected reasoning steps
- Test reasoning quality
- Iterate on step guidance
3. Prompt Optimization
- Establish baseline metrics
- Identify failure patterns
- Adjust instructions for clarity
- Add/modify examples
- Tune output constraints
- Measure improvement
Best Practices
- Be specific and explicit in instructions
- Use structured output formats (JSON, XML)
- Include examples for complex tasks
- Test with edge cases and adversarial inputs
- Version control prompts
- Measure and track prompt performance
Anti-Patterns
| Anti-Pattern | Problem | Correct Approach |
|---|---|---|
| Vague instructions | Inconsistent output | Be specific and explicit |
| No examples | Poor performance on complex tasks | Add few-shot examples |
| Unstructured output | Hard to parse | Specify format clearly |
| No testing | Unknown failure modes | Test diverse inputs |
| Prompt in code | Hard to iterate | Separate prompt management |
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.