posthog

Query PostHog analytics data and manage feature flags via REST API.

6.8k|508|Updated Apr 26, 2025
One-click install
npx skills add https://github.com/stagewise-io/stagewise --skill posthog-stagewise-io
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: posthog
Source: https://github.com/stagewise-io/stagewise/tree/main/apps/browser/bundled/plugins/posthog
Command: npx skills add https://github.com/stagewise-io/stagewise --skill posthog-stagewise-io

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill empowers you to directly query your PostHog analytics data, manage feature flags, and gain deep insights into user behavior without leaving your current workflow.

Core Features & Use Cases

  • HogQL Queries: Run powerful SQL-like queries against your analytics database for custom data analysis.
  • Event & Person Inspection: Easily look up and analyze individual user events and profiles.
  • Feature Flag Management: Create, update, and manage feature flags to control user experiences.
  • Insight Retrieval: Access and analyze saved PostHog insights like trends, funnels, and retention reports.
  • Use Case: Analyze the conversion rate of a new feature by running a funnel query in PostHog, or check if a specific user experienced a bug by inspecting their event stream.

Quick Start

Use the posthog skill to find the top 10 events in the last 7 days for project ID 12345.

Frequently Asked Questions about posthog

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

FAQPage Schema
How do I query PostHog analytics data using HogQL?

You can run HogQL queries against your PostHog analytics database by providing your PostHog Personal API Key, project ID, and region to execute SQL-like custom data analysis.

Can I manage feature flags in PostHog without leaving my workflow?

Yes, you can perform feature flag CRUD operations to create, update, and manage PostHog feature flags directly to control user experiences within your current environment.

What do I need to inspect user events and profiles in PostHog?

To inspect PostHog user events and profiles, you need a PostHog Personal API Key along with your specific PostHog project ID and region to authenticate lookups.

How do I retrieve saved insights like funnels and trends from PostHog?

You can retrieve saved PostHog insights, including trends, funnels, and retention reports, by authenticating with your Personal API Key and querying the specific project ID.

What's the best way to analyze a specific user's event stream for bugs in PostHog?

The best way to analyze a user's event stream for bugs is to use PostHog event inspection to look up and analyze individual user events and profiles directly.

Does querying PostHog analytics require knowing my project ID and region?

Yes, accessing PostHog analytics data requires your PostHog Personal API Key, project ID, and region to correctly route and authenticate your API requests.