К основному содержанию
скилл CX Codex GP ChatGPT официальный · OpenAI

posthog — скилл для Codex: что делает и как установить

Анализирует данные продукта и управляет фиче-флагами, экспериментами или трекингом ошибок в PostHog прямо из диалога с агентом.

Установить в Codex · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add openai/plugins --skill posthog -a codex
Открыть на GitHub

Что делает posthog

Скилл задаёт сценарий работы с платформой PostHog через Codex и ChatGPT. Он помогает исследовать воронки и запускать HogQL-запросы. Сначала агент выясняет параметры задачи: нужные события и фильтры. Затем он обращается к сервису.

Внутри действует строгий порядок действий. Инструменты читают данные перед любой записью. Для переключения флагов в проде агент запрашивает подтверждение. Без подключённого через OAuth приложения PostHog инструменты не запустятся.

Какие задачи решает

  • выполнить запрос HogQL к событиям и пользователям
  • создать или переключить фиче-флаг в проекте
  • проверить результаты A/B-теста и метрики воронки
  • разобрать ошибки и исключения через систему error tracking

Примеры запросов агенту

  • Покажи воронку конверсии из регистрации в первую оплату за прошлую неделю в PostHog.
  • Напиши HogQL-запрос для подсчёта активных пользователей по дням с учётом таймзоны проекта.
  • Проверь статус фиче-флага new-checkout-flow и создай эксперимент для его раскатки.

Как установить posthog

1Через Skills CLI (Vercel)

npx skills add openai/plugins --skill posthog -a codex

2Вручную: положить файлы

.agents/skills/posthog/SKILL.md

Для всех проектов — ~/.agents/skills/

По шагам, с командами для каждой платформы: Скиллы Codex: как установить, где лежат и как вызвать

Вопросы о posthog

Как установить posthog в Codex?

Выполните команду npx skills add openai/plugins --skill posthog -a codex. Файл скилла сохранится в .agents/skills/posthog/SKILL.md.

Что делает скилл posthog?

Он помогает запрашивать продуктовую аналитику, писать HogQL-запросы, управлять фиче-флагами, настраивать опросы и отслеживать ошибки прямо в окне агента.

Что нужно подготовить перед запуском запросов?

Требуется подключить приложение PostHog через OAuth и указать рабочую организацию с проектом. Для self-hosted инстансов авторизация проходит по собственному адресу.

Исходный текст

SKILL.md · MIT
---
name: posthog
description: Analyze product data and manage product tooling in PostHog. Use when the user wants product analytics or insights, HogQL/SQL queries, feature flags, experiments and A/B tests, error tracking, session replay, surveys, LLM analytics, dashboards, data warehouse, or PostHog documentation.
---

# PostHog

## Overview

This skill provides a structured workflow for working with PostHog from ChatGPT and Codex. It assumes the bundled PostHog app is connected so the PostHog tools are available for analytics, feature flags, experiments, error tracking, and more.

PostHog is an all-in-one product platform. The same project's data backs every surface below, so most questions can be answered by querying analytics or running HogQL, and most product changes (flags, experiments, surveys) can be made directly.

**Prefer live tools over pre-trained knowledge.** Your baked-in knowledge of PostHog's API, HogQL functions, and tool shapes may be outdated. The connected PostHog app advertises its own skills and tools at runtime and asks clients to *prioritize its skills over raw tools* — discover and follow those rather than guessing. When in doubt about syntax, limits, or product behavior, use the documentation-search tool.

## Prerequisites
- The PostHog app must be connected and accessible via OAuth.
- Confirm which PostHog organization and project the request targets before reading or writing.
- Self-hosted users connect against their own instance during the app's OAuth flow.

## Required Workflow

**Follow these steps in order. Do not skip steps.**

### Step 0: Connect the PostHog app (if not already configured)

If PostHog tools are unavailable, pause and ask the user to connect the PostHog app:

1. Enable the bundled PostHog app for this plugin or session.
2. Complete the PostHog OAuth flow if prompted, and select the correct organization/project.
3. Restart Codex or the current session if the tools still do not appear.

After the app is connected, finish your answer and tell the user to retry so they can continue with Step 1.

### Step 1
Clarify the user's goal and scope (e.g., a metric over a time range, a funnel, a new feature flag, an experiment readout, an error investigation). Confirm the target project, date range, event/property names, and any filters or cohorts.

### Step 2
Discover the available PostHog skills/tools the connected app exposes and pick the right one for the task. Resolve identifiers (project ID, flag key, experiment ID, insight/dashboard ID, error issue ID) before calling tools. For anything involving syntax, function names, or product behavior, search the docs first.

### Step 3
Execute PostHog tool calls in logical batches:
- **Read first** — list/get/query (insights, events, HogQL/SQL, error issues) to build context.
- **Write next** — create or update flags, experiments, surveys, dashboards, or insights with all required fields.
- For destructive or broad changes (e.g., toggling a flag in production, ending an experiment), state the impact and confirm before applying.

### Step 4
Summarize results with concrete numbers and links to the PostHog UI where available, call out caveats (sampling, person-on-events timing, date ranges), and propose next actions.

## Capability Map

Use this to route a request to the right PostHog surface, then discover the exact tool the app exposes for it.

