본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

posthog

simonfunk 제작

Marketing & Sales
507clawskills.sh가 보고한 다운로드 수
0조회수
좋아요 0개로그인하면 이 스킬에 좋아요를 누를 수 있습니다
—아직 평가 없음
내 평가

요약

Interact with PostHog analytics via its REST API.

설명

이 스킬이 하는 일

Connects to PostHog via its REST API to capture events, evaluate feature flags, run HogQL queries, and manage analytics resources: persons, dashboards, experiments, surveys, cohorts, and session recordings. Two authentication modes are supported: a public project API key for capture and flags endpoints, and a personal API key for all private read/write operations.

HogQL lets you run SQL-style queries directly against events, persons, and sessions without exporting data to a separate warehouse or BI tool.

사용 시점

  • Capturing a user signup event with plan metadata attached
  • Evaluating feature flags before rendering a new UI component
  • Querying top events over the last 7 days with HogQL
  • Creating a 50% rollout feature flag for a new dashboard
  • Listing session recordings to debug a checkout funnel drop-off

예시 워크플로

입력

User asks: What were the top 10 events in my PostHog project over the last 7 days?

에이전트
  1. 1

    Authenticates with the personal API key via Authorization header

  2. 2

    Constructs a HogQL query selecting event name and count with a 7-day timestamp filter and LIMIT 10

  3. 3

    POSTs the query to /api/projects/:project_id/query/

  4. 4

    Parses the response rows and formats them as a ranked list

출력

A ranked table of event names and their occurrence counts for the past 7 days

요구 사항

  • POSTHOG_API_KEY environment variable (personal API key from https://us.posthog.com/settings/user-api-keys)
  • POSTHOG_PROJECT_ID environment variable (from https://us.posthog.com/settings/project)
  • POSTHOG_PROJECT_API_KEY environment variable (optional, required for event capture and flag evaluation endpoints)
  • PostHog account

설치

clawhub install simonfunk/posthog

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크