Agent skill · marketing growth · jeremylongshore

posthog-multi-env-setup

Separate PostHog development, staging, and production data with explicit project tokens, regional hosts, secret scopes, and promotion checks. Use when one codebase deploys to multiple environments. Trigger with "PostHog environments", "PostHog staging", or "PostHog dev prod".

Why this skill is useful

Provides detailed environment-specific configuration patterns for PostHog that the AI wouldn't reliably generate on its own.

What it needs

Requires posthog account access. About 4k tokens when loaded. Last updated 2026-08-07. 2,604 stars on the source repository.

What this skill does

PostHog Multi-Environment Setup Overview Use separate PostHog projects for each environment (dev, staging, production). This prevents dev/test events from polluting production analytics, allows different feature flag rollout percentages per environment, and lets you disable session recordings in non-production. Prerequisites PostHog Cloud organization that supports the required project and feature-flag environment model Admin access to create multiple projects Deployment platform with environment variable support Environment Strategy Environment PostHog Project Session Recording Autocapture Feature Flags ------------- ---------------- ------------------- ------------- --------------- Development myapp-dev Disabled Enabled 100% rollout (test all) Staging myapp-staging Disabled Enabled 100% rollout (QA all) Production myapp-prod 10% sampled Tuned Gradual rollout Instructions Tool discipline Use Read to inspect the relevant configuration and implementation before proposing changes. Use Write only for a new, explicitly requested artifact inside the target project. Use Edit for minimal changes to existing project files after the evidence pass. Step 1: Create Separate PostHog Projects In PostHog Cloud (app.posthog.com), create three projects: 1. myapp-development — copy the phc... project API key 2. myapp-staging — copy the phc... project API key 3. myapp-production — copy the phc... …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills jeremylongshore/posthog-multi-env-setup

View the source on GitHub

Browse the @skills marketplace