Create feature flag documentation for:
**Feature Flag System:** {{FLAG_SYSTEM}} (LaunchDarkly, custom, etc.)
**Application:** {{APP_NAME}}
**Feature Flags:**
{{FLAGS}}
Generate comprehensive feature flag documentation:
# Feature Flag Documentation
## Overview
- Feature flag system used
- Configuration management
- Best practices
## Feature Flags Inventory
### Flag: {{FLAG_NAME}}
| Property | Value |
|----------|-------|
| Key | {{flag_key}} |
| Type | Boolean/String/Number/JSON |
| Default | false |
| Created | Date |
| Owner | Team/Person |
| Status | Active/Deprecated |
**Description:**
What this flag controls
**Use Case:**
Why this flag exists
**Targeting Rules:**
| Rule | Condition | Value |
|------|-----------|-------|
| Beta users | user.beta = true | true |
| Percentage | 10% rollout | true |
| Default | All others | false |
**Code Usage:**
```javascript
if (featureFlags.isEnabled('{{flag_key}}')) {
// New feature code
} else {
// Existing code
}
```
**Dependencies:**
- Other flags or features this depends on
**Rollout Plan:**
1. 10% - Date
2. 50% - Date
3. 100% - Date
**Cleanup Plan:**
When and how this flag will be removed
---
[Repeat for all flags]
## Flag Lifecycle
### Creation Process
### Rollout Process
### Cleanup Process
## Best Practices
- Naming conventions
- Flag hygiene
- Testing with flags
## Troubleshooting
Common issues with feature flags
## Audit Log
Recent flag changesOr press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[{FLAG_SYSTEM][{APP_NAME][{FLAGS][{FLAG_NAME]{{flag_key}{
// New feature code
}{
// Existing code
}