You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The main workflow above focuses on analyzing session recordings to identify UX issues and create GitHub issues automatically.
277
+
278
+
### Feature Flag Audit and Cleanup
279
+
280
+
<Cardtitle="🏁 Feature Flag Management"icon="flag">
281
+
Automatically audit your feature flags to identify unused, outdated, or problematic flags that need attention.
282
+
</Card>
283
+
284
+
**What this workflow does:**
285
+
- Fetches all feature flags from your PostHog project
286
+
- Analyzes flag usage, rollout status, and configuration
287
+
- Identifies flags that may be candidates for removal or updates
288
+
- Creates GitHub issues for flag cleanup tasks
289
+
290
+
**Example Continue CLI prompts:**
291
+
292
+
```bash
293
+
# Get all feature flags and analyze them
294
+
cn "Use PostHog MCP to fetch all feature flags with mcp__posthog__feature-flag-get-all. Then analyze each flag to identify: 1) Flags that are 100% rolled out and could be removed, 2) Flags that haven't been updated in 90+ days, 3) Flags with complex targeting that might need simplification, 4) Experimental flags that should be cleaned up."
295
+
296
+
# Create cleanup issues for identified flags
297
+
cn "For each problematic feature flag identified, create a GitHub issue using gh CLI:
298
+
- Title: '🏁 Feature Flag Cleanup: [flag_name]'
299
+
- Include flag details: rollout percentage, last modified date, targeting rules
- Set priority based on risk level (high for 100% rollouts, medium for stale flags)
302
+
- Include specific recommendations for each flag"
303
+
304
+
# Audit flag performance impact
305
+
cn "Cross-reference feature flags with PostHog performance metrics to identify flags that may be impacting user experience or site performance. Create performance-focused GitHub issues for flags showing negative impact."
306
+
```
307
+
308
+
**Required PostHog MCP Tools:**
309
+
-`feature-flag-get-all` - Retrieve all feature flags
310
+
-`feature-flag-get-definition` - Get detailed flag configuration
311
+
-`query-run` - Run analytics queries to check flag usage
312
+
-`insights-get-all` - Get insights related to flag performance
313
+
314
+
**Sample Output:**
315
+
This workflow creates GitHub issues like:
316
+
- "🏁 Feature Flag Cleanup: dark-mode-toggle" (100% rollout, safe to remove)
317
+
- "🏁 Feature Flag Review: experimental-checkout" (unused for 120 days)
318
+
- "🏁 Feature Flag Simplify: complex-user-targeting" (overly complex rules)
319
+
320
+
### Advanced Prompts
270
321
271
322
Consider enhancing your workflow with these advanced Continue CLI prompts:
272
323
@@ -280,13 +331,12 @@ Consider enhancing your workflow with these advanced Continue CLI prompts:
280
331
"Cross-reference JavaScript console errors with user actions to identify the
281
332
root cause of UX issues"
282
333
</Card>
283
-
<Cardtitle="Feature Flag Analysis"icon="flag">
284
-
"Analyze how [PostHog feature flags](https://posthog.com/docs/feature-flags)
285
-
impact user behavior in session recordings"
334
+
<Cardtitle="Feature Flag Performance Impact"icon="flag">
335
+
"Use PostHog MCP to correlate feature flag rollouts with performance metrics and user behavior changes to identify flags causing issues"
286
336
</Card>
287
337
<Cardtitle="Custom Slack Alerts"icon="slack">
288
338
"Create Slack alerts when critical UX issues are detected in PostHog
0 commit comments