可复用的提示词模板
适用于常见任务的即取即用提示词。它们使用 XML 标签来获得清晰的结构,并融入了提示词基础中的好习惯。请填入 {braces} 中的内容。
摘要(有据可依)
<instructions>
Summarize the document for {audience} in {N} bullet points. Use ONLY the document;
if something isn't there, say "not stated." Then list any action items.
</instructions>
<document>
{paste}
</document>
预期: 精炼的要点 + 行动项。常见失败: 编造事实 → 「ONLY the document(仅使用文档)」这一条款可以防范它。
提取结构化数据
Extract the following from the text as JSON: {field1, field2, field3}.
Return ONLY valid JSON, no prose. If a field is missing, use null.
<text>{paste}</text>
搭配结构化输出以提升可靠性。
改写 / 编辑
Rewrite the text to be {clearer/shorter/more formal} without changing meaning.
Then list the changes you made as bullets.
<text>{paste}</text>
代码审查
Review this diff for correctness bugs, missing edge cases, and security issues.
Report ONLY high-confidence findings as a checklist with file:line. Diff:
<diff>{paste}</diff>
决策助手
I'm deciding between {A} and {B} for {situation}. Build a trade-off table across
the criteria that matter, then recommend one and name the biggest risk.
元提示词(改进一个提示词)
Here's my prompt: "{prompt}". Ask me the 3 questions that would most improve it,
then rewrite it with sensible defaults.
角色 + 防护栏封装
You are {role}. {task}.
Constraints: {format, length, tone}. If you're unsure or lack info, say so rather
than guessing.
:::tip 把它们变成你自己的 把你常用的那些保存为斜杠命令或一个项目,这样你就再也不用重新输入了。 :::