From posthog-pack
Execute PostHog secondary workflow: Core Workflow B. Use when implementing secondary use case, or complementing primary workflow. Trigger with phrases like "posthog secondary workflow", "secondary task with posthog".
How this skill is triggered — by the user, by Claude, or both
Slash command
/posthog-pack:posthog-core-workflow-bThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Secondary workflow for PostHog. Complements the event capture workflow by focusing on feature flag management, A/B experiment evaluation, and cohort analysis. Use this skill when you need to roll out a feature to a percentage of users, evaluate whether an A/B test reached statistical significance, or build a cohort of users who performed a specific sequence of actions for targeted communication.
Secondary workflow for PostHog. Complements the event capture workflow by focusing on feature flag management, A/B experiment evaluation, and cohort analysis. Use this skill when you need to roll out a feature to a percentage of users, evaluate whether an A/B test reached statistical significance, or build a cohort of users who performed a specific sequence of actions for targeted communication.
posthog-install-auth setupposthog-core-workflow-aDefine the feature flag or experiment configuration you want to work with. For feature flags, set the rollout percentage, target cohort filters, and any override rules for internal testing. For experiments, identify the control and variant conditions, select the primary metric to optimize, and calculate the minimum detectable effect size to determine how long the test needs to run before making a decision.
// Step 1 implementation
Use the PostHog API to evaluate feature flag states for users or retrieve experiment results. For flag evaluation, call the decide endpoint with the user's distinct ID and inspect which flags are active. For experiment analysis, query the funnel or trend data for each variant, calculate conversion rates, and apply significance testing to determine if the observed difference is statistically reliable.
// Step 2 implementation
Document the experiment outcome: record the winning variant, the lift observed on the primary metric, and the confidence level. If a winner is declared, update the feature flag to fully roll out the winning variant and archive the experiment. For cohort analysis, export the cohort member list for use in targeted email or in-app messaging campaigns.
// Step 3 implementation
| Aspect | Workflow A | Workflow B |
|---|---|---|
| Use Case | Primary | Secondary |
| Complexity | Medium | Lower |
| Performance | Standard | Optimized |
// Complete workflow example
// Error handling code
For common errors, see posthog-common-errors.
npx claudepluginhub nickloveinvesting/nick-love-plugins --plugin posthog-packImplements PostHog feature flags, A/B experiments, and cohorts using posthog-js (browser) and posthog-node (server) in TypeScript/JavaScript apps.
Configures PostHog experiment analytics: exposure criteria, metric types (count/sum/ratio/retention), multivariate user handling, and results interpretation.
Guides you through designing, creating, and running A/B experiments in LaunchDarkly—configuring metrics, treatments, flag rules, starting iterations, swapping treatments, and declaring a winner.