working-with-autoresearch
Skill này làm gì
Skill này thiết lập PostHog Autoresearch, công cụ xây dựng mô hình dự đoán cho một câu hỏi như ai sẽ thực hiện một hành động nhất định trong vài ngày tới. Nó dành cho các nhóm sản phẩm và tăng trưởng muốn nhắm mục tiêu người dùng theo khả năng họ hành động.
Khi nào nên dùng
- ✓Khi bạn muốn biết người dùng nào có khả năng rời đi, quay lại hoặc dùng một tính năng sớm.
- ✓Khi bạn muốn dùng một dự đoán trong feature flag, cohort hoặc workflow.
- ✓Khi bạn muốn kiểm tra mô hình dự đoán hiện có đã chính xác đến mức nào.
Liên kết skill
https://github.com/PostHog/posthog/blob/master/products/autoresearch/skills/working-with-autoresearch/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Xây dựng một mô hình dự đoán những người dùng đang hoạt động nào sẽ mở một báo cáo trong 7 ngày tới.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Bạn đặt tên cho hành động cần dự đoán, nhóm người và khoảng thời gian. Một agent huấn luyện thử các phương án mô hình, giữ lại phương án hoạt động tốt nhất trên dữ liệu kiểm tra riêng, rồi chấm điểm mọi người theo lịch hằng ngày và ghi lại kết quả.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Người dùng được chấm điểm bao lâu một lần?
Theo mặc định, mô hình đã chọn chấm điểm người dùng mỗi ngày lúc 02:00 UTC.
Điều này có thay đổi hồ sơ của người dùng không?
Chỉ khi bạn bật cài đặt thuộc tính cho mô hình, khi đó mỗi người phù hợp sẽ có thêm một điểm dự đoán.
Làm sao tôi biết mô hình chính xác?
Sau khi mỗi khoảng dự đoán kết thúc, PostHog so sánh điểm số với những gì thực sự đã xảy ra và ghi lại kết quả.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 41k
- Vị trí xếp hạng
- #6835
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
depot-ci
41kGiúp agent của bạn thiết lập và chạy quy trình Depot CI, một lựa chọn thay thế GitHub Actions, gồm chuyển các quy trình hiện có và đọc nhật ký chạy.
depot-container-builds
41kGiúp agent của bạn build image Docker trên các builder từ xa của Depot, gồm image đa nền tảng, đẩy lên registry và sửa lỗi build.
depot-github-runners
41kGiúp agent của bạn chuyển các job GitHub Actions sang runner do Depot quản lý, chọn kích thước và nhãn runner, và xử lý lỗi thiết lập runner.
editing-agents-md
41kGiúp agent của bạn quyết định một quy tắc nên nằm trong file AGENTS.md hay CLAUDE.md, và viết sao cho quy tắc được tuân thủ mà file không bị phình to.
Skill tương tự
pytorch-patterns
280kGiúp agent của bạn dùng PyTorch cho các mô hình học máy. Áp dụng thực hành tốt nhất để huấn luyện mô hình hiệu quả và đảm bảo kết quả có thể lặp lại.
evm-token-decimals
280kGiúp agent tránh lỗi về số thập phân khi làm việc với các mạng blockchain khác nhau. Đảm bảo giá trị token chính xác trong giao dịch và phép tính.
ito-inference
280kGiúp agent kiểm tra xem các mô hình AI đã sẵn sàng để dùng chưa. Kết nối yêu cầu tài nguyên tính toán với dịch vụ mô hình đã sẵn sàng.