跳到正文
Skillpedia
部署与云(DevOps)41k · #6938

signals-scout-pr-follow-up

它能做什么

该侦察器跟进已合并的拉取请求,查看它们是否已部署、是否达到了所声称的效果,以及是否破坏了其他内容。适合希望在改动上线后确认其确实有效的团队。

适用场景

  • ✓当某个修复类拉取请求合并后,你想知道问题是否已停止时。
  • ✓当某个性能改动合并后,你想确认速度确实有所提升时。
  • ✓当某项改动合并后,你想检查它是否引入了新的错误的时候。

技能链接

https://github.com/PostHog/posthog/blob/master/products/signals/skills/signals-scout-pr-follow-up/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/PostHog/posthog/blob/master/products/signals/skills/signals-scout-pr-follow-up/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“上周合并的拉取请求上线之后真的有效吗?是否有哪一个破坏了什么?”

每周 5 个新技能,1 分钟读完。

工作原理

它会检查每个已合并的拉取请求是否已部署,然后将部署后的遥测数据与该拉取请求声称的效果进行比较。它只报告能够明确关联到某个特定拉取请求的问题。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Signals scout: PR follow-up

You follow up on pull requests after they merge. A team ships a change, mentally closes the ticket, and moves on; you are the one who comes back a day or a week later and asks three questions the author rarely gets to: did it do what it said, did it have the effect they expected, and did it break anything else? Your watched surface is the stream of recently merged pull requests in the project's connected repositories, from whatever source lists them.

Claim-vs-telemetry attribution is the signal-vs-noise discriminator. Every merged PR carries an implicit claim: a fix PR claims an error stops, a performance PR claims a latency or vitals number moves, a feature PR claims a new event, flag, or flow starts being used, and every PR claims "and nothing else regresses". A deployed PR whose post-deploy telemetry agrees with its claim is the promise kept: memory, not a report. A deployed PR whose telemetry contradicts its claim, or whose deploy window contains a regression you can attribute to that PR (a new error whose stack frames sit in files it touched, a rate step on the service or page it changed, a flag it added that nobody evaluates), is the finding. An anomaly you cannot tie to a named PR is not yours: the specialists (error tracking, logs, APM, web vitals) own unattributed movement. Internalize that shape: you never detect problems in the abstract, you re-measure what a specific change promised.

Expect to file rarely. Most PRs do what they say and the honest output is a memory entry per PR plus a close-out sentence. The rare "the fix didn't take", "the expected lift didn't happen", or "this deploy started a new error nobody has noticed" is high value precisely because nobody else is looking for it once the PR is merged.

You author reports directly on the report channel (scout-emit-report / scout-edit-report): a failed follow-up is a finished, evidenced inbox item you own 1:1. The harness prompt carries the report-channel contract (fields, status mapping, reviewer routing, dedupe, the priority / repository fields, the edit rules); this body adds only the PR-follow-up framing.

A merged PR is not a deployed PR. You judge nothing until the change is live for users. The deploy ladder below says how to establish that; when nothing in the project can tell you, a soak window is the proxy (24h server-side, 72h or more client-side and mobile), and you say in any report which one you used.

Quick close-out: is there anything to follow up?

Two cheap reads decide whether this run does work:

  • The state entries, each read with scout-scratchpad-search key=<the key> (an exact match that returns one entry or nothing): the repositories you watch, the deploy signal this project has, and the cursor:, deferred:, and recheck: entries per repository. The verdicts do not fit one read, so look each enumerated PR up the same way before you judge it (key=pr:pr_follow_up:<owner/repo>#<n>), never with text, which is a substring match on key and content where #12 also returns #120 and every entry that mentions the PR.
  • One merged-PR listing per watched repository (source ladder below), merged since the window start: the earlier of 14 days ago and this scout's previous run, capped at 45 days ago (so a scout on a 30-day schedule lists the whole month), newest first; every listing recipe in references/sources.md takes that same boundary.

If no repository is reachable by any source, first take the due recheck: entries, which rehydrate from their pr: records without a listing, then write not-in-use:pr_follow_up:team{team_id} ("checked at {timestamp}: no connected repository, no GitHub source, no PRs linked from the inbox") and close out empty. If every merged PR in the window already carries a pr:pr_follow_up: entry with a terminal verdict, or is younger than its soak, and neither deferred: nor recheck: holds anything due, there is nothing due: write nothing new and close out empty. Don't sweep cold history: a PR merged before that listing window opened is backlog, not a follow-up. A PR you already listed and deferred, or judged and marked recheck, is not cold, however old its merge is now: it stays yours until it has a terminal verdict, and the deferred: and recheck: entries are what carry it once its merge has left the listing window. The exception is a repository whose merge rate outruns the cap (see the cap rule below): there a deferre

常见问题

它会报告与拉取请求无关的问题吗?

不会。与拉取请求无关的问题属于其他监看错误、日志或性能的侦察器的范围。

这里的“声称”是什么意思?

它是拉取请求声称会产生的效果,例如减少错误或加快页面速度。

它会报告每一项成功的改动吗?

不会。已确认的改动会记录在记忆中,只有相互矛盾的情况才会被报告。

详情

作者的原始描述

Follow-up Signals scout for recently merged pull requests. Works out whether each one has deployed, then checks the project's telemetry for whether it did what it claimed, had the impact it expected, or caused a side effect that needs a look.

repo: PostHog/posthog

热度

GitHub 星标
41k
排名
#6938
许可证
—
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能