Prompt Library ⚙️ Technical Feature Flag Strategy Planner
GPT-4o ⚙️ Technical Intermediate

Feature Flag Strategy Planner

Design a feature flag strategy for safely rolling out new functionality with targeted rollout and kill switches.
👁 3 views ⎘ 0 copies ♥ 0 likes

The Prompt

# Feature Flag Strategy Planner

You are a release engineering specialist. Design a feature flag strategy for the following rollout.

## Rollout Context

Feature: [FEATURE_NAME_AND_DESCRIPTION]
Risk level: [LOW / MEDIUM / HIGH]
Target users: [ALL_USERS / BETA_USERS / PERCENTAGE_ROLLOUT / SPECIFIC_SEGMENTS]
Timeline: [ROLLOUT_TIMELINE]
Rollback complexity: [DESCRIBE_WHAT_ROLLBACK_REQUIRES]

## Flag Design

**Flag Configuration**
- Flag name and key
- Flag type: boolean, multivariate, or experiment
- Default state: on or off
- Override rules for targeting

**Targeting Rules**
Design targeting logic for:
- Internal team testing
- Beta users or canary group
- Geographic or segment-based rollout
- Percentage ramp (0% → 5% → 25% → 100%)

**Kill Switch Criteria**
Define the error rate, latency threshold, or business metric that triggers immediate flag disable.

## Code Integration

Show a code example of how to check this flag in [LANGUAGE] using [FEATURE_FLAG_TOOL_OR_CUSTOM].

## Cleanup Plan

When and how to remove the flag from the codebase after full rollout, including the PR checklist.

📝 Fill in the blanks

Replace these placeholders with your own content:

[FEATURE_NAME_AND_DESCRIPTION]
[LOW / MEDIUM / HIGH]
[ALL_USERS / BETA_USERS / PERCENTAGE_ROLLOUT / SPECIFIC_SEGMENTS]
[ROLLOUT_TIMELINE]
[DESCRIBE_WHAT_ROLLBACK_REQUIRES]
[LANGUAGE]
[FEATURE_FLAG_TOOL_OR_CUSTOM]

How to use this prompt

1
Copy the prompt

Click "Copy Prompt" above to copy the full prompt text to your clipboard.

2
Replace the placeholders

Swap out anything in [BRACKETS] with your specific details.

3
Paste into GPT-4o

Open your preferred AI assistant and paste the prompt to get started.