---
name: "unleash-enterprise-feature-toggles"
description: "Control feature releases, kill switches, and canary rollouts using open-source Unleash."
metadata:
  author: "Unleash"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "setup unleash client"
  - "gradual rollout unleash"
  - "kill switch feature toggle"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# Unleash Enterprise Feature Toggles & Gradual Rollouts

Deploys Unleash: unleash-client SDK, strategy constraints (gradual rollout by user ID percentage, IP allowlists, environment variants), metrics reporting, and managing kill switches for instant outage mitigation.

## When to Invoke
Invoke this skill whenever you need to:
- setup unleash client
- gradual rollout unleash
- kill switch feature toggle

## Execution SOP & Rules
1. Initialize client: const unleash = initialize({ url: 'https://unleash.example.com/api', appName: 'web', customHeaders: { Authorization: token } }).
2. Evaluate toggle: const enabled = isEnabled('checkout-v2', { userId: user.id });
3. Configure gradual rollout strategy in Unleash web UI based on stickiness: 'userId'.
4. Trigger instant kill switch in Unleash dashboard without requiring code redeployments.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