| If the user wants to… | PostHog surface |
| --- | --- |
| Answer a metric/trend/funnel/retention/path question | Insights & queries (trends, funnels, retention, paths, lifecycle, stickiness) |
| Run arbitrary SQL over events/persons | HogQL / SQL execution |
| Create, toggle, or audit a feature flag | Feature flags |
| Launch or read out an A/B test | Experiments |
| Investigate a bug or exception | Error tracking (issues + events) |
| Watch how users actually behave | Session replay |
| Gather qualitative feedback (NPS, surveys) | Surveys |
| Track LLM cost/latency/usage | LLM analytics |
| Build or update a dashboard | Dashboards & insights |
| Connect or query external data | Data warehouse |
| Look up how something works in PostHog | Documentation search |

## HogQL & Querying Tips
- HogQL is PostHog's SQL dialect over the events/persons schema. Read the data schema before writing queries, and confirm event and property names exist.
- With person-on-events enabled, `person.properties.*` on the events table reflect the value at ingestion time, not the person's current value — the same person can show different values across events. Don't build workarounds for "query-time" person properties.
- Respect the project timezone when bucketing by day.
- Start narrow (small date range, limited rows), validate, then widen.

## Tips for Maximum Productivity
- Batch related reads before writes; confirm identifiers up front.
- Use natural-language asks where the app supports them ("signups by week this quarter").
- Reference prior insights/dashboards instead of rebuilding from scratch.
- For experiments and flags, double-check rollout conditions and targeting before enabling.

## Troubleshooting
- **Tools missing**: re-run the app connection/OAuth flow (Step 0); verify org/project access.
- **Empty or surprising results**: re-check event/property names, date range, filters, and timezone; confirm the events exist via a small query.
- **Permission errors**: confirm the connected account has access to the target project and the action (some changes require elevated roles).
- **Unsure about syntax or limits**: search the PostHog docs rather than guessing.

© PostHog Inc. · MIT · openai/plugins

Похожие скиллы

Все скиллы по теме «Данные и базы» →
xlsx официальный anthropics Работает с табличными файлами: создаёт, читает, правит и преобразует книги. Подходит, когда итогом должен стать файл Excel или другой табличный формат. 187 223установок google-agents-cli-observability официальный Google Помогает настроить трассировку и сбор данных о работе ИИ-агентов, включая агентов на ADK. Пригодится, когда нужно разбирать выполнение запросов или наблюдать за агентом после развёртывания. CX Codex +1 511 300установок caveman-evidence-review JuliusBrussee Скилл читает данные Caveman Cloud о расходах LLM, трассах и маршрутизации. Подходит для проверки того, куда уходит бюджет проекта. CX Codex +1 104 500установок migration JuliusBrussee Скилл задаёт правила безопасных миграций схем, данных и API с обязательным откатом. Пригодится при изменениях, где нельзя терять данные или ломать совместимость. CX Codex +1 103 900установок performance-optimization addyosmani Скилл для агентов ИИ-кодинга: сначала замеряет, потом чинит узкое место — от Core Web Vitals до N+1 запросов и индексов в базе. CX Codex +1 65 200установок

Из того же набора593

Весь набор →
dcf-model-builder Скилл собирает DCF-модель публичной компании в XLSX, используя формульный шаблон как основной вариант. Пригодится для новой оценки, обновления модели или расчёта сценариев. CX Codex GP ChatGPT ★ 7 604звёзд репо comps-valuation Скилл для Codex и ChatGPT, который собирает сравнительную оценку публичных компаний: подбирает аналоги, считает мультипликаторы и делает отчёт или рабочую книгу. CX Codex GP ChatGPT ★ 7 604звёзд репо company-tearsheet Собирает подтверждённый факт-лист по публичной компании на основе отчётов и рыночных данных. Пригодится перед моделированием DCF или подготовкой инвестиционного меморандума. CX Codex GP ChatGPT ★ 7 604звёзд репо catalyst-calendar Собирает и обновляет календарь биржевых катализаторов с датами, уверенностью, связью с тезисом и следующими действиями. Работает в Codex и ChatGPT. CX Codex GP ChatGPT ★ 7 604звёзд репо physical-ai-infrastructure-setup-and-resilient-scaling Скилл помогает подготовить и проверять инфраструктуру NVIDIA Physical AI для генерации синтетических данных на MicroK8s или Azure AKS. Он также охватывает развёртывание OSMO и восстановление после сбоев. CX Codex GP ChatGPT ★ 7 604звёзд репо omniverse-usd-performance-tuning Оркестратор для разбора медленной загрузки, нехватки памяти и низкого FPS в USD-сценах. Ведёт агента по цепочке фаз от профилирования до отчёта. CX Codex GP ChatGPT ★ 7 604звёзд репо omniverse-realtime-viewer Направляет агента при сборке 3D-вьюеров OpenUSD на базе NVIDIA Omniverse. Помогает выбрать архитектурный путь и подключить нужные рецепты рендеринга. CX Codex GP ChatGPT ★ 7 604звёзд репо omniverse-cad-to-simready Координирует путь от CAD-модели или другого исходного ассета до SimReady USD и пакета. Нужен для конвертации, назначения материалов и физики, проверки и подготовки ассета. CX Codex GP ChatGPT ★ 7 604звёзд репо

Спонсоры проекта

Компании, которые помогают держать аналитику открытой