惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
H
Hacker News: Front Page
P
Palo Alto Networks Blog
T
ThreatConnect
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
T
True Tiger Recordings
P
Privacy & Cybersecurity Law Blog
B
Blog
IT之家
IT之家
Last Week in AI
Last Week in AI
F
Full Disclosure
Hacker News: Ask HN
Hacker News: Ask HN
C
Comments on: Blog
Microsoft Azure Blog
Microsoft Azure Blog
C
Cybersecurity and Infrastructure Security Agency CISA
Microsoft Security Blog
Microsoft Security Blog
博客园 - 【当耐特】
N
News and Events Feed by Topic
NISL@THU
NISL@THU
腾讯CDC
雷峰网
雷峰网
Security Latest
Security Latest
李成银的技术随笔
M
Microsoft Research Blog - Microsoft Research
L
LangChain Blog
L
Lohrmann on Cybersecurity
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Check Point Blog
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
博客园 - Franky
N
News | PayPal Newsroom
V
V2EX
A
About on SuperTechFans
The Register - Security
The Register - Security
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google Online Security Blog
Google Online Security Blog
MyScale Blog
MyScale Blog
Cisco Talos Blog
Cisco Talos Blog
Vercel News
Vercel News
WordPress大学
WordPress大学
C
Cyber Attacks, Cyber Crime and Cyber Security
The Hacker News
The Hacker News
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
爱范儿
爱范儿
A
Arctic Wolf
L
LINUX DO - 最新话题
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

博客园 - Mojies

T-Lite 简介 CRC 计算 C 语言例子 一个 python 拆解文本文件的工具 UNIX 环境编程 Note ( UPDATING ) 航模.fs.ia6b 接收机记录 线程同步 STM32 Note Linux FrameBuffer note VIM Note Android 开发笔记(更新中....) Effective C++ (暂停更新) Linux 命令行对比二进制文件脚本 Linux Note (Updateing) 关于 HID 你可能需要知道的几件事 (更新中...) 自制树莓派 3D 模型,附 STL 文件 《重构改善既有代码的设计》Tips 翻译: buildroot 用户手册 (更新中...) Some view of engineers 地球地址
Prompt 相关
Mojies · 2026-03-12 · via 博客园 - Mojies

🧠 如何写出优质的 Prompt?

一、核心原则

写出好 Prompt 的本质是:让 AI 清楚地理解你是谁、要什么、在什么背景下、输出成什么样

二、写优质 Prompt 的 7 大技巧

1. 🎯 明确角色(Role)

给 AI 设定一个身份,能大幅提升回答质量。

❌ 普通写法:帮我写一封邮件
✅ 优化写法:你是一位有10年经验的职场沟通专家,帮我写一封向客户致歉的商务邮件

2. 📋 明确任务和目标(Task)

说清楚你要做什么,不要模糊。

用简洁的语言,帮我总结以下文章的核心观点,不超过5条

3. 🌍 提供背景上下文(Context)

背景信息越充分,输出越精准。

我是一名大学生,正在准备一场关于人工智能伦理的演讲,听众是非技术背景的同学,请帮我列出3个有趣的开场方式

4. 📐 规定输出格式(Format)

明确说明你想要的格式:列表、表格、Markdown、JSON、字数限制等。

以Markdown格式输出,包含标题、要点和总结,控制在300字以内

5. 🧩 给出示例(Examples / Few-shot)

这是效果最强的技巧之一,提供1-3个示例让 AI 模仿。

按照以下风格改写句子:原句:"天气很好",改写:"阳光如同金色的液体倾洒而下"。现在请改写:[你的句子]

6. 🔁 迭代优化(Iteration)

第一次的结果不满意很正常,通过追问不断优化:

  • "请把第2点展开详细说明"
  • "语气改得更正式一些"
  • "用更简单的语言重写"

7. 🚫 加上约束条件(Constraints)

告诉 AI 什么不要做。

不要使用专业术语,不要超过200字,不要给出建议,只陈述事实

三、经典 Prompt 框架

CRISPE 角色+背景+信息+步骤+目标+实验 复杂任务 CO-STAR 背景+目标+风格+语调+受众+响应 内容创作 RTF 角色+任务+格式 快速简洁场景 Few-shot 给出示例让AI模仿 特定风格输出
框架 含义 适用场景

四、📦 可以下载/获取现成优质 Prompt 的社区

🌐 综合平台(免费为主)

FlowGPT 最大免费社区,用户共建,分类丰富 flowgpt.com PromptHero 专注图像 AI(Midjourney/SD)的 Prompt prompthero.com AIPRM ChatGPT 浏览器插件,内置大量优化 Prompt aiprm.com Anthropic Prompt Library Claude 官方出品,质量极高 docs.anthropic.com/prompts OpenAI Prompt Examples OpenAI 官方示例库 platform.openai.com/examples
平台 特点 链接

🐙 GitHub 开源库(中文友好)

awesome-chatgpt-prompts ⭐ GitHub 10万+ stars,经典必收 wonderful-prompts 🔥 中文精选 Prompt 合集 best-chinese-prompt 中文提示词秘籍 Awesome-Prompt-Engineering-ZH-CN 中文 Prompt 工程资源清单
项目 特点

📚 系统学习(授人以渔)

Prompt Engineering Guide promptingguide.ai,最权威的提示工程教程,有中文版 Learning Prompt learningprompt.wiki,中文友好,含 ChatGPT & Midjourney
资源 特点

五、💡 总结:快速上手路径

① 先去 FlowGPT 或 GitHub 找现成 Prompt 用起来
② 看 Prompt Engineering Guide 理解原理
③ 用"角色 + 任务 + 格式 + 约束"四要素自己写
④ 不满意就追问,持续迭代优化

小提示:好的 Prompt 不是一次写成的,"迭代"才是核心能力 🚀