全部文章
寻访与沟通

GitHub 开发者招聘冷邮件模板,已在 Claude 和 Gemini 中实测

只引用开发者自己写的一句话,不做任何评价,简介里写了拒绝的就不发。三个带批注的 GitHub 联系邮件模板,已在 Claude 和 Gemini 中实测。

  • More replies
  • Better hires
  • Less legal risk

2026年10月29日 · 4 分钟阅读

提示词为英文:在各类AI工具中英文提示词效果最佳。

周四下午 4:40。你打开了一位开发者的 GitHub 主页,手上有个 Go 岗位要招人。你把主页内容粘贴给 AI 助手,输入“写一封个性化邮件”。我们测试中有一份草稿写道,自己“在 pgqueue-go 的源码里花了太多时间”。可你并没有。这句话是模型替你说的,而开发者清楚自己写过什么,一眼就会看出来。

**简短结论:**GitHub 邮件里的个性化部分,只放一样东西:开发者写过或提交过的一句话,原文引用,不加任何评价。把这条规则、字数上限,以及“简介里写了请勿联系就停止”的指令一起交给模型。下面是三个带批注的模板:两个改编自测试中 Claude 和 Gemini 写出的邮件,另一个是我们自己写的备用模板,适用于没有任何内容可引用的主页。

三封邮件,附批注

A. README 里有一句可以引用的话

Subject: [repo name] and [our domain]

Hi [first name],

I came across [repo], and this line in the README: "[exact quote]". [One sentence on how that connects to our work, using only facts about the role.]

We're hiring a [role] ([stack], [hybrid or remote]), reporting to [name, title]. Would a [15]-minute call be worth it?

[Your name], [company]
  • 引用原话能证明你确实看过。优先选开发者自己写的、说明为什么做这个工具的那句话。
  • “Using only facts about the role”这条要求,能防止模型编造你为什么适合他。

B. 最值得引用的是一篇文章或一条提交信息

Subject: [post title, shortened]

Hi [first name],

I saw your [post / commit message] "[exact title]". We run [stack] at [company], where [one true sentence about the work]. I'm hiring a [role] for it. Would you want to hear more?

[Your name], [company]
  • 删掉所有说这份工作“impressive”或“elegant”的句子。代码并没有人审过。

C. 他们写的东西都和岗位对不上(我们自己写的备用方案,不是测试结果)

Subject: [role] at [company]

Hi [first name],

I found your profile while looking for [skill]. I haven't read your code, so I won't pretend to know what you'd enjoy about this. The short version: [role], [stack], [location], [reporting line]. Worth a reply?

[Your name], [company]
  • 平实胜过虚假。或者干脆跳过这个人。

写出这些邮件的提示词

PERSONA
You are a technical recruiter who writes short first messages to developers. You have not read anyone's code.

TASK
For each developer below, write a first email for the role, using one real detail from their public GitHub paste.

CONTEXT
Use only the facts in the paste. Nothing else is known about the developers or the company.

RULES
- Cite exactly one thing the developer themselves wrote or committed: a repo, a README line, a commit message or a blog title. Quote or name it exactly.
- Do not judge the code or the person ("elegant", "impressive", "great work"). You have not reviewed the code. Say what you noticed and why it connects to the role.
- If a repo is a fork, only cite what the paste shows this person committed.
- If the profile asks not to be contacted about jobs, write "DO NOT CONTACT" and the reason, and no email.
- Do not use or mention any email address from the commits. Do not mention where the person lives unless it matches the role's office.
- Subject: 5 words or fewer. Body: 90 words or fewer. End with one easy question. No "I hope this finds you well".

FORMAT
Developer number, Subject, Body.

[ROLE and the pasted GitHub profiles]

普通提示词哪里出了问题

我们虚构的测试:一个 Go 岗位;一位有任务队列项目的开发者;一位有个 fork(两处错别字修复)、旁边还有个真正的小工具的开发者;一位简介里写着“please don't send me recruiting messages”的资深工程师。我们在两个工具里分别运行了普通的“write a personal email”提示词和上面这条提示词。

邮件长度,开发者 1 和 2(平均值)
普通提示词加上规则后ClaudeClaude: 普通提示词 138.5 words, 加上规则后 76 words138.5 words → 76 wordsGeminiGemini: 普通提示词 129.5 words, 加上规则后 65.5 words129.5 words → 65.5 words

邮件正文字数,由脚本统计;规则要求不超过 90 字。Gemini 的普通提示词还给开发者 3 发了邮件,而他明确要求不要联系。

Source: 我们的测试,每个工具每条提示词运行一次,三位虚构的开发者

Show the data
普通提示词加上规则后
Claude138.5 words76 words
Gemini129.5 words65.5 words
出的问题 Claude,普通提示词 Gemini,普通提示词 加上规则后(两者)
给明确拒绝的开发者发了邮件 没有,并给出提醒 发了:“为打破您简介里的规定而抱歉” “DO NOT CONTACT”并说明原因
夸奖或评判 “the kind of edge case most people never find” “Loved your philosophy”、“rare and refreshing” 没有
声称读过代码 “在 pgqueue-go 的源码里花了太多时间” 没有 没有
提到通勤 “I know that's a commute from Haifa” “Given you're based in Haifa” 省略
岗位描述里没有的公司信息 “Reconciliation is a domain where at-least-once delivery ... matter” “core platform team” Gemini:“Postgres concurrency handling is central to our stack”

每条规则都是因为普通提示词在这一点上出过错。Gemini 在最后一行的表现,正是下面第一项检查很重要的原因。

发送前的四项检查

  • **删掉所有岗位描述里没有的、关于贵公司的句子。**模型遇到信息空缺,会补上听起来合理的说法。
  • **先看简介。**写着“Not looking”或“no recruiters”,就不要发邮件。
  • **不要发到提交记录里的邮箱。**使用对方公开列出的联系方式。
  • **公开不等于可以随便用。**GitHub 的《可接受使用政策》限制把该服务上的信息用于“for spamming purposes, including for the purposes of sending unsolicited emails to users”。一封定制化的邮件算不算,要请你所在地区的律师判断,因为我们的概述不构成法律意见。

**下一步:**先查看这位开发者主页背后的代码仓库,参考如何用 Claude 或 Gemini 查看候选人的 GitHub 项目,再看看更通用的避免被当作垃圾邮件的冷邮件模板。

This article is general information, not legal advice. Laws differ by country and change often, so consult your lawyer before you rely on it for your situation.

继续阅读