tools-and-features-hogql
OfficialWrite HogQL queries for PostHog analytics.
AuthorPostHog
Version1.0.0
Installs0
System Documentation
What problem does it solve?
HogQL enables users to query PostHog data; this skill helps you craft HogQL queries to analyze events, properties, cohorts, and sessions within PostHog analytics.
Core Features & Use Cases
- Property access guidelines: Use properties.$name for event properties and person.properties.$name for person properties.
- Common query patterns: event queries, property breakdowns, person property breakdowns, and cohort filtering.
- Framework guidelines: Includes placeholders like {filters}, time-based groupings with dateTrunc/dateDiff, and testing patterns for dashboards.
- Use references for advanced functions, aggregations, and date/time helpers as documented in the references.
Quick Start
Write a HogQL query to count pageviews by properties.$current_url for the last 7 days using the {filters} placeholder.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: tools-and-features-hogql Download link: https://github.com/PostHog/skills/archive/main.zip#tools-and-features-hogql Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.