creating-ai-subscription
Что он делает
Этот скилл создаёт регулярный отчёт, в котором ИИ по расписанию пишет новую сводку на основе запроса на простом языке. Он предназначен для тех, кто хочет постоянный анализ, а не фиксированный график.
Когда использовать
- ✓Когда вы хотите ежедневную, еженедельную или ежемесячную сводку по теме в ваших данных, написанную ИИ.
- ✓Когда вам нужен сам анализ, а не фиксированный график, который вы уже построили.
- ✓Когда вы хотите, чтобы сводка отправлялась по почте, в Slack или Microsoft Teams.
Ссылка на скилл
https://github.com/PostHog/posthog/blob/master/products/subscriptions/skills/creating-ai-subscription/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Присылай мне еженедельную сводку ИИ о том, как изменились наши регистрации и отток, каждый понедельник по почте.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Скилл назначает выполнение вашего запроса по заданному расписанию. Каждый раз ИИ планирует собственные запросы к данным, пишет отчёт в формате Markdown и доставляет его в выбранное место.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
Creating a prompt subscription
When to use this
A subscription delivers a PostHog report to email, Slack, or Microsoft Teams on a
recurring schedule. There are three kinds, distinguished by which field you set — the kind is
derived and returned as the read-only resource_type:
insight— periodic snapshots of one existing insight (resource_type: "insight")dashboard— periodic snapshots of a dashboard's tiles (resource_type: "dashboard")prompt— a recurring AI-generated report from a free-text prompt: an LLM plans and runs HogQL over the project's data and synthesizes a fresh markdown report each tick (resource_type: "ai_prompt")
Use this skill for the prompt kind — i.e. when the user wants a recurring AI
summary of X (on any cadence — daily, weekly, monthly, yearly) rather than a recurring
snapshot of one existing insight/dashboard, or a single one-off report. Pick a prompt subscription when the
value is the analysis itself (the LLM deciding what to query and writing it up),
not a fixed chart they already built. For an insight/dashboard subscription, set
insight/dashboard instead of prompt and the AI gates below don't apply.
Prefer a dashboard or insight subscription first. A prompt subscription is the heaviest option, and the LLM composes its own HogQL, so its numbers can drift from what a saved insight or dashboard already shows. Reach for it only when (a) the user specifically asks for a free-text / AI-written report, or (b) no existing insight or dashboard covers the ask and the value really is the analysis itself. If the user wants the key numbers from an existing dashboard or insight delivered on a schedule — even phrased as "set up a scout/bot to post this daily" — a dashboard (or insight) subscription with
summary_enabled: trueis usually the better fit. Respect a user who's sure they want a prompt subscription, but when it's ambiguous, suggest that and confirm first. Seemanaging-subscriptionsfor the happy path.
This skill covers creating the subscription. Once it exists you manage its
lifecycle with the same subscriptions-* tools (see below): list it, edit/disable/
re-enable it, send a test delivery, or delete it.
Tools
| Tool | Purpose |
|---|---|
posthog:subscriptions-create |
Create the recurring prompt subscription |
posthog:subscriptions-list |
Confirm it landed; inspect existing subscriptions |
posthog:subscriptions-partial-update |
Edit, disable (enabled: false), or re-enable it |
posthog:subscriptions-test-delivery-create |
Send an immediate test delivery to its target(s) |
posthog:subscriptions-delete |
Soft-delete it (stops all future deliveries) |
posthog:integrations-list |
Find a Slack integration_id (filter kind=slack) |
posthog:integrations-channels-retrieve |
List a Slack integration's channels (id + name) |
What you need before calling
The endpoint enforces three create-time gates and will return 400 if any fails:
- PostHog Cloud, or
DEBUG=true— self-hosted production deployments are not eligible (the LLM call routes through a PostHog-managed key). - Org-level "AI data processing approved" — must be toggled on in
Org settings → Data → AI data processing. The user must opt in to AI features for the organization first. - Prompt subscriptions enabled for the organization — a PostHog-managed rollout flag. If it's off, the org has not been granted access yet; tell the user to reach out to PostHog to enable it (there is no self-serve toggle).
If any of the three is missing, stop and tell the user which one to fix — re-calling the tool will not help.
Your access token also needs the query:read scope in addition to
subscription:write: a prompt subscription runs LLM-generated HogQL over the project's
data, so the backend requires query access to create, edit/re-enable, test-deliver,
or delete one. A subscription:write-only token is rejected with a 403.
Required arguments
prompt: "..." # ≤4000 chars; setting this (with no insight/dashboard) makes it a prompt sub → resource_type "ai_pr
Частые вопросы
Что выбрать: этот скилл или подписку на график?
Сначала используйте подписку на дашборд или инсайт, если сохранённый график уже показывает нужное, потому что цифры ИИ могут отличаться от сохранённых графиков.
Кто пишет отчёт?
Его пишет ИИ, составляя собственные запросы к данным вашего проекта.
Куда его можно отправить?
Его можно отправить по почте, в Slack или Microsoft Teams.
Подробности
Оригинальное описание автора
Create a recurring AI-generated PostHog report — schedule a free-text prompt to run on a cron, with the LLM-synthesized markdown delivered to email, Slack, or Microsoft Teams on each tick. Use when the user wants a recurring AI summary of X on any cadence (daily, weekly, monthly, yearly) rather than a one-off report. (To attach an AI summary to an existing insight/dashboard subscription instead of a free-text prompt, see `managing-subscriptions` and its `summary_enabled` option.)
repo: PostHog/posthog
Популярность
- Звёзды на GitHub
- 41k
- Место в рейтинге
- #6956
- Лицензия
- —
- Обновлён
- 02.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
depot-ci
41kПомогает агенту настроить и запускать workflow в Depot CI, альтернативе GitHub Actions, включая перенос существующих workflow и чтение логов запусков.
depot-container-builds
41kПомогает агенту собирать Docker-образы на удалённых сборщиках Depot, включая мультиплатформенные образы, отправку в реестры и исправление ошибок сборки.
depot-github-runners
41kПомогает агенту переносить задачи GitHub Actions на раннеры Depot: выбирать размер и метки раннера и устранять проблемы настройки.
editing-agents-md
41kПомогает агенту решить, нужно ли правило в файле AGENTS.md или CLAUDE.md, и записать его так, чтобы оно работало, не раздувая файл.
Похожие скиллы
discord-user-post
394kПозволяет агенту отправить одобренное вами сообщение в Discord от вашего имени через настольное приложение, после проверки точного канала.
configure-channel
394kУчит агента подключать чат-приложение, например Telegram, к OpenClaw, безопасно хранить токен бота и проверять, что сообщения проходят.
discord
394kПомогает агенту читать, отправлять, редактировать сообщения Discord и ставить на них реакции через OpenClaw, проверяя нужное сообщение перед изменениями.