cleaning-up-stale-feature-flags - Clean up stale feature flag checks
Identifies stale PostHog feature flags, checks dependencies and repository usage, and removes flag checks without changing the flag in PostHog.
Tags
Updated: 2026-11-26Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Identify stale feature flags
- Assess flag dependencies
- Inspect repository call sites
- Remove stale flag checks
- Run local tests
- Generate cleanup handoff prompts
- Open authorized draft PRs
Inputs
- PostHog project
- Feature flag key or candidate list
- Repository
- Assessment scope
- Product tour usage status
- PR publishing authorization
Outputs
- Stale flag assessment
- Repository-specific cleanup plan
- Tested code changes
- Tailored cleanup handoff prompt
- Draft PR per flag
Requirements
- PostHog read access
- Repository read access for inspection
- Repository write access for code cleanup
- Explicit authorization for publishing
