LightState Registry / Portable Agent Skill (SKILL.md)s / Marketing & SEO / skill-posthog-feature-flags-and-experiments
⚡ Pulse Score 84/100
PostHog Feature Flags, Funnels & A/B Experiment Playbook
Implement type-safe PostHog feature flags, server-side evaluation, and statistically valid funnel experiments.
⚡ 1-Click Agent & Developer Install
Zero Auth · Ready for Grok Bot, Claude Code & Cursornpx lightstate install skill-posthog-feature-flags-and-experiments
Copy-Paste System Prompt / Routine Blueprint:
Load the PostHog Feature Flags, Funnels & A/B Experiment Playbook (skill-posthog-feature-flags-and-experiments) playbook. First inspect our current configuration and codebase for PostHog, Product Analytics, A/B Testing. Then propose a concrete, step-by-step implementation plan following the skill-posthog-feature-flags-and-experiments guardrails, run the non-destructive verification commands (npm test), and summarize any findings, risks, or required environment variables before making production changes.
📘 Complete SKILL.md Playbook Specification
--- name: posthog-feature-flags-and-experiments description: Implement type-safe PostHog feature flags, server-side evaluation, and statistically valid funnel experiments. Use when working with PostHog, Product Analytics, A/B Testing. triggers: - posthog feature flags and experiments - posthog - product analytics --- # PostHog Feature Flags, Funnels & A/B Experiment Playbook ## 1. When to Use This Skill Load `skill-posthog-feature-flags-and-experiments` whenever an engineering, architecture, or operations task involves **PostHog, Product Analytics, A/B Testing**. Specifically: - Implement type-safe PostHog feature flags, server-side evaluation, and statistically valid funnel experiments. - Designing, reviewing, refactoring, or debugging production configurations without guesswork or deprecated flags. - Running deterministic pre-flight validation and post-execution verification checks before reporting completion. ## 2. Prerequisites & Required Environment - **Target Stack:** PostHog, Product Analytics, A/B Testing - **Permissions Boundary:** Read-only inspection by default; ask for explicit human confirmation before executing destructive mutations or production deployments. - **Reference Specification:** `https://github.com/PostHog/posthog` ## 3. Step-by-Step Execution Playbook 1. **Context & Configuration Discovery:** Inspect existing project manifests (`package.json`, `tsconfig.json`, `pyproject.toml`, `Cargo.toml`, `wrangler.jsonc`, or schema declarations) before proposing changes. Never overwrite existing bindings or credentials blindly. 2. **Deterministic Implementation:** Apply the canonical production patterns for **PostHog**: - Enforce strict schema and type validation at every external boundary. - Include explicit error handling, structured telemetry, and idempotency keys on all mutating calls. - Keep secrets in environment variables or managed secret stores—never hardcode tokens in source files. 3. **Verification & Regression Gate:** Run the verification commands below and inspect both exit codes and output payloads before marking the task complete. ## 4. Reference Commands & CLI Workflow ```bash npm test npx tsc --noEmit ``` ## 5. Edge Cases & Anti-Hallucination Guardrails - **Zero Unverified Claims:** Never claim a build, migration, test run, or API call succeeded without inspecting the command output or HTTP status code. - **Rollback Readiness:** Always record the previous state or migration version so changes can be reverted cleanly if downstream health checks fail.
Synthesized Engineering Blueprint & Setup Guide
### Overview & Capability Scope
**PostHog Feature Flags, Funnels & A/B Experiment Playbook** (`skill-posthog-feature-flags-and-experiments`) is a verified, portable `SKILL.md` playbook curated with **@adwhispr** for Grok Bot (`x.ai/bot/`), Claude Code (`~/.claude/skills/`), and Cursor (`.cursor/skills/`).
Implement type-safe PostHog feature flags, server-side evaluation, and statistically valid funnel experiments.
### Required Stack & Tooling
- **Primary Stack:** PostHog, Product Analytics, A/B Testing
- **Category:** `marketing-seo`
- **Source & Reference:** [https://github.com/PostHog/posthog](https://github.com/PostHog/posthog)
### Quickstart Installation
Install this `SKILL.md` playbook directly into your agent workspace:
```bash
npx lightstate install skill-posthog-feature-flags-and-experiments
```
Or copy the complete `SKILL.md` specification below into `.cursor/skills/skill-posthog-feature-flags-and-experiments/SKILL.md` or `~/.claude/skills/skill-posthog-feature-flags-and-experiments/SKILL.md`.
### Verification Commands
```bash
npm test
npx tsc --noEmit
```
Tags: #posthog#product-analytics#a/b-testing#skill-md#marketing-seo
✓ CERTIFIED X BUILDER PORTFOLIO
More Capabilities Curated from @adwhispr
Related Verified Capabilities
Explore Marketing & SEO → MCP Server ★ Featured Partner ✓ Claimed
⚡ 95
Grok Template ✓ Claimed
⚡ 96
X Post Tracker — Read-Only Engagement & Impression Telemetry Bot
Grok Template ✓ Claimed
⚡ 92
LinkedIn Draft Studio — Shipping Logs to High-Signal B2B Posts
Use Case
⚡ 95