adding-feature-flags
Installation
SKILL.md
Add Feature Flags
Use this skill when the user asks to add feature flags, feature toggles, gradual rollouts, or A/B testing.
Option A: PostHog Feature Flags (Recommended)
-
Install PostHog if not already present:
npm install posthog-js -
Use feature flags in code:
import { useFeatureFlagEnabled } from "posthog-js/react";