CtrlK
BlogDocsLog inGet started
Tessl Logo

cleaning-up-stale-feature-flags

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. 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.

76

Quality

94%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

—

The risk profile of this skill

SKILL.md
Quality
Evals
Security

Quality

Content

88%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

The content is highly actionable and workflow is clearly sequenced with validation checkpoints appropriate to a destructive code-change task. It is well-structured and self-contained, though slightly verbose in the example and closing-notes sections.

Suggestions

Tighten or trim the 'Example interaction' section, which restates steps already specified in the Workflow, to reduce token cost without losing clarity.

Consider extracting the per-rollout handoff templates and/or the 'Related tools' reference into separate reference files so SKILL.md reads as a leaner overview.

The 'Important notes' recap several rules already stated in the workflow; consolidate to avoid duplicate guidance.

DimensionReasoningScore

Conciseness

The body is dense with operational detail and avoids explaining concepts Claude already knows, but the worked example interaction and the closing 'Important notes' section partially recap guidance already stated earlier, which could be trimmed.

4 / 5

Actionability

Provides exact MCP tool names and parameters, concrete field-based decision criteria, per-rollout retained-path rules, a literal regex allowlist, and a concrete PR title format, leaving no ambiguity about how to execute.

5 / 5

Workflow Clarity

A numbered seven-step workflow with explicit validation in step 6 (diff review, focused tests, type checks, linting, confirming no runtime references remain) and feedback loops like re-reading the flag before editing; the destructive/batch context is well-guarded.

5 / 5

Progressive Disclosure

No bundle files exist and the document is self-contained with clear section headers and no nested references, but at ~380 lines the handoff templates and tool reference could plausibly be split into separate files to improve navigability.

4 / 5

Total

18

/

20

Passed

Description

100%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

The description is specific, trigger-rich, and complete, with an explicit 'Use when...' clause and a clear negative boundary. Voice is third person throughout, matching the rubric's style requirement.

DimensionReasoningScore

Specificity

Lists multiple concrete actions including identifying stale flags, cleaning up code, opening one draft PR per flag, and generating a tailored handoff prompt, plus sub-capabilities like 'staleness detection, dependency checking, retained-path rules, and the code-first ordering'.

5 / 5

Completeness

Clearly answers both what (identify stale flags, clean up code, draft PRs, generate handoff prompt) and when (explicit 'Use when...' clause), and adds a boundary statement that the skill 'does not archive or otherwise change a flag in PostHog'.

5 / 5

Trigger Term Quality

'Use when the user wants to find, audit, or remove unused, fully rolled out, or abandoned feature flags' covers natural synonyms and phrasings a user would actually say, including 'stale', 'unused', 'fully rolled out', and 'abandoned'.

5 / 5

Distinctiveness Conflict Risk

Targets a clear niche (PostHog stale feature flag cleanup with code-first ordering) that is unlikely to trigger for unrelated skills; the boundary statement further distinguishes it from general flag-management or coding skills.

5 / 5

Total

20

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository
PostHog/posthog
Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.