creating-ai-subscription
O que ela faz
Esta skill cria um relatório recorrente no qual uma IA escreve um resumo novo a partir de um prompt em linguagem simples, em uma programação. É para quem quer uma análise contínua, e não um gráfico fixo.
Quando usar
- ✓Quando você quer um resumo diário, semanal ou mensal de um tema dos seus dados, escrito por IA.
- ✓Quando você quer a própria análise, e não um gráfico fixo que você já montou.
- ✓Quando você quer o resumo enviado por e-mail, Slack ou Microsoft Teams.
Link da skill
https://github.com/PostHog/posthog/blob/master/products/subscriptions/skills/creating-ai-subscription/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Me envie um resumo semanal, escrito por IA, de como nossos cadastros e nosso churn mudaram, toda segunda-feira por e-mail.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
Ela agenda seu prompt para rodar em um cronograma definido. Cada vez, uma IA planeja suas próprias consultas de dados, escreve o relatório em markdown e o entrega ao destino escolhido.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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
Perguntas frequentes
Devo usar isto ou uma assinatura de gráfico?
Use primeiro uma assinatura de dashboard ou de insight quando um gráfico salvo já mostra o que você precisa, porque os números da IA podem diferir dos gráficos salvos.
Quem escreve o relatório?
Uma IA escreve, compondo as próprias consultas sobre os dados do seu projeto.
Para onde ele pode ser enviado?
Pode ser enviado por e-mail, Slack ou Microsoft Teams.
Detalhes
Descrição original do autor
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
Popularidade
- Estrelas no GitHub
- 41 mil
- Posição no ranking
- #6956
- Licença
- —
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
depot-ci
41 milAjuda seu agente a configurar e executar fluxos de trabalho do Depot CI, uma alternativa ao GitHub Actions, incluindo a migração de fluxos existentes e a leitura dos logs de execução.
depot-container-builds
41 milAjuda seu agente a criar imagens Docker nos builders remotos do Depot, incluindo imagens multiplataforma, envio para registros e correção de falhas de build.
depot-github-runners
41 milAjuda seu agente a levar tarefas do GitHub Actions para runners gerenciados pelo Depot, escolhendo os tamanhos e os rótulos dos runners e resolvendo problemas de configuração.
editing-agents-md
41 milAjuda seu agente a decidir se uma regra deve ficar em um arquivo AGENTS.md ou CLAUDE.md, e a escrevê-la de forma que seja seguida sem deixar o arquivo inchado.
Skills parecidas
discord-user-post
394 milPermite que seu agente publique no Discord uma mensagem que você aprovou, como você, pelo app de desktop do Discord, depois de confirmar o canal exato.
configure-channel
394 milEnsina seu agente a conectar um app de chat, como o Telegram, ao OpenClaw, guardar o token do bot com segurança e verificar se as mensagens fluem.
discord
394 milAjuda seu agente a ler, enviar, editar e reagir a mensagens do Discord pelo OpenClaw, conferindo a mensagem exata antes de fazer alterações.