Toggle features without redeploying by using feature flags
Implement feature flags to toggle features, run A/B tests, and control rollouts without redeployment.
Enable gradual feature rollouts, A/B testing, kill switches, and environment-specific behavior.
python3 /home/ubuntu/skills/feature-flag-system/scripts/setup_flags.py /path/to/project
import { useFeatureFlag } from '@/lib/flags'
export function Dashboard() {
const { enabled } = useFeatureFlag('new_dashboard')
if (enabled) return <NewDashboard />
return <OldDashboard />
}
// Roll out to 25% of users
const rollout = 25
const userHash = hashUserId(user.id) % 100
if (userHash < rollout) {
// Show new feature
}
const betaUsers = ['user1', 'user2']
if (betaUsers.includes(user.id)) {
// Show beta feature
}
Manual: 1-2 hours
With Skill: 10-15 minutes
Saved: ~1.5 hours per project
scripts/setup_flags.py - Automated setuptemplates/feature-flag.tsx - React hookreferences/flags_patterns.md - Best practicesanalytics-dashboard - Track flag usagedeployment-automation - Deploy with flagstesting-framework - Test flag variationsShip features safely with instant rollback capability.
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer