creating-ai-subscription
Fungsinya
Skill ini membuat laporan berulang di mana AI menulis ringkasan baru dari prompt dalam bahasa biasa sesuai jadwal. Ditujukan untuk orang yang menginginkan analisis berkelanjutan, bukan grafik tetap.
Kapan dipakai
- βSaat Anda menginginkan ringkasan AI harian, mingguan, atau bulanan tentang suatu topik dalam data Anda.
- βSaat Anda menginginkan analisis itu sendiri, bukan grafik tetap yang sudah Anda buat.
- βSaat Anda ingin ringkasan dikirim melalui email, Slack, atau Microsoft Teams.
Link skill
https://github.com/PostHog/posthog/blob/master/products/subscriptions/skills/creating-ai-subscription/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βKirimkan saya ringkasan AI mingguan tentang bagaimana pendaftaran dan churn kami berubah, setiap Senin melalui email.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill menjadwalkan prompt Anda untuk berjalan sesuai jadwal yang ditetapkan. Setiap kali, AI merencanakan kueri datanya sendiri, menulis laporan dalam markdown, dan mengirimkannya ke tujuan yang Anda pilih.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Apakah saya harus menggunakan ini atau langganan grafik?
Gunakan langganan dasbor atau insight terlebih dahulu jika grafik yang sudah tersimpan sudah menunjukkan apa yang Anda butuhkan, karena angka AI dapat berbeda dari grafik yang tersimpan.
Siapa yang menulis laporan?
AI yang menulisnya, dengan menyusun kueri sendiri atas data proyek Anda.
Ke mana laporan itu dapat dikirim?
Laporan dapat dikirim melalui email, Slack, atau Microsoft Teams.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 41k
- Peringkat
- #6956
- Lisensi
- β
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
depot-ci
41kMembantu agent Anda menyiapkan dan menjalankan alur kerja Depot CI, alternatif GitHub Actions, termasuk memigrasikan alur kerja yang ada dan membaca log eksekusi.
depot-container-builds
41kMembantu agent Anda membangun image Docker di builder jarak jauh Depot, termasuk image multi-platform, pengiriman ke registry, dan perbaikan kegagalan build.
depot-github-runners
41kMembantu agent Anda memindahkan job GitHub Actions ke runner yang dikelola Depot, memilih ukuran dan label runner, serta memecahkan masalah pengaturan runner.
editing-agents-md
41kMembantu agent Anda memutuskan apakah sebuah aturan layak masuk ke berkas AGENTS.md atau CLAUDE.md, dan menulisnya agar tetap dipatuhi tanpa membuat berkas membengkak.
Skill serupa
discord-user-post
394kMemungkinkan agent Anda mengirim pesan yang sudah Anda setujui ke Discord atas nama Anda, lewat aplikasi desktop Discord, setelah channel tujuannya dipastikan.
configure-channel
394kMengajari agent Anda menghubungkan aplikasi chat seperti Telegram ke OpenClaw, menyimpan token bot dengan aman, dan memastikan pesan benar-benar mengalir.
discord
394kMembantu agent Anda membaca, mengirim, mengedit, dan memberi reaksi pada pesan Discord lewat OpenClaw, dengan memeriksa pesan yang tepat sebelum perubahan dilakukan.