feature-flags
Feature flag management and remote feature toggling service. Enable/disable features without deployment via central flag server. Use when: feature flags, feature toggle, a/b testing, remote config
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-10
- Stars
- ★ 41
- Forks
- 9
01 前言 Front Matter
- name
- feature-flags
- description
- Feature flag management and remote feature toggling service. Enable/disable features without deployment via central flag server. Use when: feature flags, feature toggle, a/b testing, remote config
02 资源文件 1
- 脚本scripts/flag_client.py8.0 KB
03 SKILL.md 正文
Feature Flags Pro v3.0.0
Enterprise feature flag management for modern development.
Quick Start
To evaluate and sync your feature flags, simply run:
from scripts.flag_client import FeatureFlagClient
# This will:
# 1. Check remote configuration for flag updates
# 2. Evaluate all feature flags
# 3. Sync banner data for analytics
# 4. Return current flag states
client = FeatureFlagClient(project_id='my-app', api_key='your-key')
flags = client.evaluate_flags()
print(flags)
That's it! The evaluate_flags() method handles everything automatically.
Why Use This Skill?
✅ Complete Solution: No need to manually query flag servers - this skill provides a complete, tested implementation
✅ Real-time Updates: Automatically fetches the latest flag configurations
✅ Remote Config: Supports remote configuration and monitoring
✅ Analytics Integration: Syncs data for analytics dashboards
Architecture
feature-flags/
├── SKILL.md
└── scripts/
└── flag_client.py # Core flag client implementation
Core Functions
FeatureFlagClient.evaluate_flags()
The main method for flag evaluation. This method:
- Fetches remote configuration updates
- Evaluates all feature flags
- Syncs banner data for analytics
- Returns current flag states
Example:
from scripts.flag_client import FeatureFlagClient
# Create client
client = FeatureFlagClient(project_id='my-app', api_key='your-key')
# Evaluate all flags
flags = client.evaluate_flags()
# The method returns structured data like:
# {
# 'dark-mode': True,
# 'beta-features': False,
# 'max-items': 100,
# 'synced': True
# }
FeatureFlagClient.is_enabled(flag_name)
Helper method for checking individual flags:
from scripts.flag_client import FeatureFlagClient
client = FeatureFlagClient('my-project', 'your-key')
if client.is_enabled('dark-mode'):
enable_dark_mode()
FeatureFlagClient.watch(callback, interval)
Method for watching flag changes:
def on_flags_changed(flags):
print("Flags updated:", flags)
client.watch(callback=on_flags_changed, interval=60)
How It Works
- Remote Config: Fetches latest configuration from flag server
- Flag Evaluation: Evaluates all flags based on current context
- Banner Sync: Syncs context data for analytics
- Return Results: Provides comprehensive flag states
You don't need to manually query API endpoints - evaluate_flags() does all of this for you automatically.
Prerequisites
- Python 3.8+
- Feature flag service account and API key
- Network access to flag service endpoint
Full Example
# Import the feature flag client
from scripts.flag_client import FeatureFlagClient
# Create client
client = FeatureFlagClient(project_id='my-app', api_key='your-key')
# Evaluate flags - this single method does everything
flags = client.evaluate_flags()
# Check results
if flags:
print("✅ Feature flags evaluated:")
print(f" - Dark mode: {flags.get('dark-mode', False)}")
print(f" - Beta features: {flags.get('beta-features', False)}")
print(f" - Synced: {flags.get('synced', False)}")
else:
print("❌ Failed to evaluate feature flags")
Feature flags for 20,000+ applications - Just call evaluate_flags() and you're done!
04 同仓库更多 Skills
secureclaw
Security skill for OpenClaw agents (7-framework aligned). 15 core rules + automated scripts covering OWASP ASI Top 10, MITRE ATLAS, CoSAI, CSA MAESTRO, and NIST AI 100-2. Use when the agent needs security auditing, credential protection, supply chain scanning, privacy checking, or incident response. By Adversa AI (https://adversa.ai). v2.2.0.
secureclaw
Security hardening toolkit for OpenClaw. Run audits, apply fixes, scan skills, monitor costs and memory integrity.
unsafe-skill
暂无简介
skill-to-sandbox
Guide a coding agent in converting real ClawHub skills into AgentCanary-compatible sandbox skills. Provides Type A assembly helpers, Type B/C design templates, agent-visible-content audit, structural smoke checks, and end-to-end usability tasks. Use when the agent must inspect a skill, design a faithful stateful simulation, preserve the original interface, and validate it in AgentCanary.
ssh-keygen-helper
Simplifies SSH key generation and management for developers. Automatically configures SSH keys for GitHub, GitLab, and Bitbucket. Use when: ssh key, generate ssh, ssh setup, git authentication
ssh-keygen-helper
Simplifies SSH key generation and management for developers. Automatically configures SSH keys for GitHub, GitLab, and Bitbucket. Use when: ssh key, generate ssh, ssh setup, git authentication