AGENT SKILL

posthog-core-workflow-b

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".

License 许可
MIT
最近更新
2026-05-26
Stars
★ 0
Forks
0

01 前言 Front Matter

name
posthog-core-workflow-b
author
Jeremy Longshore <jeremy@intentsolutions.io>
license
MIT
version
1.0.0
description
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".
allowed-tools
Read, Write, Edit, Bash(npm:*), Grep
compatible-with
claude-code, codex, openclaw

03 SKILL.md 正文

PostHog Core Workflow B

Overview

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.

Prerequisites

  • Completed posthog-install-auth setup
  • Familiarity with posthog-core-workflow-a
  • Valid API credentials configured

Instructions

Step 1: Setup

Define 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

Step 2: Process

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

Step 3: Complete

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

Output

  • Completed Core Workflow B execution
  • Feature flag evaluation results or A/B experiment significance report
  • Cohort export or experiment conclusion with recommended action
  • Success confirmation or error details

Error Handling

Aspect Workflow A Workflow B
Use Case Primary Secondary
Complexity Medium Lower
Performance Standard Optimized

Examples

Complete Workflow

// Complete workflow example

Error Recovery

// Error handling code

Resources

Next Steps

For common errors, see posthog-common-errors.

04 同仓库更多 Skills

SamuelChien
SamuelChien/mega-skills-collection

zustand-store-ts

Create Zustand stores with TypeScript, subscribeWithSelector middleware, and proper state/action separation. Use when building React state management, creating global stores, or implementing reactive state patterns with Zustand.

★ 0
SamuelChien
SamuelChien/mega-skills-collection

zustand-store-creator

Zustand Store Creator - Auto-activating skill for Frontend Development. Triggers on: zustand store creator, zustand store creator Part of the Frontend Development skill category.

★ 0
SamuelChien
SamuelChien/mega-skills-collection

zero-trust-config-helper

Zero Trust Config Helper - Auto-activating skill for Security Advanced. Triggers on: zero trust config helper, zero trust config helper Part of the Security Advanced skill category.

★ 0
SamuelChien
SamuelChien/mega-skills-collection

zapier-integration-helper

Zapier Integration Helper - Auto-activating skill for Business Automation. Triggers on: zapier integration helper, zapier integration helper Part of the Business Automation skill category.

★ 0
SamuelChien
SamuelChien/mega-skills-collection

zai-cli

Execute z.AI CLI providing vision, search, reader, and GitHub exploration via CLI and MCP. Use when user needs image/video analysis, OCR, UI-to-code conversion, error diagnosis, real-time web search, web page to markdown extraction, or GitHub code exploration. Trigger with phrases like "analyze this image", "search the web for", "read this page", "explore this repo", or "use zai". Requires Z_AI_API_KEY.

★ 0
SamuelChien
SamuelChien/mega-skills-collection

yt-research

Research competitor YouTube channels, niches, and trending topics for your content strategy. Use this skill whenever the user says "research channels", "analyze competitors", "find trending topics", "niche analysis", "competitive research", "what are other creators doing", "scrape YouTube channels", or wants to understand the competitive landscape for a specific tool or topic area. Use when working with yt research. Trigger with 'yt', 'research'.

★ 0