Agent skill · data analytics · SylphAI-Inc
posthog-analytics
Automate PostHog dashboard creation, sync, update, and export via API
Why this skill is useful
Adds executable scripts for automating PostHog dashboard management that are not available in public documentation.
What it needs
Requires bash, curl, jq installed locally. Requires posthog account access. About 2k tokens when loaded. Last updated 2026-08-06. 101 stars on the source repository.
What this skill does
PostHog Analytics Skill Automate PostHog dashboard creation, sync, update, and export via API. Prerequisites Required Tools curl - HTTP client (pre-installed on macOS/Linux) jq - JSON processor: brew install jq or apt install jq bash - Shell (the script is bash) PostHog API Key 1. Go to PostHog Settings → Personal API Keys 2. Create a new key with read/write access 3. Export it: Note: The API key determines your organization and project. The script uses @current project context (your default project). Verify Setup Expected output: If you get an error, check your API key is correct and has proper permissions. Quick Start: Blog Analytics Example Step 1: Write Your Config Create blogdashboard.json: Note: Set dashboardid: null for new dashboards. Step 2: Create Dashboard Output: The script: Creates a new dashboard in your PostHog project Returns dashboardid (e.g., 1166599) and projectid (e.g., 209268) in the URL Automatically updates your config file with the dashboardid Step 3: Add New Insights (Sync) Edit config to add new insights, then: Only creates NEW insights. Existing ones (matched by name) are skipped. Step 4: Update Existing Insights Changed your filter? Edit config, then: Updates ALL insights with current config settings. Use when changing filters. Step 5: Export Existing Dashboard Config Reference Field Required Description ------- ---------- ------------- name Yes Dashboard name description No Dashboard description filter No Event property filter: {"key": "source", "value": "blog"} domainfilter No URL filter fallback: "blog.sylph.ai" dashboardid No Set to null for create, or existing ID for sync/update insights Yes Array of insight objects At least one filter recommended. filter takes precedence over domainfilter. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills SylphAI-Inc/posthog-analytics