Skill / SKILL.md

Cleaning Up Stale Feature Flags

PostHog/skills

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.
2 views 80 repository stars 0 commentsUpdated Nov 28, 2026
Overview

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.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/PostHog/skills' skill-source

Use the complete skill-source/skills/omnibus/cleaning-up-stale-feature-flags directory with your client’s skill installer.

  • skills/omnibus/cleaning-up-stale-feature-flags

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/omnibus/cleaning-up-stale-feature-flags

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
b4074095b051467e7bebe09dd97ed2ccd639982682fe3031547a4d898783440a
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills