What problem does it solve?
PostHog's system.feature_flags table exposes a deleted boolean but no deletion timestamp, so there is no single SQL query that answers "which flags were deleted recently and by whom." This Skill works around that gap by combining a SQL enumeration of soft-deleted flags with parallel per-flag activity-log lookups to recover the actual deletion time and the user who deleted each flag.
Core Features & Use Cases
- Two-stage deletion audit: Enumerates soft-deleted flag candidates via SQL, then fans out parallel activity-log lookups to extract the real deletion event, timestamp, and deleter.
- Original key recovery: Strips the ":deleted:<id>" tombstone suffix from renamed flags using a deterministic script, so reports show the flag's original key.
- Windowed reporting: Filters deletion events to a user-specified window (e.g. last 7 or 30 days), flags borderline cases near the cutoff, and states methodology coverage in the final table.
- Use Case: A user asks "what flags got deleted last week?" The Skill queries soft-deleted flags, checks the activity logs of the top candidates in parallel, and returns a table of flag ID, original key, deletion time (UTC), and deleter.
Quick Start
Ask the assistant to list all feature flags deleted in the last 7 days in the active PostHog project, including who deleted each one.