working-with-autoresearch
Ce qu’il fait
Cette skill configure PostHog Autoresearch, qui construit un modèle prédictif pour une question comme qui fera une certaine action dans les prochains jours. Elle s'adresse aux équipes produit et croissance qui veulent cibler les personnes selon leur probabilité d'agir.
Quand l’utiliser
- ✓Quand vous voulez savoir quels utilisateurs risquent de partir, de revenir ou d'adopter une fonctionnalité bientôt.
- ✓Quand vous voulez utiliser une prédiction dans un feature flag, une cohorte ou un workflow.
- ✓Quand vous voulez vérifier la précision d'un modèle de prédiction existant.
Lien du skill
https://github.com/PostHog/posthog/blob/master/products/autoresearch/skills/working-with-autoresearch/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Construis un modèle qui prédit quels utilisateurs actifs ouvriront un rapport dans les 7 prochains jours.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
Vous indiquez l'action à prédire, le groupe de personnes et la fenêtre de temps. Un agent d'entraînement teste plusieurs options de modèle, garde celui qui obtient les meilleurs résultats sur des données de test, puis note les personnes chaque jour et enregistre les résultats.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis 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
Questions fréquentes
À quelle fréquence les personnes sont-elles notées ?
Par défaut, le modèle choisi note les personnes chaque jour à 02 h 00 UTC.
Modifie-t-il les profils des personnes ?
Seulement si vous activez le paramètre de propriété du modèle, qui ajoute un score prédit à chaque personne concernée.
Comment savoir si le modèle est précis ?
Une fois chaque période de prédiction terminée, PostHog compare les scores à ce qui s'est réellement passé et enregistre le résultat.
Détails
Description originale de l’auteur
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
Popularité
- Étoiles GitHub
- 41k
- Position au classement
- #6835
- Licence
- —
- Mis à jour
- 02/11/2026
Commentaires
- …
Autres skills de ce dépôt
depot-ci
41kAide votre agent à configurer et exécuter des workflows Depot CI, alternative à GitHub Actions, en migrant les workflows existants et en lisant les journaux.
depot-container-builds
41kAide votre agent à construire des images Docker sur les constructeurs distants de Depot, y compris les images multiplateformes et la correction des échecs.
depot-github-runners
41kAide votre agent à faire tourner les jobs GitHub Actions sur les machines gérées par Depot, à choisir la taille des runners et leurs labels, et à résoudre les problèmes de configuration.
editing-agents-md
41kAide votre agent à décider si une règle doit figurer dans un fichier AGENTS.md ou CLAUDE.md, et à la rédiger pour qu'elle soit suivie sans alourdir le fichier.
Skills similaires
pytorch-patterns
280kAide votre agent à utiliser PyTorch pour les modèles de machine learning. Il applique les bonnes pratiques pour un entraînement efficace et des résultats reproductibles.
evm-token-decimals
280kAide votre agent à éviter les erreurs de nombres décimaux sur différents réseaux blockchain. Il garantit des valeurs de tokens exactes dans les transactions et les calculs.
ito-inference
280kPermet à votre agent de vérifier la disponibilité des modèles d'IA. Il relie la demande de calcul au service de modèle prêt à l'emploi.