working-with-autoresearch
它能做什么
本技能设置 PostHog Autoresearch,它会针对诸如“谁会在接下来几天内执行某个操作”之类的问题构建预测模型。适合希望根据行动可能性锁定目标用户的产品和增长团队。
适用场景
- ✓当你想知道哪些用户可能很快流失、回访或采用某项功能时。
- ✓当你希望在功能开关、人群或工作流中使用预测结果的时候。
- ✓当你想检查现有预测模型的准确度表现的时候。
技能链接
https://github.com/PostHog/posthog/blob/master/products/autoresearch/skills/working-with-autoresearch/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请构建一个模型,预测哪些活跃用户会在接下来 7 天内打开某份报告。”
每周 5 个新技能,1 分钟读完。
工作原理
你需要指定要预测的操作、人群和时间窗口。训练智能体会测试多种模型方案,在保留的数据上保留表现最好的一个,然后按每日计划为人群评分,并记录结果。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Working with autoresearch
Autoresearch answers one standing question per model: who in a population will do a target within a horizon? For example, "which active users will open a report in the next 7 days?".
- The user names a target (an event or a PostHog action), a population and a horizon in days.
- A training agent runs in a PostHog sandbox. It writes feature SQL and a model, scores each experiment on a holdout set, keeps what improves holdout AUC and discards the rest.
- The server picks the champion from the kept experiments. The agent proposes; the backend decides.
- Every cadence (daily by default, at 02:00 UTC), the champion scores the inference population.
Each scored person gets an
autoresearch_predictionevent with their probability. When the model'swrite_person_propertyis on, a person who resolves to a current distinct ID also gets the model's output person property, for examplepredicted_p_adopt_insights_14d. It is off by default for new models. Turn it on withautoresearch-partial-updatebefore you target people by score in a flag, cohort, workflow or insight. Turning it off removes the property from the people the model scored. Changing the setting needs theperson:writescope. - When a prediction date's horizon has passed, online validation checks the scores against what really happened and records realized AUC.
- Training keeps going on a schedule. On each scoring day the model starts a research run (explore) until a run does not promote a better model, or until 5 research runs have run.
After that it starts one research run every
research_interval_days(maintain, default 7) after the latest training run, so a run started by hand resets the clock. Withresearch_interval_daysnull the model trains only when someone asks. A champion that cannot score still gets a short rescue run.training_phaseandnext_research_atonposthog:autoresearch-retrievesay where the model is.
In the PostHog UI the entity is a model. The API and tools call it a pipeline. Use "model" when you talk to people.
Autoresearch is behind the autoresearch feature flag.
Training runs in a cloud sandbox, so it also needs PostHog Desktop access.
If the autoresearch-* tools are missing, the project probably does not have access yet.
Pick the job
| The user wants to | Start with | Reference |
|---|---|---|
| Create a model | posthog:autoresearch-resolve-template-create or a custom definition, then posthog:autoresearch-validate-create |
defining-a-question.md |
| Know if a model is any good | posthog:autoresearch-retrieve, then posthog:autoresearch-online-performance-retrieve |
reading-model-quality.md |
| Use the predictions | The output person property, or posthog:execute-sql on autoresearch_prediction |
using-predictions.md |
| Fix or steer a model | posthog:autoresearch-training-runs-list, posthog:autoresearch-runs-list, posthog:autoresearch-suggestions-create |
troubleshooting-and-steering.md |
| See what models exist | posthog:autoresearch-list |
This page |
Create, train, score
The usual path is short. Each tool's description names its prerequisites and refusals, so read it with info before the first call.
- Resolve or define. Templates cover the common questions (activity, inactivity risk, return after first use, feature adoption, repeat behavior). A custom definition works when none fits. See defining-a-question.md.
- Validate.
posthog:autoresearch-validate-createwith the same target, horizon
常见问题
人群多久评分一次?
默认情况下,所选模型每天在 UTC 时间 02:00 为人群评分。
它会更改人员的档案吗?
只有在你为该模型开启属性设置时才会,这会为每位符合条件的人添加预测分数。
我怎么知道模型是否准确?
每个预测周期结束后,PostHog 会将评分与实际发生的情况进行核对,并记录结果。
详情
作者的原始描述
Use PostHog Autoresearch, agent-driven predictive models: ask "who will do X in the next N days?", let an agent train a model, then score people daily into a person property and `autoresearch_prediction` events. Use when a user wants to predict churn, activity, return, feature adoption, conversion or any event or action per person; create or validate a model from a template; start training or score now; read model quality (holdout vs realized AUC, lift, calibration, likelihood segments, coverage); steer training with suggestions; act on predictions with cohorts, feature flags, workflows or SQL
repo: PostHog/posthog
热度
- GitHub 星标
- 41k
- 排名
- #6835
- 许可证
- —
- 更新时间
- 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,并以不会让文件臃肿的方式写下,确保规则真正生效。