creating-ai-subscription
하는 일
이 스킬은 일반 언어 프롬프트를 바탕으로 AI가 일정에 따라 새 요약을 작성하는 정기 보고서를 만듭니다. 고정된 차트가 아니라 지속적인 분석을 원하는 사람을 위한 스킬입니다.
사용하는 경우
- ✓데이터의 한 주제에 대해 매일, 매주 또는 매월 AI 요약을 받고 싶을 때.
- ✓이미 만든 고정 차트가 아니라 분석 자체를 받고 싶을 때.
- ✓요약을 이메일, Slack 또는 Microsoft Teams로 받고 싶을 때.
스킬 링크
https://github.com/PostHog/posthog/blob/master/products/subscriptions/skills/creating-ai-subscription/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“매주 월요일 우리 가입과 이탈이 어떻게 바뀌었는지 AI 요약을 이메일로 보내 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
프롬프트를 정해진 시간표에 따라 실행하도록 예약합니다. 실행할 때마다 AI가 자체 데이터 쿼리를 계획하고, 마크다운으로 보고서를 쓴 뒤 선택한 대상에 전달합니다.
기술 내용 (원본 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
자주 묻는 질문
이것과 차트 구독 중 무엇을 써야 하나요?
저장된 차트가 이미 필요한 내용을 보여 준다면 대시보드나 인사이트 구독을 먼저 씁니다. AI의 수치는 저장된 차트와 다를 수 있기 때문입니다.
보고서는 누가 쓰나요?
AI가 쓰며, 프로젝트 데이터에 대해 자체 쿼리를 작성합니다.
어디로 보낼 수 있나요?
이메일, 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
- 라이선스
- —
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
depot-ci
41k에이전트가 GitHub Actions 대안인 Depot CI 워크플로를 설정하고 실행하도록 돕습니다. 기존 워크플로 이전과 실행 로그 읽기를 포함합니다.
depot-container-builds
41k에이전트가 Depot 원격 빌더에서 Docker 이미지를 빌드하도록 돕습니다. 다중 플랫폼 이미지, 레지스트리 푸시, 빌드 실패 수정을 포함합니다.
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에이전트가 OpenClaw를 통해 Discord 메시지를 읽고, 보내고, 수정하고, 반응을 달며, 변경 전에 정확한 메시지를 확인하도록 돕습니다.