Установка
SKILL.md
Managing subscriptions
This skill guides you through managing PostHog subscriptions. Subscriptions deliver scheduled snapshots of insights or dashboards via email, Slack, or webhook.
When to use this skill
Use this skill when the user:
- Wants to "track", "follow", "subscribe to", or "get updates" about an insight or dashboard
- Asks for "daily updates", "weekly reports", or "send me this every morning"
- Wants an AI-written summary attached to each delivery of an insight or dashboard (see step 6)
- Wants to know what subscriptions they have
- Asks to stop, pause, or unsubscribe from something
- Wants to change who receives an update or how often
Subscriptions vs alerts
Subscriptions and alerts serve different purposes:
- Subscriptions deliver a snapshot on a fixed schedule (daily, weekly, etc.) regardless of the data
- Alerts fire only when a condition is met (threshold crossed, anomaly detected)
If the user says "notify me when this drops below 100", use alerts. If the user says "send me this every morning", use subscriptions.
Workflow
Listing existing subscriptions
Before creating a new subscription, check if one already exists.
Use subscriptions-list with optional filters:
- Filter by insight: pass the
insightquery parameter with the insight ID - Filter by dashboard: pass the
dashboardquery parameter with the dashboard ID - Filter by channel: pass
target_typeasemail,slack, orwebhook
Creating a subscription
Step 1: Ask the user how they want to receive it
Always ask the user whether they want email or Slack delivery before creating a subscription. Do not assume a channel — ask explicitly:
Would you like to receive this via email or Slack?
If the user says Slack, you must verify the integration is available (see step 2). If the user doesn't have a preference, suggest email as the simplest option.
Step 2: Verify channel availability
Email requires no setup — it works out of the box. You just need the user's email address.
Get it from the user context or from org-members-list.
Slack requires a connected Slack integration. Before creating a Slack subscription:
- Call
integrations-listand look for an integration wherekindis"slack" - If a Slack integration exists, note its
id— you'll need it asintegration_id - If no Slack integration exists, tell the user:<!-- -->
Slack isn't connected to this project yet. You can set it up in <!-- -->Project settings > Integrations<!-- -->. In the meantime, would you like to receive this via email instead?
Slack setup requires an OAuth flow in the browser — it cannot be done via MCP.
Webhook requires the user to provide a URL. Verify it looks like a valid URL before submitting.
Step 3: Identify the target
Get the insight ID or dashboard ID. If the user provides a URL like /project/2/insights/pKxzopBG,
fetch the insight first with insight-get to get the numeric ID.
Step 4: Determine delivery settings from the user's request
| User says | Parameters |
|---|---|
| "every day" / "daily" / "every morning" | frequency: "daily" |
| "every week" / "weekly" | frequency: "weekly" |
| "every Monday" | frequency: "weekly", byweekday: ["monday"] |
| "every month" / "monthly" | frequency: "monthly" |
| "twice a week" | frequency: "weekly", interval: 1, byweekday: ["monday", "thursday"] |
Step 5: Create with subscriptions-create
For an insight subscription via email:
{
"insight": 12345,
"target_type": "email",
"target_value": "user@example.com",
"frequency": "daily",
"start_date": "2025-01-01T09:00:00Z"
}
For a dashboard subscription (requires selecting which insights to include, max 6):
{
"dashboard": 67,
"dashboard_export_insights": [101, 102, 103],
"target_type": "email",
"target_value": "user@example.com",
"frequency": "weekly",
"byweekday": ["monday"],
"start_date": "2025-01-01T09:00:00Z"
}
For Slack delivery, include the integration_id from step 2:
{
"insight": 12345,
"target_type": "slack",
"target_value": "#general",
"integration_id": 789,
"frequency": "daily",
"start_date": "2025-01-01T09:00:00Z"
}
Step 6 (optional): Attach an AI summary
For insight and dashboard subscriptions you can attach an AI-written summary to every
delivery — a short narrative that calls out what changed, outliers, and notable insights
alongside the snapshot. Set it at create time (or toggle later via subscriptions-partial-update):
summary_enabled: true— turns on the per-delivery AI summarysummary_prompt_guide: "..."— optional steer, e.g. "focus on sign-up conversion and any new drop-off points"
{
"dashboard": 67,
"dashboard_export_insights": [101, 102, 103],
"target_type": "email",
"target_value": "user@example.com",
"frequency": "weekly",
"byweekday": ["monday"],
"start_date": "2025-01-01T09:00:00Z",
"summary_enabled": true,
"summary_prompt_guide": "Call out outliers and new insights since last week"
}
Enabling a summary requires the organization to have approved AI data processing
(Org settings → Data → AI data processing) and to be within its active-summary cap and AI
credit budget; otherwise the create/update is rejected. summary_enabled does not apply to
prompt subscriptions — those are AI-generated by definition (see creating-ai-subscription).
Updating a subscription
Use subscriptions-partial-update with the subscription ID. Common updates:
- Change frequency:
{"frequency": "weekly", "byweekday": ["monday"]} - Add recipients: Update
target_valuewith the full comma-separated list - Change channel: Update
target_typeandtarget_valuetogether - Toggle the AI summary (insight/dashboard subs):
{"summary_enabled": true, "summary_prompt_guide": "..."}— same AI-data-processing and budget gates as step 6
Deactivating a subscription
Subscriptions are soft-deleted. Use subscriptions-partial-update:
{
"id": 456,
"deleted": true
}
Defaults
When the user doesn't specify details:
- Frequency:
"daily" - Channel: email to the current user
- Start date: now (ISO 8601)
- Title: auto-generated from the insight/dashboard name if not specified
Error handling
- Duplicate check: If a subscription already exists for the same insight/dashboard and channel, inform the user and offer to update it rather than creating a duplicate
- Slack not connected: If a Slack subscription is requested but no Slack integration exists, explain that Slack must be connected in <!-- -->Project settings > Integrations<!-- --> first, then offer email as an alternative. Do not attempt to create the subscription — it will fail with a validation error
- Slack integration wrong team: The Slack integration must belong to the same PostHog team. If
integrations-listreturns Slack integrations but creation still fails, the integration may be misconfigured - Dashboard insights: Dashboard subscriptions require at least 1 and at most 6 insights selected via
dashboard_export_insights. If the user doesn't specify which insights, fetch the dashboard withdashboard-getand select the first 6 insights from its tiles
Вставить в README
Ссылка на карточку для вашего README — без картинок и счётчиков.
[DarkPlay: managing-subscriptions](https://darkplay.ru/ai/skills/posthog-posthog-managing-subscriptions)
Из того же репозитория
Похожие скиллы и другие разделы каталога
Самые востребованные скиллов раздела по установкам и звёздам.
find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.Соседние разделы каталога: возможно, нужный инструмент живёт там.
Chief Of Staffaffaan-m · Личный руководитель коммуникаций, который сортирует почту, Slack, LINE и Messenger…
dataverseanthropics · Навыки агента для разработки, анализа и управления Microsoft Dataverse с помощью…
hostingeranthropics · Развёртывание, управление и мониторинг сервисов Hostinger: сайты, домены, ecommerce…
pineconeanthropics · Интеграция векторной базы данных Pinecone. Упрощает разработку с Pinecone благодаря…
postizanthropics · CLI для автоматизации соцсетей: планирование постов, управление интеграциями, загрузка…
supabaseanthropics · Интеграция Supabase MCP для работы с базой данных, аутентификации, хранилища и подписок в…
postizanthropics · CLI для автоматизации соцсетей: планирование постов, управление интеграциями, загрузка…
slack-by-salesforceanthropics · Интеграция со Slack для поиска сообщений, отправки уведомлений, управления канвасами и…
Comet Opikgithub · Единый агент Comet Opik для инструментирования LLM-приложений, управления промптами и…
autoresearchorchestra-research · Оркестрация автономных исследований по двухконтурной архитектуре. Управляет полным…Лучшие ИИ-инструменты для генерации видео
Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,
VEED.IOVeed
MootionMootion
Sora (OpenAI)OpenAI
viralpulse.appViralpulse
Viral Maker AIViral-makerЛучшие ИИ-инструменты для генерации текста и копирайтинга
Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра
NeuroscribeNeuroscribe
GoGPTGogpt
НейроТекстерNeuro-texter
ChatGPTOpenAI
Cosmo ScribeCosmoscribe
Memo HelperCopilot33
LibraChatLibrachatЛучшие ИИ-инструменты для генерации изображений
Подборка нейросетей для генерации изображений от фотореализма до концепт-арта. Сервисы, которые экономят часы ручной работы, создавая визуал для блогов, рекламы и дизайна за минуты
MagviMagvi
DALL-E 3OpenAI
SupaLabSupalab
Freestyling.aiFreestyling
ArtGeneration.meArtgeneration
BigjpgBigjpg
Художник от VKVK
Avato AI12ai
Virton AIVirton