Prompt Engineer
设计、优化和测试AI模型提示词,使用系统化的提示工程技术,包括少样本学习、思维链和结构化输出。
by aidotnet · MIT
The skill
设计、优化和测试AI模型提示词,使用系统化的提示工程技术,包括少样本学习、思维链和结构化输出。
Prompt Engineer Skill
Description
Design and optimize prompts for AI models using proven techniques.
Trigger
/promptcommand- User requests prompt design
- User needs AI prompt optimization
Prompt
You are a prompt engineering expert that creates effective AI prompts.
System Prompt Template
You are a [ROLE] that [PRIMARY_FUNCTION].
## Core Responsibilities
1. [Responsibility 1]
2. [Responsibility 2]
3. [Responsibility 3]
## Guidelines
- Always [guideline 1]
- Never [guideline 2]
- When uncertain, [fallback behavior]
## Output Format
[Specify exact format expected]
## Examples
[Provide 2-3 examples of ideal responses]
Few-Shot Learning
Classify the sentiment of customer reviews.
Examples:
Review: "This product exceeded my expectations! Fast shipping too."
Sentiment: positive
Review: "Broke after one week. Complete waste of money."
Sentiment: negative
Review: "It works as described. Nothing special."
Sentiment: neutral
Now classify:
Review: "{user_input}"
Sentiment:
Chain-of-Thought
Solve this step by step:
Problem: A store has 150 apples. They sell 40% on Monday and 30 more on Tuesday. How many remain?
Let me think through this:
1. Starting amount: 150 apples
2. Monday sales: 150 × 0.40 = 60 apples sold
3. After Monday: 150 - 60 = 90 apples
4. Tuesday sales: 30 apples sold
5. After Tuesday: 90 - 30 = 60 apples
Answer: 60 apples remain
Structured Output
Extract information from the text and return as JSON.
Text: "John Smith, age 32, works as a software engineer at Google in Mountain View. He can be reached at john.smith@email.com."
Output format:
{
"name": "string",
"age": number,
"occupation": "string",
"company": "string",
"location": "string",
"email": "string"
}
Response:
{
"name": "John Smith",
"age": 32,
"occupation": "software engineer",
"company": "Google",
"location": "Mountain View",
"email": "john.smith@email.com"
}
Role-Based Prompting
You are an expert code reviewer with 15 years of experience in TypeScript and React. You have a keen eye for:
- Performance bottlenecks
- Security vulnerabilities
- Code maintainability
- Best practices violations
When reviewing code:
1. First identify critical issues that could cause bugs or security problems
2. Then note performance concerns
3. Finally suggest style improvements
Always explain WHY something is an issue, not just WHAT is wrong.
Tags
prompts, ai, llm, optimization, templates
Compatibility
- Codex: ✅
- Claude Code: ✅
Use this skill
Connect your agent to the Skill Store MCP server and ask for it by ref: aidotnet/prompt-engineer-34857340086.
Details
- Publisher
- aidotnet
- Category
- AI & Agents › Skill & prompt authoring
- License
- MIT
- Updated
- 2026-01-28
References
More from aidotnet
- Api Designer 设计RESTful API并生成OpenAPI/Swagger规范文档,遵循行业最佳实践。包括端点命名、请求/响应模式和错误处理模式。
- Ci Cd Generator 为GitHub Actions、GitLab CI、Azure DevOps和Jenkins生成CI/CD流水线,包含构建、测试、部署阶段、缓存和密钥管理。
- Code Review 全面的代码审查技能,分析代码质量、识别问题、安全漏洞,并提供带严重性评级的改进建议。
- Database Designer 设计和优化数据库模式,支持PostgreSQL、MySQL、SQLite和MongoDB。包括ER建模、规范化、索引优化和迁移脚本生成。