Feature flags — release, experiment, ops (kill switch) and permission flags, targeting and gradual rollout, flag lifecycle and cleanup, testing both paths, server vs client evaluation, flag debt. Use to decouple deploy from release or add kill switches (feature flags, toggles, kill switch, gradual rollout, dark launch).
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Feature Flags?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/vectora-os-feature-flags)
---
name: feature-flags
description: Feature flags — release, experiment, ops (kill switch) and permission flags, targeting and gradual rollout, flag lifecycle and cleanup, testing both paths, server vs client evaluation, flag debt. Use to decouple deploy from release or add kill switches (feature flags, toggles, kill switch, gradual rollout, dark launch).
metadata:
category: delivery
---
# Feature flags
## Purpose
Decouple deployment from release and limit blast radius.
**Use when:** risky changes, gradual rollouts, kill switches.
**Not for:** permanent configuration.
## Inputs
- Change, rollout plan.
## Outputs
- Flag definition with owner, expiry, rollout plan, tests.
## Read first
- [Project Brain](../../../project-brain/README.md) — `npm run brain -- query "feature flags"` for prior decisions, patterns and anti-patterns.
## Steps
1. **Type.** Classify flag type and lifetime.
Done when owner and expiry set.
2. **Implement.** Evaluate server-side for security-relevant logic; default safe.
Done when off path is safe.
3. **Test.** Test both paths in CI.
Done when both paths covered.
4. **Retire.** Remove after full rollout.
Done when flag removed by expiry.
## Best practices
- Kill switches for risky dependencies.
- Track flag debt.
## Common mistakes
- Flags never removed.
- Client-side flags guarding authorization.
## Example
`export.v2` release flag: 5% → 25% → 100% over a week, removed two weeks later.
## Reusable prompt
```text
Apply the Feature flags skill (.agents/skills/feature-flags/SKILL.md).
Context: {{task card or question; links to PRD, ADRs, code paths}}
Constraints: {{approved thresholds, deadlines, allowed files}}
Define the flag (type, owner, expiry, default), the rollout steps, tests for both paths and the removal task.
Return: Flag definition with owner, expiry, rollout plan, tests..
Cite evidence (file:line, command output, source) for every claim; list open questions separately.
```