/devops-skills:feature-flagsfrom devops-skills
Guides on using feature flags to separate deployment from release, covering flag types, targeting rules, and cleanup discipline to prevent flag debt.
Ships in devops-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A feature flag turns a deploy-time decision into a runtime decision, which is enormously valuable for exactly one reason: it lets you separate "is the code safely running in production" from "can users see the new behavior." That separation is the entire point. Flags misused as a permanent branching mechanism, left in code long after their purpose is served, become a second, undocumented configuration system that makes the codebase harder to reason about than not having flags at all.
Every flag you add is a debt you're taking on with an implicit promise to pay it back by removing it.
A feature flag is a temporary bridge between "deployed" and "released" — it should have an owner and an expected removal date from the moment it's created.
A release flag exists to ramp a specific feature from 0% to 100% of users and then gets deleted once fully rolled out — its lifespan is weeks, not years. An operational flag (a kill switch for a risky dependency, a toggle for degrading gracefully under load) is meant to live indefinitely as a genuine piece of operational tooling. Treating a release flag like it's permanent is how flag debt accumulates; treating an operational kill switch like it needs to be deleted after rollout is how you lose a tool you'll need in the next incident.
Done when: every flag in the system is labeled with its type, and release/experiment flags have a target removal date.
Flag targeting (percentage rollout, user segment, internal-only) is what makes a flag useful for buying information gradually rather than an all-or-nothing switch. The default state of any new flag should be "off" or "old behavior," so that if the flag system itself fails (config service down, cache stale) the system fails toward the known-safe, already-verified behavior rather than toward the new, less-proven one.
# targeting a canary rollout: internal users first, then 5%, then 50%, then 100%
flag: new-checkout-flow
default: false
rules:
- if user.internal == true → true
- if user.id % 100 < 5 → true # ramp this percentage over days, not minutes
Done when: the flag evaluation service being unreachable results in every user getting the old, proven behavior, not the new one.
A flag means two code paths exist in production simultaneously, and it's easy to thoroughly test the new path while letting the old path's test coverage quietly rot, or vice versa for an operational kill switch nobody exercises until the incident where it's needed. Both states of every flag need to be exercised by CI and, ideally, by production canary traffic — an untested "off" path in a kill switch is a kill switch that might not actually work when you flip it under pressure.
Done when: both states of any release flag have been exercised by an automated test in the last CI run.
The single largest source of flag debt is flags created without anyone accountable for removing
them — they work, nobody's in pain, so they stay forever, and eventually the codebase has dozens
of permanent if branches for features that shipped years ago. Require an owner and an expected
removal date (or removal trigger: "remove once at 100% for 2 weeks with no incidents") as part of
creating any release or experiment flag, and track flags past their expected removal date the
same way you'd track any other overdue work item.
Done when: every release and experiment flag has a named owner and either a removal date has passed with the flag removed, or there's an active, visible reason it hasn't been.
Setting a flag to always-true and walking away is not removal — the conditional, the old code path, and the flag definition all still exist, still cost cognitive overhead on every read, and still risk someone accidentally flipping it back. Removal means deleting the flag check, deleting the dead code path it was guarding, and deleting the flag definition from the flagging system itself. Budget this as real engineering work, not an afterthought — a flag "done" at 100% rollout that never gets cleaned up is exactly how flag debt compounds.
Done when: the flag's conditional and dead code path are deleted from the codebase, not merely left permanently on.
State how many active flags exist, broken down by type (release/operational/experiment), and how many are past their expected removal date. Name the honest gap explicitly: almost every real system has some flag debt — say how much, and whether cleanup is a scheduled activity or something that only happens when someone trips over it.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub arjunprabhulal/devops-skills --plugin devops-skills88 skills in this plugin
/alertingCovers designing alerts that page a human only when a human needs to act — symptom-based alerting over cause-based, multi-window burn-rate alerts on error budgets, severity tiers that route between page/ticket/dashboard, requiring every page to link a runbook, and tuning out alert fatigue. Use this whenever the user is writing a new alert rule, asking why on-call is paged too often or missing real incidents, choosing an alert threshold, or designing severity routing. For the SLO the burn-rate math comes from use `slo-definition`, and for what a runbook should contain use `runbooks`./api-gatewayCovers the managed front-door pattern for APIs — request routing, centralized auth, rate limiting and quotas, request/response shaping, and recognizing when a gateway helps versus becomes a bottleneck or single point of failure. Use this whenever the user is designing an API entry point, adding rate limits or quotas, centralizing auth for several backend services, transforming a request between an external and internal contract, or debugging a gateway timeout. For east-west traffic between internal services use `service-connectivity`, and for token issuance details use `iam-access-management`./argocd-operationsCovers running Argo CD day to day — structuring app-of-apps, choosing sync policies and waves, reading health versus sync status correctly, and unsticking a degraded or hung Application. Use this whenever the user mentions Argo CD, an Application stuck "Progressing" or "OutOfSync," app-of-apps or ApplicationSets, sync waves and hooks, or asks why a deploy shows synced but the workload is unhealthy. For the underlying model this tool implements use `gitops`; for automated canary analysis on top of it use `progressive-delivery`; for the workloads it manages use `kubernetes-operations`./artifact-managementVersions, stores, and promotes build outputs — registries, immutability, build-once-promote-many, retention and garbage collection, and provenance metadata. Use this whenever the user sets up an artifact or container registry, asks how to promote a build between environments without rebuilding, needs a retention or cleanup policy, or wants to trace where an artifact came from. For an image's contents and size use `image-optimization`; for vulnerability scanning use `image-scanning`./autoscalingCovers scaling Kubernetes workloads and nodes to demand — HPA on the right metric, VPA, cluster autoscaler, custom/external metrics, avoiding thrash with stabilization windows, and requests as the foundation underneath it all. Use this whenever the user is configuring an HPA, deciding between HPA and VPA, debugging autoscaling that flaps, or sizing a cluster autoscaler. For the requests/limits autoscaling depends on use `kubernetes-operations`; for cost tradeoffs use `cost-optimization`./backup-and-restoreDefines the discipline of building backups you can actually restore under pressure — RPO-driven frequency, restores rehearsed on a schedule, offsite immutable copies, encryption, and treating a backup that has never been restored as equivalent to no backup at all. Use this whenever the user sets up a backup job, chooses a retention policy, argues about RPO or RTO, asks whether current backups are enough, or plans for ransomware or accidental deletion. For the wider recovery plan use `disaster-recovery`, and for stateful platform durability use `stateful-workloads`.