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.

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
**Cleanup candidates (verify references, environments, and fallback behavior before removal):**
| 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. [Investigate inactive flags and remove only after verifying their purpose and references]
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]

## Evidence and accuracy
- Use supplied facts and verified sources. Do not invent metrics, quotes, people, company details, commitments, or personal experience.
- Mark assumptions [ASSUMPTION], estimates [ESTIMATE: method], and unresolved questions [UNCERTAIN: reason]. Leave unavailable values unfilled rather than guessing.
- Explain confidence as high, medium, or low using the evidence available. These labels are judgments, not calibrated probabilities. Give numerical probabilities only when a stated method supports them.
- Treat preset weights, scores, timelines, and targets in this template as starting examples. Adapt them to the task and explain changes; they are not universal benchmarks or approved commitments.
- Define score scales and directions before calculating totals. Keep units, denominators, and time periods consistent. Do not average away a critical blocker.
- Use only exact supplied or verified quotes with attribution. Label requested fictional examples as illustrative. Distinguish observed behavior from inferred motives or causes.
- Use only the sections and rows the task needs. Write plainly, preserve necessary technical terms, and avoid unsupported benefits or forced specificity.
- Identify missing information needed for a decision. Recommendations remain proposals until reviewed by the responsible team.

## Evidence and accuracy
- Use supplied facts and verified sources. Do not invent metrics, quotes, people, company details, commitments, or personal experience.
- Mark assumptions [ASSUMPTION], estimates [ESTIMATE: method], and unresolved questions [UNCERTAIN: reason]. Leave unavailable values unfilled rather than guessing.
- Explain confidence as high, medium, or low using the evidence available. These labels are judgments, not calibrated probabilities. Give numerical probabilities only when a stated method supports them.
- Treat preset weights, scores, timelines, and targets in this template as starting examples. Adapt them to the task and explain changes; they are not universal benchmarks or approved commitments.
- Define score scales and directions before calculating totals. Keep units, denominators, and time periods consistent. Do not average away a critical blocker.
- Use only exact supplied or verified quotes with attribution. Label requested fictional examples as illustrative. Distinguish observed behavior from inferred motives or causes.
- Use only the sections and rows the task needs. Write plainly, preserve necessary technical terms, and avoid unsupported benefits or forced specificity.
- Identify missing information needed for a decision. Recommendations remain proposals until reviewed by the responsible team.
How to use this prompt

When to use it

Reducing feature flag debt and establishing flag management best practices

Before you use the output

  • •Fill in the variables with the facts and constraints you have.
  • •Check the output against your source material and revise any mistakes.
  • •Add relevant context when the first draft misses part of your task.

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
Try PM Toolkit Calculators

Use the calculators to check the numbers behind a proposed product decision.