Identify stale feature flags in a PostHog project and clean up the code that checks them. Use when the user wants to find, audit, or remove unused, fully rolled out, or abandoned feature flags, run a feature flag hygiene review or a weekly cleanup, reduce feature flag tech debt, or asks "which flags can I remove?".
Install
npx skills add PostHog/ai-plugin --skill cleaning-up-stale-feature-flagsnpx skills add PostHog/ai-plugin --skill cleaning-up-stale-feature-flags -a claude-code -gnpx skills add PostHog/ai-plugin --skill cleaning-up-stale-feature-flags -a codex -ggemini skills install https://github.com/PostHog/ai-plugin.git --path skills/cleaning-up-stale-feature-flagsgh skill install PostHog/ai-plugin cleaning-up-stale-feature-flagsgit clone --depth 1 https://github.com/PostHog/ai-plugin /tmp/PostHog__ai-plugin
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/PostHog__ai-plugin/skills/cleaning-up-stale-feature-flags ~/.claude/skills/cleaning-up-stale-feature-flags # Claude Code
cp -R /tmp/PostHog__ai-plugin/skills/cleaning-up-stale-feature-flags ~/.agents/skills/cleaning-up-stale-feature-flags # Codex, Cursor, Gemini CLI, Copilot, OpenCode