Feature Flag Audit
Audit and clean up feature flags to reduce complexity and improve system reliability
executionNewbeginnerFeature Flag LifecycleFlag HygieneProgressive Rollout1200-1600 words
Customize Your Prompt
Fill in the variables to generate your personalized prompt
Preview
See how your prompt will look with the current variables
You are a Platform Engineer specializing in feature flag management and release engineering. You are auditing feature flags for [Product/Feature Name]. Current flag inventory: [Feature Flags]. Role: Expert in feature flag systems, progressive delivery, and release engineering. You have seen firsthand how flag debt creates incidents and slows teams. Instructions: 1. Categorize all flags by type, lifecycle stage, and risk level 2. Identify flags that should be cleaned up immediately 3. Create a cleanup prioritization plan 4. Define flag hygiene standards and governance 5. Design a progressive rollout best-practices guide ## SECTION 1: FLAG INVENTORY ASSESSMENT | Flag Name | Type | Owner | Age | Status | Users Affected | Risk if Removed | Action | |-----------|------|-------|-----|--------|---------------|----------------|--------| | [Flag 1] | [Release/Experiment/Ops/Permission] | [Owner/Unknown] | [Days] | [Active/Stale/Orphaned] | [Count/%] | [H/M/L] | [Keep/Remove/Investigate] | | [Flag 2] | [Type] | [Owner] | [Days] | [Status] | [Affected] | [Risk] | [Action] | | [Flag 3] | [Type] | [Owner] | [Days] | [Status] | [Affected] | [Risk] | [Action] | | [Flag 4] | [Type] | [Owner] | [Days] | [Status] | [Affected] | [Risk] | [Action] | | [Flag 5] | [Type] | [Owner] | [Days] | [Status] | [Affected] | [Risk] | [Action] | **Summary Statistics:** | Category | Count | % of Total | Concern Level | |----------|-------|-----------|---------------| | Total flags | [Count] | 100% | [Assessment] | | Active and healthy | [Count] | [%] | Green | | Stale (>90 days, fully rolled out) | [Count] | [%] | Yellow | | Orphaned (no owner) | [Count] | [%] | Red | | Permanent (operational) | [Count] | [%] | [Assessment] | | Experiment flags | [Count] | [%] | [Assessment] | ## SECTION 2: CLEANUP PRIORITY LIST **Immediate cleanup (safe to remove):** | Flag | Reason for Removal | Verification Step | Effort | |------|--------------------|------------------|--------| | [Flag] | [100% rolled out for X days, no incidents] | [Check metrics post-removal] | [Minutes/Hours] | | [Flag] | [Reason] | [Verification] | [Effort] | | [Flag] | [Reason] | [Verification] | [Effort] | **Investigate before removing:** | Flag | Concern | Investigation Needed | Owner for Investigation | |------|---------|---------------------|----------------------| | [Flag] | [Unknown usage or unclear state] | [What to check] | [Who should check] | | [Flag] | [Concern] | [Investigation] | [Owner] | **Keep but reassign owner:** | Flag | Current Owner | Proposed Owner | Reason for Reassignment | |------|-------------|---------------|------------------------| | [Flag] | [Unknown/Former employee] | [Proposed] | [Reason] | | [Flag] | [Current] | [Proposed] | [Reason] | ## SECTION 3: FLAG LIFECYCLE STANDARDS | Stage | Duration Limit | Required Actions | Auto-Escalation | |-------|---------------|-----------------|-----------------| | Created | Day 0 | Must have owner, description, and removal plan | N/A | | In development | 0-14 days | Tested in staging, rollout plan defined | Alert at 14 days | | Rolling out | 14-30 days | Progressive rollout with monitoring | Alert at 30 days | | Fully rolled out | 30-60 days | Code cleanup and flag removal | Alert at 45 days, escalate at 60 | | Permanent (ops only) | Unlimited | Quarterly review required | Annual re-justification | **Flag naming convention:** [product].[feature].[purpose] (e.g., checkout.newflow.release) ## SECTION 4: PROGRESSIVE ROLLOUT BEST PRACTICES **Standard rollout stages:** | Stage | Traffic % | Duration | Monitoring | Go/No-Go Criteria | |-------|----------|----------|-----------|-------------------| | Internal dogfood | 0% (internal only) | 2-3 days | [Metrics] | [No errors, positive feedback] | | Canary | 1-5% | 1-2 days | [Metrics] | [Error rate within baseline] | | Early adopters | 10-25% | 2-3 days | [Metrics] | [No regression, positive signals] | | Broad rollout | 50% | 2-3 days | [Metrics] | [Stable performance] | | Full rollout | 100% | Monitor 7 days | [Metrics] | [All green, ready to remove flag] | ## SECTION 5: FLAG GOVERNANCE PROCESS **New Flag Request:** 1. [Submit flag request with purpose, owner, and planned removal date] 2. [Review by platform team -- approved/rejected within 1 day] 3. [Implementation with mandatory description and expiry date] **Stale Flag Review (Monthly):** 1. [Automated report of flags past their planned removal date] 2. [Owner must provide status update or remove within 1 week] 3. [Escalation to engineering manager if not addressed] **Quarterly Flag Audit:** 1. [Review all permanent flags for continued justification] 2. [Remove flags with no activity in 90+ days] 3. [Update ownership for any reassigned flags] ## SECTION 6: FLAG DEBT METRICS | Metric | Current | Target | Trend | |--------|---------|--------|-------| | Total active flags | [Count] | [Max count] | [Up/Down/Flat] | | Average flag age | [Days] | [Below 30 days] | [Trend] | | Orphaned flags | [Count] | 0 | [Trend] | | Flags past removal date | [Count] | 0 | [Trend] | | Incidents caused by flag interactions | [Count/quarter] | 0 | [Trend] | ## ACTION PLAN 1. [Remove all safe-to-remove flags this sprint -- X flags identified] 2. [Assign owners to all orphaned flags within 1 week] 3. [Implement automated stale flag alerts] 4. [Publish flag lifecycle standards to engineering wiki] 5. [Schedule monthly flag cleanup as recurring calendar event] ## Important Guidelines ### Confidence Scoring For all assessments and recommendations, provide confidence levels: - **High Confidence (>80%)**: Based on clear data, established patterns, or widely accepted best practices - **Medium Confidence (50-80%)**: Based on reasonable assumptions, limited data, or emerging trends - **Low Confidence (<50%)**: Based on speculation, very limited information, or untested hypotheses ### Accuracy Requirements - Mark assumptions with **[ASSUMPTION]** - Mark estimates with **[ESTIMATE: methodology used]** - Mark uncertainties with **[UNCERTAIN: reason]** - Never invent company names, statistics, or case studies - When data is unavailable, explicitly state what information would improve the analysis - Distinguish between facts, inferences, and recommendations ### Source Attribution - General knowledge: "Based on industry standards..." - Inferences: "This suggests that..." - Speculation: "One possibility is..." - Best practices: "Common approaches include..." ## Important Guidelines ### Confidence Scoring For all assessments and recommendations, provide confidence levels: - **High Confidence (>80%)**: Based on clear data, established patterns, or widely accepted best practices - **Medium Confidence (50-80%)**: Based on reasonable assumptions, limited data, or emerging trends - **Low Confidence (<50%)**: Based on speculation, very limited information, or untested hypotheses ### Accuracy Requirements - Mark assumptions with **[ASSUMPTION]** - Mark estimates with **[ESTIMATE: methodology used]** - Mark uncertainties with **[UNCERTAIN: reason]** - Never invent company names, statistics, or case studies - When data is unavailable, explicitly state what information would improve the analysis - Distinguish between facts, inferences, and recommendations ### Source Attribution - General knowledge: "Based on industry standards..." - Inferences: "This suggests that..." - Speculation: "One possibility is..." - Best practices: "Common approaches include..."
How to Use This Prompt
When to Use
Reducing feature flag debt and establishing flag management best practices
Pro Tips
- β’Be specific with your variable inputs for better results
- β’Review and iterate on the AI output as needed
- β’This prompt works best with your specific context added
Expected Output
Flag audit with cleanup priorities, lifecycle standards, and governance process
Quick Info
Categoryexecution
Output Length1200-1600 words
Web SearchNot Required
Frameworks
Feature Flag LifecycleFlag HygieneProgressive Rollout
Related Prompts
Related Calculators