k8s-gitops

A set of procedures for diagnosing GitOps systems such as Argo CD and Flux, which keep Kubernetes aligned with configuration stored in Git. It covers synchronization, drift, reconciliation, and rollouts.

In plain words
What is it for?
It is for investigating out-of-sync applications, failed reconciliations, degraded releases, source-fetch errors, rollout failures, and blocked environment promotions.
Why use it?
It helps identify why the running cluster differs from Git or why a configuration update is not being applied.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/yindia/rootcause/k8s-gitops
Any agent
npx skills add yindia/rootcause --skill k8s-gitops
Clone the repo
git clone --depth 1 https://github.com/yindia/rootcause

Made for: Claude Code, Codex.

Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,128 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.02128
Opus 5 $0.00000 $0.01064
Sonnet 5 $0.00000 $0.00426
Haiku 4.5 $0.00000 $0.00213

Measured 2d ago against content hash 587ad69eee7b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

k8s-gitops scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/claude/k8s-gitops/SKILL.md · 249 lines

How it starts

The opening of the file, as written. The whole thing — 249 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Skill: k8s-gitops

GitOps diagnostics and operational guidance for ArgoCD and Flux using RootCause MCP tool names only.

Scope

  • Detect whether ArgoCD and/or Flux are installed.
  • Diagnose sync and reconciliation health.
  • Analyze drift and rollout failures.
  • Correlate change timelines to incidents.
  • Guide forced reconciliation workflows safely.
  • Support environment promotion paths with verification.

Tooling Rule

  • Use RootCause tool names only.
  • Prefer k8s.argocd_detect and k8s.flux_detect before deep diagnosis.
  • Use k8s.diagnose_argocd and k8s.diagnose_flux for first-pass triage.
  • Use k8s.describe, k8s.list, k8s.events, and k8s.events_timeline for evidence detail.

Canonical Tool Set

  • k8s.argocd_detect
  • k8s.diagnose_argocd
  • k8s.flux_detect
  • k8s.diagnose_flux
  • k8s.describe
  • k8s.list
  • k8s.events
  • k8s.events_timeline

Triggers

  • gitops
  • argocd
  • flux
  • out of sync
  • app degraded
  • reconciliation failed
  • kustomization not ready
  • helmrelease failed
  • source fetch failed
  • drift detected
  • promotion blocked
  • environment mismatch
  • sync loop

Priority Rules

Condition First action Why
Unknown platform Run k8s.argocd_detect and k8s.flux_detect Fast platform fingerprint
ArgoCD suspected issue Run k8s.diagnose_argocd Consolidates sync + health + events
Flux suspected issue Run k8s.diagnose_flux Consolidates source + reconcile signals
Need object-level reason Run k8s.describe Full status/conditions/events
Need inventory Run k8s.list Lists all relevant CRs
Need chronology Run k8s.events_timeline Aligns failure to changes

ArgoCD Application States

Sync status Health status Interpretation Action
Synced Healthy Desired and live match Monitor only
Synced Degraded Live matches desired but app unhealthy Inspect workload failures
OutOfSync Healthy Drift exists but app currently serving Investigate drift source
OutOfSync Degraded Drift plus unhealthy app Prioritize immediate remediation
Unknown Unknown Controller cannot evaluate Check controller availability and access
Synced Progressing Deployment in-flight Validate rollout convergence

Read the full file on GitHub · 249 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 249 lines · 0 tokens per session scan A 587ad69eee7b

Subscribe to this mod's changes

k8s-gitops is a skill published in the GitHub repository yindia/rootcause (42 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,128 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.