/gitops:gitopsfrom gitops
Sets up and reviews GitOps delivery to Kubernetes with Argo CD or Flux (choosing between them, repo layout, Application, ApplicationSet, GitRepository and Kustomization resources, sync policy, secrets with External Secrets, Sealed Secrets or SOPS). Use when bootstrapping a cluster from Git or debugging sync and drift.
Ships in gitops. 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.
Read when SKILL.md points to them.
Git holds the desired state, and an in-cluster agent pulls it and reconciles. Changes ship as commits, so review, history, and rollback come from Git.
Not for writing the workload manifests (the kubernetes skill), Helm chart authoring (helm), or rollout strategy and rollback criteria (rollout-plan).
argocd app get|diff|history, flux get ..., flux check, kubectl get|describe. Use these first.argocd app sync, flux reconcile, suspend|resume, enabling prune, deleting an Application or Kustomization, and pushes to the GitOps repo.resources-finalizer.argocd.argoproj.io finalizer deletes the resources it manages. Deleting a Flux Kustomization with prune: true does the same. Say so before proposing either.stable or latest.A pipeline that runs kubectl apply from CI is deployment automation, not GitOps. Use CI to build, test, and open the commit that bumps an image tag or chart version.
| Need | Argo CD | Flux |
|---|---|---|
| Web UI for app status and diffs | Built in | Separate add-on |
| Footprint | Larger (API server, UI, repo server, Redis) | Lighter set of controllers |
| Multi-tenant app teams with projects and RBAC | AppProject, SSO, UI roles | Namespaced Kustomizations and Kubernetes RBAC |
| Many clusters or generated apps | ApplicationSet generators | Kustomization per cluster path |
| Helm | Renders charts itself | HelmRelease runs real Helm releases |
| SOPS secrets | Needs a plugin or other tool | Native decryption in Kustomization |
Default for a single homelab or small cluster: Flux, because it is lighter and bootstraps from one command. Choose Argo CD when people need the UI, project-level access control, or ApplicationSet fan-out. Keep an existing choice unless the user asks to migrate.
Separate cluster wiring from application manifests, and give each environment a path:
gitops-repo/
clusters/
<cluster>/ # Flux bootstrap path, or Argo CD root app
infrastructure/ # ingress, cert-manager, monitoring, CRDs
apps/
base/<app>/ # shared manifests or Helm values
overlays/<env>/<app>/ # per-environment Kustomize overlays
main) with a directory per environment, unless a promotion model needs separate branches. Directories make a promotion a visible diff.dependsOn (Flux) or sync waves (Argo CD).Prune and selfHeal are choices that depend on the environment, not defaults to copy.
| Setting | Meaning | Dev and staging | Production |
|---|---|---|---|
| Automated sync | Apply any new commit | On | On for low-risk apps, otherwise manual sync or a sync window |
prune | Delete cluster resources removed from Git | On | On only after reviewing what would be pruned. Protect critical resources (see references). |
selfHeal (Argo CD) | Revert out-of-band cluster edits | On | On, once nobody relies on kubectl edit as a workflow |
| Retry | Retry a failed sync with backoff | On | On, with a limit |
Argo CD leaves prune and selfHeal off unless you set them, and doesn't retry a sync against the same commit that already failed. Flux requires prune to be stated on every Kustomization. Details and manifests are in argocd and flux.
argocd version, flux version). Check API versions against the installed controllers, not the examples here.kubernetes skill describes (kubeconform, server-side dry run). Render Kustomize and Helm sources locally first.argocd app diff <app> or flux diff kustomization <name> --path <dir> shows the change before it merges.argocd app get <app> or flux get kustomizations. Healthy and Synced (Argo CD) or Ready (Flux) is the done signal. Confirm the workload itself with kubectl rollout status.Canary and blue-green rollouts need a controller on top of GitOps, such as Argo Rollouts or Flagger. The GitOps tool syncs the Rollout or Canary resource, and the controller shifts traffic and promotes or aborts by metric. Strategy choice, promotion gates, and rollback criteria are in the rollout-plan skill.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub adminhead/claude-plugins --plugin gitops