Skip to content
Back to skills

Feature Flags

ASecurity

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).

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsgotestingsecurity

Works with

  • cli

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add vectora-os/kit --skill feature-flags --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Feature Flags?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Feature Flags
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectora-os-feature-flags/badge)](https://www.skillsdirectory.com/skills/vectora-os-feature-flags)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.