cleaning-up-stale-feature-flags - Safely clean up stale PostHog feature flags
Identify stale PostHog feature flags, verify dependencies and repository usage, and remove their code checks without changing the flags in PostHog.
Tags
Updated: 2026-11-25Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Identify stale feature flags
- Assess rollout and dependencies
- Inspect repository call sites
- Remove obsolete flag checks
- Run local tests
- Generate cleanup handoff prompts
- Open authorized draft PRs
Inputs
- PostHog project
- Feature flag keys
- Audit scope
- Repository access
- Repository write access
- Publishing authorization
- Product tour usage confirmation
- Other deployed consumer information
Outputs
- Stale flag assessment
- Repository-specific cleanup plan
- Cleanup handoff prompt
- Tested local code changes
- Draft pull requests
Requirements
- PostHog feature-flag read tools
- Repository read access for inspection
- Repository write access for edits
- Local test environment
- User authorization for publishing
