分享经过真实客户项目验证的prompt模板:先让AI列出最可能的根因再给修复方案,替代直接丢错误信息让AI猜。调试场景提效明显。
大多数 AI 提示词建议要么太笼统("要具体!"),要么太花哨("扮演一位资深架构师!")。经过一年在真实客户项目中测试各种提示词,我筛选出了真正能节省时间的那些——不仅在写代码上,还包括那些吞噬自由职业者时间的繁琐行政事务。以下是我每天都在用的提示词,并附上可以直接复制使用的精确模板。
不要粘贴一个错误信息然后问"为什么不能工作?",用这个结构。它迫使 AI 追溯逻辑,而不是单纯猜测。
I am working with [language/framework]. My code does [X] but I expected [Y].
Here is the error message: [paste].
Please do not give me a fix immediately. First, list the three most likely root causes, ranked by probability.
For each cause, explain the exact line or variable that would confirm it.
Then, give me the smallest fix for the most likely cause.
为什么它有效:它把 AI 从一个猜测者变成了调试搭档。你花五分钟检查最可能的原因,而不是花二十分钟去尝试随机的 Stack Overflow 答案。用这个提示词,我在遗留 PHP 项目上把调试时间减少了一半。
自由职业者往往在回复模糊的客户消息上浪费数小时。这个提示词把一个含糊不清的请求变成一份具体的行动清单。
A client just sent me this message: [paste message].
I need to reply with a clarifying email that asks only the minimum questions needed to start work.
Do not add extra questions. List the top 3 missing pieces of information (deadline, budget, acceptance criteria, or dependencies).
Then write a short, polite email that asks exactly those three things, using a professional but friendly tone.
End the email with a suggested next step and a time frame for their reply.
你不再需要写六段式的邮件了。你发出的将是一封简洁的回复,收到回复的速度更快。仅此一项每周就能在项目管理上节省好几个小时。
当你需要改进一个混乱的函数,但又怕把它搞坏时,用这个。它给你一张安全网。
Here is a function I wrote: [paste code].
I want to refactor it for readability and performance, but I need to keep the exact same input/output behavior.
Please do three things:
1) Write a short test plan (5-6 edge cases) that I can run before and after the refactor.
2) Provide the refactored code with comments explaining each change.
3) List any behavior that your refactor intentionally changes (e.g., error handling, ordering) so I can decide if it's acceptable.
这个提示词不止一次在周五下午拯救了我的生产代码。光是测试计划就值回票价——那些边缘用例你自己是想不到的,而 AI 在三十秒内就能列出它们。
你刚结束一个 45 分钟的电话会议,笔记乱七八糟。这个提示词把混乱变成任务清单。
Here are my raw meeting notes: [paste notes, however messy].
Please extract:
1) Decisions made (who decided what, and any constraints).
2) Action items (each with owner, due date if mentioned, and a one-sentence description).
3) Open questions that were not resolved.
Format the output as a clean markdown checklist. Do not infer missing dates or owners — leave them blank.
不用再重读自己潦草的笔记了。你粘贴,得到一份干净的清单,再把它粘贴到项目追踪器里。每次会议节省十分钟,你每周至少有三次会议。
追讨款项是自由职业最糟糕的部分。这个提示词消除了情绪摩擦。
I have a client who owes me $[amount] for invoice #[number], sent [X days ago].
They have not responded to my last two reminders.
Write a firm but polite email that does not blame or guilt-trip.
It should state the amount, the due date, the late fee (if any), and ask for a specific payment date.
Keep it under 80 words. Do not use exclamation marks.
你不用过度思考就能发出邮件。款项更快到账。这不只是节省了一小时——这是现金流。
当你学习一个新的库或框架时,不要去看两小时的教程。用这个。
I need to learn [tool] for [specific task, e.g., "file uploads in Next.js"].
I already know [related skill, e.g., "React and Node"].
Give me a 20-minute learning path:
1) The 3 core concepts I must understand (with a one-line explanation each).
2) A minimal working example for my specific task.
3) The most common mistake beginners make with this tool, and how to avoid it.
你在一坐下来就能上手,而不是花三个晚上看 YouTube。
这些提示词并不是魔法。它们有效是因为它们迫使 AI 去构建你的思维。用一周试试。你会注意到哪些适合你——哪些你会根据自己的工作流程去修改。目标不是取代你的判断。而是消除那些重复的、低价值的摩擦,让你把时间花在你真正喜欢的工作部分。