Skip to main content

feature-flag-system

Toggle features without deployment using feature flags

Jump to install

Source facts

Repository
abcnuts/manus-skills
Last source activity
February 12, 2026 at 04:11
Detected SKILL.md language
English
Stars
69
Forks
46

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

File Explorer
4 files

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
feature-flag-system
description
Toggle features without deployment using feature flags
# Feature Flag System Skill Implement feature flags to toggle features, run A/B tests, and control rollouts without redeployment. ## Purpose Enable gradual feature rollouts, A/B testing, kill switches, and environment-specific behavior. ## When to Use - Gradual feature rollouts (10% → 50% → 100%) - A/B testing different versions - Beta features for select users - Kill switches for problematic features - Environment-specific features ## Quick Start ```bash python3 /home/ubuntu/skills/feature-flag-system/scripts/setup_flags.py /path/to/project ``` ## Usage Example ```typescript import { useFeatureFlag } from '@/lib/flags' export function Dashboard() { const { enabled } = useFeatureFlag('new_dashboard') if (enabled) return <NewDashboard /> return <OldDashboard /> } ``` ## Common Patterns ### Percentage Rollout ```typescript // Roll out to 25% of users const rollout = 25 const userHash = hashUserId(user.id) % 100 if (userHash < rollout) { // Show new feature } ``` ### User-Based Access ```typescript const betaUsers = ['user1', 'user2'] if (betaUsers.includes(user.id)) { // Show beta feature } ``` ## Providers - **Vercel Flags** - Built-in, free - **PostHog** - Open source, analytics included - **LaunchDarkly** - Enterprise-grade - **Split.io** - A/B testing focused ## Time Savings **Manual**: 1-2 hours **With Skill**: 10-15 minutes **Saved**: ~1.5 hours per project ## Files - `scripts/setup_flags.py` - Automated setup - `templates/feature-flag.tsx` - React hook - `references/flags_patterns.md` - Best practices ## Related Skills - `analytics-dashboard` - Track flag usage - `deployment-automation` - Deploy with flags - `testing-framework` - Test flag variations *Ship features safely with instant rollback capability.*
View on GitHub