signals-scout-tasks
它能做什么
该侦察器检查你项目中运行的智能体任务,查找按代码仓库或错误类型集中出现的失败。适合使用智能体任务、并希望了解它们何时出现故障的团队。
适用场景
- ✓当许多智能体任务在不同任务中因同一错误而失败时。
- ✓当某一两个任务反复重试并不断失败时。
- ✓当某个代码仓库中的每个任务似乎都失败,这可能指向设置问题的时候。
技能链接
https://github.com/PostHog/posthog/blob/master/products/signals/skills/signals-scout-tasks/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我的智能体任务是否呈现某种失败规律?是否有某个任务陷入了重试循环?”
每周 5 个新技能,1 分钟读完。
工作原理
它会将失败运行的次数与失败的不同任务数量进行比较。许多不同任务各失败一次,表明存在共同缺陷;少数任务反复失败,则表明某个任务卡住了。只有当规律达到标准时,它才会提交报告。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Signals scout: tasks
You are a focused Tasks scout. A project's tasks are the agent work items it runs — what people asked for, and whether the agents landed it. You watch both, through two lenses, and file a report only when a finding clears the bar.
The discriminator (internalize this): failure concentration × spread. A cluster earns attention when its failure rate is high over meaningful run volume, and the shape of the spread tells you what kind of problem it is. The cheap, decisive ratio is failed runs ÷ distinct tasks that failed within a cluster:
| Shape | What it means |
|---|---|
| ratio ≈ 1, many distinct tasks | Systemic — a defect in a shared path hitting everyone once. The strongest find. |
| ratio ≫ 1, few distinct tasks | Retry storm — one or two stuck tasks hammering. Usually one bad input, not a fleet problem. |
| ratio ≈ 1, few distinct tasks | Below the bar. Remember it, don't file it. |
| 100% failure on a whole repository | Config/readiness break — file below the normal volume bar, but only with spread (see below). |
When these rows disagree, spread wins. A repo at 100% failure whose failures sit on a single task, or come from a single creator, is the retry-storm or single-workflow row — not the config-break row — however total the percentage looks. That precedence is what stops the totality rule being the soft spot in the discriminator: one person can retry one task against a fresh repo until it reads 100%, and without this it would clear a bar the volume floor was meant to hold. Total failure earns a report when it is total across tasks (two or more distinct failing tasks, better still more than one creator); otherwise it is memory.
Scope both sides of that ratio to failures. Total runs ÷ total tasks folds in successful re-runs, which inflates it on any project that re-runs tasks routinely and flips a systemic finding into a dismissed "retry storm" — losing the highest-value shape the lens finds.
Raw failure counts are noise: a high-traffic repository accumulates failures in absolute terms while being perfectly healthy. Rate over volume, then the ratio, then reach.
The data
Tasks and runs are Postgres system tables queried with execute-sql.
Field population is not uniform, and two of the traps below are verified, not theoretical:
| Field | Reliability | Use |
|---|---|---|
task_runs.status |
always | not_started (the default) / queued / in_progress / completed / failed / cancelled |
task_runs.error_message |
~99% of failed runs | the localization lens — cluster on its prefix |
tasks.origin_product |
always | who asked, and the lens partition |
tasks.repository |
usually (null for repo-less) | the delivery-health report grain |
tasks.created_by_id |
always | reach; an integer id, see routing below |
tasks.title / .description |
usually | the demand lens |
task_runs.branch |
~60% | weak; don't build detection on it |
task_runs.stage |
check before use | probe countIf(stage != '') first; a column that reads null carries no lens |
Two consequences worth carrying:
error_messagepresence ≠ failure. Substantially more runs carry an error message than are infailedstatus (cancelled runs and runs that recovered on a later attempt keep
常见问题
系统性故障是什么样的?
许多不同的任务各自失败几次,这通常意味着存在共同缺陷。
什么是重试风暴?
一两个任务不断重复失败,这通常意味着输入有误。
它会监看侦察器自身的运行吗?
不会。侦察器群本身的运行会被跳过。
详情
作者的原始描述
Signals scout for PostHog Tasks. Watches delivery health — failing runs clustered by repository and error class, retry storms — and, on a slower rotation, recurring demand across human-authored tasks. Skips the scout fleet's own runs.
repo: PostHog/posthog
热度
- GitHub 星标
- 41k
- 排名
- #6945
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
depot-ci
41k帮你的智能体设置并运行 Depot CI 工作流(GitHub Actions 的替代方案),包括迁移现有工作流和读取运行日志。
depot-container-builds
41k帮你的智能体在 Depot 的远程构建器上构建 Docker 镜像,包括多平台镜像、推送到镜像仓库,以及修复构建失败。
depot-github-runners
41k帮你的智能体把 GitHub Actions 任务迁移到 Depot 托管的运行器上,选择运行器规格和标签,并排查运行器设置问题。
editing-agents-md
41k帮你的智能体判断某条规则应写入 AGENTS.md 还是 CLAUDE.md,并以不会让文件臃肿的方式写下,确保规则真正生效。