Skip to main content

feature-flag-system

Toggle features without deployment using feature flags

소스 정보

저장소
abcnuts/manus-skills
최근 소스 활동
2026년 2월 12일 04:11
감지된 SKILL.md 언어
영어
스타
69
포크
46

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
4 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
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.*
GitHub에서 보기