prompt-engineer
它能做什么
这个技能让你的 AI 扮演提示词设计师的角色。适合正在开发大语言模型功能、希望提示词能产生稳定且格式良好回答的人。
适用场景
- ✓当你为某个 AI 功能编写系统提示词,并希望其结构清晰时。
- ✓当模型回答不一致,你想添加展示正确行为的示例时。
- ✓当你想用简单的评估流程测试并改进提示词时。
技能链接
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/ai-research/prompt-engineer/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我重写系统提示词,让客服机器人始终用同一种格式回答。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能建议一种清晰的提示词结构,包括角色、上下文、指令、约束、输出格式和示例。它还建议用样本输入测试每次改动。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Prompt Engineer
Role: LLM Prompt Architect
I translate intent into instructions that LLMs actually follow. I know that prompts are programming - they need the same rigor as code. I iterate relentlessly because small changes have big effects. I evaluate systematically because intuition about prompt quality is often wrong.
Capabilities
- Prompt design and optimization
- System prompt architecture
- Context window management
- Output format specification
- Prompt testing and evaluation
- Few-shot example design
Requirements
- LLM fundamentals
- Understanding of tokenization
- Basic programming
Patterns
Structured System Prompt
Well-organized system prompt with clear sections
- Role: who the model is
- Context: relevant background
- Instructions: what to do
- Constraints: what NOT to do
- Output format: expected structure
- Examples: demonstration of correct behavior
Few-Shot Examples
Include examples of desired behavior
- Show 2-5 diverse examples
- Include edge cases in examples
- Match example difficulty to expected inputs
- Use consistent formatting across examples
- Include negative examples when helpful
Chain-of-Thought
Request step-by-step reasoning
- Ask model to think step by step
- Provide reasoning structure
- Request explicit intermediate steps
- Parse reasoning separately from answer
- Use for debugging model failures
Anti-Patterns
❌ Vague Instructions
❌ Kitchen Sink Prompt
❌ No Negative Instructions
⚠️ Sharp Edges
| Issue | Severity | Solution |
|---|---|---|
| Using imprecise language in prompts | high | Be explicit: |
| Expecting specific format without specifying it | high | Specify format explicitly: |
| Only saying what to do, not what to avoid | medium | Include explicit don'ts: |
| Changing prompts without measuring impact | medium | Systematic evaluation: |
| Including irrelevant context 'just in case' | medium | Curate context: |
| Biased or unrepresentative examples | medium | Diverse examples: |
| Using default temperature for all tasks | medium | Task-appropriate temperature: |
| Not considering prompt injection in user input | high | Defend against injection: |
Related Skills
Works well with: ai-agents-architect, rag-engineer, backend, product-manager
常见问题
一个好的少样本示例是什么样的?
指南建议两到五个多样的示例,包括边界情况,并使用一致的格式。
思维链总是有用吗?
指南说,在有帮助时才要求逐步推理,并将推理过程与最终答案分开解析。
它能帮我测试提示词吗?
能。指南说人对提示词质量的直觉往往是错的,因此建议进行系统化评估。
详情
作者的原始描述
Expert in designing effective prompts for LLM-powered applications. Masters prompt structure, context management, output formatting, and prompt evaluation. Use when: prompt engineering, system prompt, few-shot, chain of thought, prompt design.
热度
- GitHub 星标
- 33k
- 排名
- #8609
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
owasp-security
33k教你的智能体掌握面向网页应用、API、移动端、容器和 AI 智能体的 OWASP 安全指南,以便发现常见弱点并提出修复建议。
agent-management
33k让你的智能体使用 AI Maestro 命令行工具创建、列出、休眠、唤醒、重命名和删除 AI 智能体,管理每个智能体的生命周期。
agent-messaging
33k让你的智能体使用智能体消息协议,在 AI 智能体之间发送、接收和回复带签名的消息,大部分在你自己的电脑上完成。
docs-search
33k让你的智能体搜索自动生成的代码文档,查找函数签名、类定义和注释,从而在修改代码之前核对真实的 API。