Chiến Lược Feature Flag
PROThiết kế và triển khai chiến lược feature flag bao gồm canary release, A/B testing, rollout theo phần trăm và quản lý vòng đời để CI/CD an toàn.
Ví dụ sử dụng
Thiết kế feature flag system cho release feature mới từ từ 1% → 100% user.
Cách sử dụng Skill này
Sao chép skill bằng nút ở trên
Dán vào trợ lý AI của bạn (Claude, ChatGPT, v.v.)
Điền thông tin bên dưới (tùy chọn) và sao chép để thêm vào prompt
Gửi và bắt đầu trò chuyện với AI của bạn
Tùy chỉnh gợi ý
| Mô tả | Mặc định | Giá trị của bạn |
|---|---|---|
| Tên định danh duy nhất cho flag theo quy ước đặt tên | feature/new-checkout-flow | |
| Trạng thái mặc định ban đầu trước quy tắc nhắm mục tiêu (false = hành vi cũ) | false | |
| Tỷ lệ người dùng nhận tính năng (0-100) | 0 | |
| Nhóm người dùng nhận tính năng (nội bộ, beta, premium, khu vực) | all_users | |
| Môi trường flag hoạt động (dev, staging, prod) | production | |
| Ngày tự động dọn dẹp để xóa flag | 2025-12-31 |
- Copy the skill content above or download the skill package
- Paste into your AI assistant (Claude, ChatGPT, Gemini, Copilot)
- Describe your feature and deployment context
- Receive a complete rollout strategy with flag classification, rollout schedule, monitoring thresholds, and cleanup plan
Use Cases
- Planning a canary release for a risky backend change
- Designing A/B test configuration with proper statistical setup
- Managing feature flag lifecycle and technical debt
- Setting up automated rollback triggers
- Creating rollout strategies for database migrations
- Implementing permission-based feature gating
Nguồn nghiên cứu
Skill này được xây dựng từ các nguồn uy tín sau:
- Feature Toggles (Feature Flags) - Martin Fowler Definitive classification of toggle types by longevity and dynamism with implementation patterns
- How GitHub Ships Code Faster with Feature Flags Real-world production practices at scale: deployment risk reduction and automated cleanup
- The 12 Commandments of Feature Flags 2025 Modern best practices including naming conventions and lifecycle management
- 7 Advanced Feature Flagging Best Practices Lifecycle management, progressive rollouts, and security controls
- Feature Flag Release Management Best Practices Percentage deployment, canary releases, and automated rollout strategies
- 11 Open-source Feature Flag Tools Comparison of Unleash, Flagsmith, FeatBit, Flipt, GrowthBook, PostHog
- Testing in Production with Feature Flags 90-day implementation plan, canary release progression, and rollback strategies
- Feature Flags and Rollouts Complete Guide Risk mitigation, use cases with real examples, and phased release patterns