auditing-experiments-flags

द्वारा posthog

PostHog प्रयोगों और फीचर फ्लैग्स का ऑडिट करें, कॉन्फ़िगरेशन समस्याओं, पुरानेपन और सर्वोत्तम-अभ्यास उल्लंघनों के लिए। तब पढ़ें जब उपयोगकर्ता ऑडिट, स्वास्थ्य-जांच, ... के लिए पूछे।

npx skills add https://github.com/posthog/ai-plugin --skill auditing-experiments-flags

Auditing experiments and feature flags

This skill teaches you how to run configuration audits on experiments and feature flags. All 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.

Usage modes

Quick check (single entity)

When the user asks about a specific experiment or flag:

  1. Fetch the entity via experiment-get (experiment ID) or feature-flag-get-definition (numeric flag ID).
  2. Apply the relevant checks from experiment checks or flag checks.
  3. Report findings inline as markdown, grouped by severity (CRITICAL first, then WARNING, then INFO).
  4. Include entity links as [Experiment: name](/experiments/id) or [Flag: key](/feature_flags/id).

Scoped audit (one domain)

When the user asks to audit all experiments or all flags:

  1. Bulk-fetch via experiment-list or feature-flag-get-all.
  2. Run all checks for that domain against each entity.
  3. Group findings by severity, then by entity.
  4. Report as inline markdown.

Full audit (comprehensive)

When the user asks for a comprehensive audit of both experiments and flags:

  1. Fetch all experiments via experiment-list and all flags via feature-flag-get-all.
  2. Run all experiment checks and all flag checks.
  3. Apply recurring patterns to identify patterns across multiple findings.
  4. If there are more than 5 entities with findings, output as a notebook artifact via notebooks-create for easier navigation. Otherwise report inline.

Output format

For each finding, include:

  • Severity badge: 🔴 CRITICAL, 🟡 WARNING, or 🔵 INFO
  • Check name: Which check produced this finding
  • Entity link: Markdown link to the entity
  • What's wrong: One-sentence description
  • Action: What to do about it (see remediation actions)

Example:

🟡 WARNING — Flag integration · Experiment: checkout-redesign The linked feature flag is inactive (paused). Traffic is not being split. Action: Re-enable the flag or end the experiment.

Handling unavailable data

Some checks require activity logs (feature-flags-activity-retrieve for flags), which may not be available in every session. If activity log data is unavailable:

  • Skip checkActivityHistory (experiment check) entirely.
  • Skip the "toggle instability" and "never activated" sub-checks in flag lifecycle checks.
  • In your report, note which checks were skipped and why:

    Skipped: Activity history checks (activity logs not available via current tools)

Partial failures

If a fetch call fails for some entities:

  • Continue with the entities you could fetch.
  • Report which entities could not be assessed and why.
  • Do not silently omit entities from the audit.

Reference files

posthog की और Skills

error-tracking-go
posthog
PostHog द्वारा Go के लिए त्रुटि ट्रैकिंग
official
integration-laravel
posthog
PostHog का Laravel अनुप्रयोगों के लिए एकीकरण
official
integration-nextjs-app-router
posthog
PostHog का Next.js App Router अनुप्रयोगों के लिए एकीकरण
official
logs-other
posthog
PostHog लॉग्स अन्य भाषाओं के लिए
official
logs-python
posthog
PostHog लॉग्स फॉर पायथन
official
analyzing-experiment-session-replays
posthog
प्रयोग वेरिएंट में सत्र रीप्ले पैटर्न का विश्लेषण करें ताकि उपयोगकर्ता व्यवहार में अंतर को समझा जा सके। इसका उपयोग तब करें जब उपयोगकर्ता यह देखना चाहे कि उपयोगकर्ता कैसे इंटरैक्ट करते हैं...
official
auditing-warehouse-data-health
posthog
यह कौशल डेटा वेयरहाउस पाइपलाइन का एक प्रोजेक्ट-व्यापी ऑडिट तैयार करता है। इसका उपयोग तब करें जब उपयोगकर्ता सब कुछ खराब होने का सारांश चाहता है, न कि किसी एक सिंक की गहन जांच। व्यक्तिगत विफलताओं की गहन जांच diagnosing-failed-warehouse-syncs है; यह कौशल वह स्कैन है जो उन्हें बताता है कि पहले कहाँ देखना है।
official
cleaning-up-stale-feature-flags
posthog
PostHog प्रोजेक्ट में पुराने फीचर फ्लैग्स को पहचानें और साफ करें। जब उपयोगकर्ता अप्रयुक्त, पूरी तरह से रोल आउट या छोड़े गए फीचर फ्लैग्स ढूंढना चाहता है, तब उपयोग करें, समीक्षा…
official