posthog-analytics

Automate PostHog dashboard creation, syncing, updating, and exporting via API.

104|8|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/SylphAI-Inc/skills --skill posthog-analytics-sylphai-inc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: posthog-analytics
Source: https://github.com/SylphAI-Inc/skills/tree/main/skills/posthog-analytics
Command: npx skills add https://github.com/SylphAI-Inc/skills --skill posthog-analytics-sylphai-inc

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires curl, jq, bash, and includes scripts (resource) components.

What problem does it solve?

PostHog dashboard management often requires manual, repetitive steps to create, sync, update, and export dashboards and their insights. This skill provides a programmatic approach to manage the lifecycle of dashboards via API, reducing manual toil and ensuring consistency across projects.

Core Features & Use Cases

  • Create dashboards from a structured configuration, including multiple insights.
  • Synchronize and update existing dashboards by adding new insights or updating queries.
  • Export dashboard definitions to config for version control and collaboration, with URL mapping to UI.

Quick Start

Run the posthog_sync.sh script with a config file to create or update a dashboard and its insights.

Frequently Asked Questions about posthog-analytics

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate PostHog dashboard creation and updates via API?

To automate PostHog dashboard creation and updates via API, run the posthog_sync.sh script with a structured config file to programmatically create, sync, and update dashboards and their insights across projects.

Can I export PostHog dashboard definitions for version control?

You can export PostHog dashboard definitions to a config file for version control and collaboration. This process includes URL mapping to the UI, ensuring exported configurations remain accessible and traceable.

What do I need to manage PostHog dashboards programmatically using bash scripts?

To manage PostHog dashboards programmatically using bash scripts, you need curl and jq installed, a valid POSTHOG_PERSONAL_API_KEY, optional HOST settings, and a config file detailing dashboards and insights.

Does this approach support syncing dashboards across multiple PostHog projects?

This approach supports syncing dashboards across multiple PostHog projects by applying configurable filters and insights through the API, ensuring consistency and reducing manual toil for teams needing programmatic management.

What is the best way to add new insights to an existing PostHog dashboard without manual steps?

The best way to add new insights to an existing PostHog dashboard without manual steps is to synchronize and update the dashboard via API using a structured config file to define the new queries and insights.

Why should I use a config file for PostHog dashboard lifecycle management instead of the UI?

Using a config file for PostHog dashboard lifecycle management reduces manual, repetitive steps required in the UI, ensuring consistency across projects and enabling reliable, programmatic updates via API scripts.