跳到正文
Skillpedia
提示词与 LLM33k · #8609

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/ai-research/prompt-engineer/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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.

repo: davila7/claude-code-templates

热度

GitHub 星标
33k
排名
#8609
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能