โ† All skills
Tencent SkillHub ยท Developer Tools

PostHog

Interact with PostHog analytics via its REST API. Capture events, evaluate feature flags, query data with HogQL, manage persons, insights, dashboards, experi...

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

Interact with PostHog analytics via its REST API. Capture events, evaluate feature flags, query data with HogQL, manage persons, insights, dashboards, experi...

โฌ‡ 0 downloads โ˜… 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
SKILL.md, references/api-endpoints.md, scripts/posthog.sh

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.

Upgrade existing

I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
1.0.0

Documentation

ClawHub primary doc Primary doc: SKILL.md 11 sections Open source page

PostHog API Skill

Interact with PostHog via its REST API. Two types of endpoints: Public (POST-only, project API key): capture events, evaluate flags โ€” no rate limits Private (personal API key): query, CRUD for all resources โ€” rate limited

Setup

Get personal API key: https://us.posthog.com/settings/user-api-keys Get project ID: https://us.posthog.com/settings/project#variables Set env vars: export POSTHOG_API_KEY="phx_..." export POSTHOG_PROJECT_ID="12345" export POSTHOG_PROJECT_API_KEY="phc_..." # optional, for capture/flags # For EU Cloud: # export POSTHOG_HOST="https://eu.posthog.com" # export POSTHOG_INGEST_HOST="https://eu.i.posthog.com" Verify: bash scripts/posthog.sh whoami

Helper Script

scripts/posthog.sh wraps common operations. Run bash scripts/posthog.sh help for full usage.

Examples

# Capture an event bash scripts/posthog.sh capture "signup" "user_123" '{"plan":"pro"}' # Evaluate feature flags bash scripts/posthog.sh evaluate-flags "user_123" # HogQL query โ€” top events last 7 days bash scripts/posthog.sh query "SELECT event, count() FROM events WHERE timestamp >= now() - INTERVAL 7 DAY GROUP BY event ORDER BY count() DESC LIMIT 20" # List persons bash scripts/posthog.sh list-persons 10 | jq '.results[] | {name, distinct_ids}' # List feature flags bash scripts/posthog.sh list-flags | jq '.results[] | {id, key, active}' # Create a feature flag echo '{"key":"new-dashboard","name":"New Dashboard","active":true,"filters":{"groups":[{"rollout_percentage":50}]}}' | \ bash scripts/posthog.sh create-flag # List dashboards bash scripts/posthog.sh list-dashboards | jq '.results[] | {id, name}'

Two API types

Public endpoints (/i/v0/e/, /batch/, /flags): Use project API key in body. No auth header. No rate limits. Private endpoints (/api/projects/:project_id/...): Use personal API key via Authorization: Bearer. Rate limited.

HogQL Queries

The query endpoint (POST /api/projects/:project_id/query/) is the most powerful way to extract data. Uses SQL-like HogQL syntax against tables: events, persons, sessions, groups, plus data warehouse tables. Always include time ranges and LIMIT. Use timestamp-based pagination for large exports.

Rate Limits (private endpoints)

TypeLimitAnalytics (insights, persons, recordings)240/min, 1200/hrQuery endpoint2400/hrFeature flag local evaluation600/minOther CRUD480/min, 4800/hr Limits apply per organization. On 429: back off and retry.

Domains

CloudPublicPrivateUSus.i.posthog.comus.posthog.comEUeu.i.posthog.comeu.posthog.com

Events API (deprecated)

The /api/projects/:project_id/events/ endpoint is deprecated. Use HogQL queries or batch exports instead.

Direct curl

# Private endpoint curl -H "Authorization: Bearer $POSTHOG_API_KEY" \ "$POSTHOG_HOST/api/projects/$POSTHOG_PROJECT_ID/feature_flags/" # HogQL query curl -H "Authorization: Bearer $POSTHOG_API_KEY" \ -H "Content-Type: application/json" \ -X POST -d '{"query":{"kind":"HogQLQuery","query":"SELECT count() FROM events WHERE timestamp >= now() - INTERVAL 1 DAY"}}' \ "$POSTHOG_HOST/api/projects/$POSTHOG_PROJECT_ID/query/" # Capture event (public) curl -H "Content-Type: application/json" \ -X POST -d '{"api_key":"'$POSTHOG_PROJECT_API_KEY'","event":"test","distinct_id":"u1"}' \ "$POSTHOG_INGEST_HOST/i/v0/e/"

Full API Reference

See references/api-endpoints.md for complete endpoint listing with parameters, body schemas, scopes, and response formats. Sections: Public Endpoints (Capture, Batch, Flags), Private Endpoints (Persons, Feature Flags, Insights, Dashboards, Annotations, Cohorts, Experiments, Surveys, Actions, Session Recordings, Users, Definitions), Query API (HogQL).

Category context

Code helpers, APIs, CLIs, browser automation, testing, and developer operations.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
2 Docs1 Scripts
  • SKILL.md Primary doc
  • references/api-endpoints.md Docs
  • scripts/posthog.sh Scripts