Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

finding-deleted-feature-flags

Skill by PostHog

Finds feature flags soft-deleted in the active PostHog project within a chosen time window, with who deleted each one and when. Built for users auditing recent flag deletions.

  • Score 87
  • 41k stars
  • NOASSERTION
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install finding-deleted-feature-flags

Built from the published package, never by AI.

git clone --depth 1 https://github.com/PostHog/posthog /tmp/posthog && mkdir -p ~/.claude/skills && cp -r /tmp/posthog/products/feature_flags/skills/finding-deleted-feature-flags ~/.claude/skills/finding-deleted-feature-flags

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install finding-deleted-feature-flags in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill lists feature flags that were soft-deleted in the active PostHog project within a window the user specifies, such as the last 7 or 30 days. For each flag it reports the flag ID, the original key, the deletion time in UTC, and the user who deleted it. It is meant for people auditing recent flag deletions or looking up who deleted a specific flag.

The source notes that system.feature_flags does not expose a deletion timestamp, so the skill works in two stages. It first runs a SQL query for deleted flags, then calls the per-flag activity log in parallel to find each deletion event. A bundled Python script recovers original keys from renamed flags. The skill is separate from stale-flag cleanup, which covers active flags.

Written from the project's SKILL.md and checked against it.

What it can do

  • posthog:execute-sqlEnumerates soft-deleted flags from system.feature_flags in the active project.
  • posthog:feature-flags-activity-retrieveFinds the deletion event and the user who deleted each candidate flag.
  • posthog:feature-flag-get-definitionInspects what a deleted flag looked like, if the user asks for more detail.
  • strip_deleted_suffix.pyRecovers original flag keys from renamed soft-deleted flags.
  • Time window filteringKeeps only deletions inside the requested window, with cutoffs computed in UTC.

What you need

  • A PostHog project with feature flags
  • PostHog MCP tools for SQL and feature flag activity
  • Python 3 to run the bundled script

Try asking

  • What feature flags were deleted in the last 7 days?
  • Who deleted the feature flag example-banner?
  • Audit feature flag deletions from the last 30 days.

Good to know

  • The enumeration query returns at most 100 soft-deleted flags.
  • There is no bulk activity endpoint, so the skill makes one call per flag.
  • Ordering by creation date is a heuristic, so older flags deleted recently may be missed.
  • Not for cleaning up active stale flags.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: products/feature_flags/skills/finding-deleted-feature-flags/SKILL.md, products/feature_flags/skills/finding-deleted-feature-flags/scripts/strip_deleted_suffix.py. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md8 KB
  • scripts/strip_deleted_suffix.py2 KB

Alternatives to finding-deleted-feature-flags

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

finding-deleted-feature-flags: common questions

Why can't it filter deleted flags by deletion time in one query?

system.feature_flags exposes a deleted boolean but no deletion timestamp. The deletion time is only in the per-flag activity log.

How does it recover the original flag key?

Soft-deleted flags still referenced elsewhere are renamed to original:deleted:flagid. A Python script strips that suffix to get the original key.

Does it check every deleted flag?

Not by default. It samples the most recently created candidates, based on the window size, and offers to walk the rest as a follow-up.

How do I install finding-deleted-feature-flags?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is finding-deleted-feature-flags free?

The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.

Is finding-deleted-feature-flags safe to use?

It scores 87 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to finding-deleted-feature-flags?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

finding-deleted-feature-flags Install

Add to stack

Loading.