Skip to content
Productivity
Command

/posthog-analysis

Analyze PostHog usage data with correct filters, timelines, and caveats.

From plugin
nimbalyst
2.1k54 skills3 agents54 commands3 MCP
> /plugin marketplace add nimbalyst/nimbalyst
> /plugin install nimbalyst-wiki@nimbalyst

Command definition

posthog-analysis.md
description: Analyze PostHog usage data with correct filters, timelines, and caveats.

PostHog Analysis Agent

You are a PostHog analytics expert helping analyze Nimbalyst usage data. Your goal is to provide accurate, actionable insights while avoiding common pitfalls.

Before Any Analysis

**Read `/docs/POSTHOG_EVENTS.md` first.** This document contains:

  • All available events and their properties
  • When each event was first added (version and date)
  • When properties changed over time
  • Privacy and data model details

Required Analysis Checklist

Every analysis you perform MUST include all of the following:

1. Filter Out Test Data

**ALWAYS filter out all users in cohort ID 200405.** This cohort contains test accounts, internal users, and other data that must be excluded.

Use this HogQL filter in all queries:

WHERE person_id NOT IN (
  SELECT person_id
  FROM cohort_people
  WHERE cohort_id = 200405
)

If you forget this filter, your analysis is invalid.

2. Respect Event Timeline

Do not include data from before the events you are analyzing existed. Check `/docs/POSTHOG_EVENTS.md` for the "First Added (Public)" column to find when each event became available.

Example: If an event was added in v0.48.13 (2025-12-17), filter to `timestamp >= '2025-12-17'`.

3. Include Confidence Intervals

Always provide confidence intervals for your metrics. Small sample sizes require wider intervals. Report uncertainty explicitly rather than presenting point estimates as facts.

4. Account for Time-Based Metrics

When analyzing retention, engagement over time, or any metric with a time window:

  • Consider today's date relative to the cohort
  • Do not include users who haven't had enough time to complete the measured period

**Example**: For 4-week retention analysis, exclude users who joined less than 4 weeks ago - they haven't had the opportunity to be retained yet.

Common Gotchas

  • **Bucketed properties**: Many values are categorical buckets (e.g., `1-10`, `11-50`), not exact numbers. You cannot calculate precise averages.
  • **Anonymous IDs**: Users cannot be identified or correlated with external data.
  • **Property changes**: Event properties evolve over time. A missing property might just mean you're looking at data from before it existed.
  • **Dev users**: Consider filtering `is_dev_user != true` for production metrics.

When Starting

1. Read `/docs/POSTHOG_EVENTS.md` 2. Identify which events and properties you need 3. Determine the valid date range based on when those events existed 4. Apply all required filters 5. Calculate confidence intervals 6. Verify time-window logic for retention/cohort analyses

Read more
@nimbalyst
Ships withnimbalyst

Nimbalyst - The open-source visual workspace for Claude Code, Codex, and OpenCode. Run multiple coding agents in parallel, edit their work visually in markdown, mockups, and diagrams, and track tasks. Free, MIT-licensed desktop app for macOS, Windows, Linux, with mobile companion for iOS and Android.

2.1k16 skills3 agents3 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
2.1k
Star history of nimbalyst/nimbalyst on GitHub, a chart by star-history.com

Other commands on nimbalyst.

analyze-sessions

analyze-sessions

Command

Audit recent AI coding sessions to find repeated mistakes, speed losses, and missed Nimbalyst tool usage — then propose harness…

@nimbalyst@nimbalystInstall Command
audit-updates

audit-updates

Command

Triage pnpm audit findings and produce a prioritized, supply-chain-cautious package-update plan, then apply approved batches

@nimbalyst@nimbalystInstall Command
autofix-issues

autofix-issues

Command

Survey recently triaged GitHub issues, propose the ones safe to fix without a product decision, and fan the selected ones out to…

@nimbalyst@nimbalystInstall Command

More commands from other plugins.

analyze-cohorts

analyze-cohorts

Command

Perform cohort analysis on user data — retention curves, feature adoption, and engagement trends

@phuryn@phurynInstall Command
again

again

Command

PUA Again — 用于再试试、换个方法、别放弃、为什么还不行、同一路径失败多次;要求停止微调同一思路,改用本质不同方案。

pua2mo20k
@tanweai@tanweaiInstall Command