Audit PostHog experiments and feature flags for configuration issues, staleness, and best-practice violations. Read when the user asks to audit, health-check, or review experiments or feature flags, check flag hygiene, or verify experiment setup.
Add this skill
npx mdskills install PostHog/auditing-experiments-flags@PostHog? Sign in with GitHub to claim this listing.Well-structured audit framework with clear severity system and actionable remediation guidance
1---2name: auditing-experiments-flags3description: 'Audit PostHog experiments and feature flags for configuration issues, staleness, and best-practice violations. Read when the user asks to audit, health-check, or review experiments or feature flags, check flag hygiene, or verify experiment setup.'4---56# Auditing experiments and feature flags78This skill teaches you how to run configuration audits on experiments and feature flags.9All checks use the experiment and feature flag read tools (`experiment-get`, `experiment-list`, `feature-flag-get-definition`, `feature-flag-get-all`) — no SQL queries are needed for Phase 1 checks.1011## Usage modes1213### Quick check (single entity)1415When the user asks about a specific experiment or flag:16171. Fetch the entity via `experiment-get` (experiment ID) or `feature-flag-get-definition` (numeric flag ID).182. Apply the relevant checks from [experiment checks](./references/experiment-checks.md) or [flag checks](./references/flag-checks.md).193. Report findings inline as markdown, grouped by severity (CRITICAL first, then WARNING, then INFO).204. Include entity links as `[Experiment: name](/experiments/id)` or `[Flag: key](/feature_flags/id)`.2122### Scoped audit (one domain)2324When the user asks to audit all experiments or all flags:25261. Bulk-fetch via `experiment-list` or `feature-flag-get-all`.272. Run all checks for that domain against each entity.283. Group findings by severity, then by entity.294. Report as inline markdown.3031### Full audit (comprehensive)3233When the user asks for a comprehensive audit of both experiments and flags:34351. Fetch all experiments via `experiment-list` and all flags via `feature-flag-get-all`.362. Run all experiment checks and all flag checks.373. Apply [recurring patterns](./references/synthesis-patterns.md) to identify patterns across multiple findings.384. If there are more than 5 entities with findings, output as a notebook artifact via `notebooks-create` for easier navigation. Otherwise report inline.3940## Output format4142For each finding, include:4344- **Severity badge**: `🔴 CRITICAL`, `🟡 WARNING`, or `🔵 INFO`45- **Check name**: Which check produced this finding46- **Entity link**: Markdown link to the entity47- **What's wrong**: One-sentence description48- **Action**: What to do about it (see [remediation actions](./references/remediation-actions.md))4950Example:5152> 🟡 **WARNING** — Flag integration · [Experiment: checkout-redesign](/experiments/42)53> The linked feature flag is inactive (paused). Traffic is not being split.54> **Action**: Re-enable the flag or end the experiment.5556## Handling unavailable data5758Some checks require activity logs (`feature-flags-activity-retrieve` for flags), which may not be available in every session.59If activity log data is unavailable:6061- Skip `checkActivityHistory` (experiment check) entirely.62- Skip the "toggle instability" and "never activated" sub-checks in flag lifecycle checks.63- In your report, note which checks were skipped and why:64 > _Skipped: Activity history checks (activity logs not available via current tools)_6566## Partial failures6768If a fetch call fails for some entities:6970- Continue with the entities you could fetch.71- Report which entities could not be assessed and why.72- Do not silently omit entities from the audit.7374## Reference files7576- [Experiment checks](./references/experiment-checks.md) — experiment configuration checks77- [Flag checks](./references/flag-checks.md) — feature flag checks78- [Finding types](./references/finding-taxonomy.md) — severity and category definitions79- [Recurring patterns](./references/synthesis-patterns.md) — patterns across multiple findings80- [Remediation actions](./references/remediation-actions.md) — what to do about each finding81
Full transparency — inspect the skill content before installing.