Cleaning Up Stale Feature Flags

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. When the agent can read and edit a repository it performs the code cleanup itself: tested local changes, and one draft PR per flag when the user authorizes publishing. Agents without repository access generate a tailored cleanup prompt instead. Covers staleness detection, dependency checking, retained-path rules, and the code-first ordering. This skill does not archive or otherwise change a flag in PostHog.

posthog b979b00 23.1 KB Updated

File contents

posthog/posthog-foss/tree/main/products/feature_flags/skills/cleaning-up-stale-feature-flags commit b979b00950

Frequently asked questions

npx skillmds@latest add posthog/cleaning-up-stale-feature-flags