instrument-feature-flags

Instrument PostHog feature flags across web, mobile, and backend platforms.

58|5|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/PostHog/skills --skill instrument-feature-flags
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: instrument-feature-flags
Source: https://github.com/PostHog/skills/tree/main/skills/omnibus/instrument-feature-flags
Command: npx skills add https://github.com/PostHog/skills --skill instrument-feature-flags

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Add PostHog feature flags to gate new functionality. Use after implementing features or reviewing PRs to ensure safe rollouts with feature flag controls. Also handles initial PostHog SDK setup if not yet installed.

Core Features & Use Cases

  • Gate new or changed functionality behind feature flags across multiple platforms to enable safe rollouts, experiments, and controlled releases.
  • Support server-side and client-side evaluation across React, Next.js, Node.js, Python, Java, Ruby, Go, and more, with platform-aware guidance.
  • Real-world scenario: coordinate gradual rollouts by enabling a flag for a subset of users and validating impact before full release.

Quick Start

Set up feature-flag gating across your app using PostHog and gate new functionality behind flags.

Frequently Asked Questions about instrument-feature-flags

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up PostHog feature flags across multiple platforms?

Setting up PostHog feature flags across platforms requires platform detection, SDK installation, flag creation, and environment configuration. This skill guides you through multi-language stack instrumentation for Web, Mobile, and backend environments to ensure robust gating.

Can I gate new functionality with PostHog for gradual rollouts?

Yes, you can gate new functionality with PostHog feature flags to enable safe rollouts and controlled releases. This allows you to enable a flag for a subset of users, validate impact, and coordinate gradual rollouts before a full release.

Does PostHog feature flag instrumentation support both client-side and server-side evaluation?

Yes, PostHog feature flag instrumentation supports both server-side and client-side evaluation. It provides platform-aware guidance across frameworks like React, Next.js, Node.js, Python, Java, Ruby, and Go for comprehensive gating control.

What is the best way to control feature rollouts using PostHog SDKs?

The best way to control feature rollouts using PostHog SDKs is to gate new or changed functionality behind flags. This workflow handles initial SDK setup and enforces frontmatter correctness to ensure safe experiments and documented releases across your app.

When do I need to instrument feature flags in my application?

You need to instrument feature flags when implementing new features or reviewing PRs to ensure safe rollouts. This gating mechanism allows you to control releases, run experiments, and validate functionality for a subset of users before full deployment.

Why are resources folders and frontmatter important for feature flag setup?

Resources folders and frontmatter are important for feature flag setup because they ensure a robust, documented workflow. Correct frontmatter enforces configuration validity, while optional resources folders provide necessary references and scripts for SDK setup and environment configuration.