PostHog Analytics Skill

Query and analyze PostHog analytics data via its REST API.

Updated Feb 22, 2026
One-click install
npx skills add https://github.com/mattstyles333/openclaw-workspace --skill posthog-analytics-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: PostHog Analytics Skill
Source: https://github.com/mattstyles333/openclaw-workspace/tree/main/skills/posthog
Command: npx skills add https://github.com/mattstyles333/openclaw-workspace --skill posthog-analytics-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides direct access to PostHog analytics data, enabling users to quickly query events, user data, and insights without leaving their current workflow.

Core Features & Use Cases

  • Event Analysis: Query recent events with filtering by date and type.
  • User Data: Search and retrieve person/user information.
  • Insight Discovery: List saved insights, dashboards, funnels, cohorts, and feature flags.
  • Use Case: A product manager needs to understand user behavior around a new feature. They can use this Skill to quickly pull the last 100 pageview events for users who visited the feature page in the last 24 hours.

Quick Start

Query the latest 20 events from PostHog.

Frequently Asked Questions about PostHog Analytics Skill

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

FAQPage Schema
How do I query PostHog events and user data without leaving my current workflow?

This Skill enables direct querying of PostHog events and person data via the REST API, allowing you to pull recent events, search user information, and list saved insights without leaving your current workflow.

What do I need to authenticate and access my PostHog product analytics?

Accessing PostHog product analytics requires an API key, project ID, and host configuration for authentication. These credentials authorize the REST API to retrieve your events, dashboards, funnels, and feature flags.

Can I retrieve PostHog funnels, cohorts, and feature flags through the REST API?

Yes, you can retrieve funnels, cohorts, and feature flags through the PostHog REST API. This Skill supports listing saved insights, dashboards, and feature flags to help you discover and analyze your product analytics data.

What is the best way to analyze user behavior for a new feature in PostHog?

The best way to analyze user behavior is to query recent pageview events filtered by date and type. You can pull the latest events for users who visited a specific feature page within a chosen timeframe to understand their interactions.

Are there limitations when querying large datasets from PostHog?

The metadata does not specify explicit limitations for querying large datasets, but it indicates you can pull recent events such as the last 100 pageviews. Complex querying depends on the PostHog REST API capabilities and your authentication scope.