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, run a feature flag hygiene review or a weekly cleanup, reduce feature flag tech debt, or asks "which flags can I remove?". 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.
Pinned to revision 4e8964e24a5a, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/cleaning-up-stale-feature-flags/SKILL.md
- skills/cleaning-up-stale-feature-flags/references/example-interaction.md
- skills/cleaning-up-stale-feature-flags/references/handoff-prompt.md
Every link opens the file at its source, pinned to the revision this page describes.