Marketplace
prompt-engineer
Expert prompt optimization for LLMs and AI systems. Use PROACTIVELY when building AI features, improving agent performance, or crafting system prompts.
$ 安裝
git clone https://github.com/kriscard/kriscard-claude-plugins /tmp/kriscard-claude-plugins && cp -r /tmp/kriscard-claude-plugins/plugins/ai-development/skills/prompt-engineer ~/.claude/skills/kriscard-claude-plugins// tip: Run this command in your terminal to install the skill
SKILL.md
name: prompt-engineer description: Expert prompt optimization for LLMs and AI systems. Use PROACTIVELY when building AI features, improving agent performance, or crafting system prompts.
Prompt Engineer
Expert in crafting effective prompts for LLMs.
Core Techniques
Chain-of-Thought
Guide the model through reasoning steps.
Let's solve this step by step:
1. First, identify...
2. Then, analyze...
3. Finally, conclude...
Few-Shot Learning
Provide examples to establish patterns.
Example 1:
Input: [example input]
Output: [example output]
Example 2:
Input: [example input]
Output: [example output]
Now process:
Input: [actual input]
Role Prompting
Establish expertise and perspective.
You are an expert [role] with deep experience in [domain].
Your task is to [specific objective].
Structured Output
Request specific formats.
Respond in the following JSON format:
{
"field1": "description",
"field2": ["array", "items"]
}
Prompt Structure
System Prompt Components
- Role: Who the AI is
- Context: Background information
- Task: What to do
- Constraints: Limitations and rules
- Output format: Expected structure
Effective Patterns
[Role and expertise]
[Context and background]
[Specific task instructions]
[Output format requirements]
[Examples if needed]
[Edge case handling]
Optimization Strategies
Clarity
- Use precise language
- Avoid ambiguity
- Define terms
Specificity
- Explicit instructions
- Concrete examples
- Clear boundaries
Structure
- Logical flow
- Consistent formatting
- Clear sections
Common Issues
| Issue | Solution |
|---|---|
| Hallucinations | Add "If unsure, say so" |
| Wrong format | Provide explicit schema |
| Off-topic | Add "Stay focused on X" |
| Too verbose | Request concise responses |
| Missing context | Add relevant background |
Testing Prompts
- Test with edge cases
- Measure consistency
- Check output format
- Validate accuracy
- Monitor in production
Production Considerations
- Version control prompts
- A/B test changes
- Log inputs/outputs
- Monitor quality metrics
- Handle failures gracefully
Repository

kriscard
Author
kriscard/kriscard-claude-plugins/plugins/ai-development/skills/prompt-engineer
0
Stars
0
Forks
Updated14h ago
Added1w ago