Best for
- insight — periodic snapshots of one existing insight (resourcetype: "insight")
- dashboard — periodic snapshots of a dashboard's tiles (resourcetype: "dashboard")
- prompt — a recurring AI-generated report from a free-text prompt: an LLM
PostHog/skills/skills/omnibus/creating-ai-subscription/SKILL.md
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 or Slack 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.)
Decision brief
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 or Slack on each tick. (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.
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/PostHog/skills --skill "skills/omnibus/creating-ai-subscription"Inspect the Agent Skill "creating-ai-subscription" from https://github.com/PostHog/skills/blob/870cdf070c94f2bf39d8b2a9d4916cfd44779cce/skills/omnibus/creating-ai-subscription/SKILL.md at commit 870cdf070c94f2bf39d8b2a9d4916cfd44779cce. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
A subscription delivers a PostHog report to email or Slack on a recurring schedule. There are three kinds, distinguished by which field you set — the kind is derived and returned as the read-only resourcetype:
Review the “Tools” section in the pinned source before continuing.
The endpoint enforces three create-time gates and will return 400 if any fails:
There is no resourcetype argument to send — the kind is derived from which field you set (prompt ⇒ AI report) and returned as the read-only resourcetype.
Review the “Optional arguments” section in the pinned source before continuing.
Permission review
No configured static risk pattern was detected
This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.
Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 93/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 60 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
A subscription delivers a PostHog report to email or Slack 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.
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.
| 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) |
The endpoint enforces three create-time gates and will return 400 if any fails:
DEBUG=true — self-hosted production deployments are not
eligible (the LLM call routes through a PostHog-managed key).Org settings → Data → AI data processing. The user must opt in to AI features
for the organization first.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.
prompt: "..." # ≤4000 chars; setting this (with no insight/dashboard) makes it a prompt sub → resource_type "ai_prompt"
target_type: "email" | "slack" # webhook is rejected for prompt subs
target_value: "..." # comma-separated emails, or "<channel_id>|<channel_name>"
frequency: "daily" | "weekly" | "monthly" | "yearly"
interval: 1 # 1 = every tick; 2 = every other tick; etc.
start_date: "2026-09-15T09:00:00Z" # anchors the recurrence + time-of-day; need not be in the future — the scheduler delivers the next occurrence
title: "..." # display name in the subscriptions list
There is no resource_type argument to send — the kind is derived
from which field you set (prompt ⇒ AI report) and returned as the read-only resource_type.
byweekday: ['monday', 'wednesday'] # weekly only — days the rrule fires
bysetpos: 1 # most useful with monthly; requires byweekday — e.g. byweekday:['monday']+bysetpos:-1 = last Monday
count: 10 # cap total deliveries
until_date: '2026-12-31T00:00:00Z' # stop on/before this date
integration_id: 42 # Slack only — required; from integrations-list (see "Slack target")
target_value must be <channel_id>|<channel_name> (the format the integration
returns). Build it in three steps:
posthog:integrations-list filtered by kind=slack → pick the Slack
integration's id.posthog:integrations-channels-retrieve with that id → pick a channel; it
returns each channel's id and name, which you assemble into target_value
as <id>|<name>.id as integration_id — the subscription is pinned
to one specific Slack integration so reconnections elsewhere don't accidentally
re-route deliveries.prompt: 'Top events week over week, with the biggest drops and any new failure modes called out.'
target_type: email
target_value: [email protected]
frequency: weekly
interval: 1
byweekday: ['monday']
start_date: '2026-09-14T08:00:00Z'
title: 'Weekly product pulse'
prompt: "Yesterday's sign-ups, where they came from, and any errors they hit during onboarding."
target_type: slack
target_value: 'C0123456789|growth-updates' # <channel_id>|<channel_name>; only the channel id is used, the name is cosmetic
integration_id: 42
frequency: daily
interval: 1
start_date: '2026-09-15T09:00:00Z'
title: 'Daily onboarding watch'
prompt to an insight sub is rejected. Pick the right kind at create time.prompt — already persisted on the row, or a
new one in the PATCH body (so bare {"enabled": true} works when the stored prompt
is still valid, but is rejected when the disable cause was an invalid prompt until
you supply a good one); and (2) the original creator is still an active user —
if that account was deactivated the sub cannot be re-enabled at all (no prompt will
help; re-create it instead).next_delivery_date is server-computed from the rrule. Don't try to set it
manually — it's read-only. The first delivery fires at the first start_date
occurrence that is at least a short buffer (currently ~15 minutes) in the future,
so a start_date only seconds ahead rolls to the next occurrence.subscriptions-list will return the new row. Confirm resource_type: "ai_prompt",
enabled: true, next_delivery_date is in the future, and prompt matches what
you sent. The first scheduled tick will run the planner → HogQL → synthesis
pipeline and email/Slack the rendered markdown.
Frequently asked questions
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 or Slack on each tick. (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.
The source record exposes this install command: npx skills add https://github.com/PostHog/skills --skill "skills/omnibus/creating-ai-subscription". Inspect the command and pinned source before running it.
Alternatives
coreyhaines31/marketingskills
When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program
coreyhaines31/marketingskills
When the user wants to reduce churn, build cancellation flows, set up save offers, recover failed payments, or implement retention strategies. Also use when the user mentions 'churn,' 'cancel flow,' 'offboarding,' 'save offer,' 'dunning,' 'failed payment recovery,' 'win-back,' 'retention,' 'exit survey,' 'pause subscription,' 'involuntary churn,' 'people keep canceling,' 'churn rate is too high,' 'how do I keep users,' or 'customers are leaving.' Use this whenever someone is losing subscribers o
alirezarezvani/claude-skills
App Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklist
wanshuiyin/Auto-claude-code-research-in-sleep
Use it for operations and research tasks; the detail page covers purpose, installation, and practical steps.