Testing in production with feature flags, canary deployments, synthetic monitoring, and chaos engineering. Use when implementing production observability or progressive delivery.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
A direct command skips the review prompt. Inspect the source before running it.
Testing in production with feature flags, canary deployments, synthetic monitoring, and chaos engineering. Use when implementing production observability or progressive delivery.
// Progressive rollout with LaunchDarkly/Unleash patternconst newCheckout = featureFlags.isEnabled('new-checkout', {
userId: user.id,
percentage: 10, // 10% of usersallowlist: ['beta-testers']
});
if (newCheckout) {
return<NewCheckoutFlow />;
} else {
return<LegacyCheckoutFlow />;
}
// Instant rollback on issuesawait featureFlags.disable('new-checkout');
Canary Deployment
# Flagger canary configapiVersion:flagger.app/v1beta1kind:Canaryspec:targetRef:apiVersion:apps/v1kind:Deploymentname:checkout-serviceprogressDeadlineSeconds:60analysis:interval:1mthreshold:5# Max failed checksmaxWeight:50# Max traffic to canarystepWeight:10# Increment per intervalmetrics:-name:request-success-ratethreshold:99-name:request-durationthreshold:500
Production is the ultimate test environment. Feature flags enable instant rollback. Canary catches issues before 100% rollout. Synthetic monitoring detects problems before users. Chaos engineering builds resilience. RUM shows real user experience.
With Agents: Agents monitor production, replay incidents as tests, run chaos experiments, and convert production insights to pre-production tests. Use agents to maintain continuous production quality.