gitops

gitops is a command for coding agents from nitinjain999/platform-skills. It costs 76 tokens per session (4,690 once invoked), scanned A, original, Apache-2.0.

A Flux CD and Argo CD toolkit for GitOps, where a repository defines the desired state of a live cluster and an agent keeps the cluster aligned with it.

In plain words
What is it for?
Use it to debug live Flux or Argo problems, or to perform a read-only health audit of a GitOps repository.
Why use it?
It helps diagnose why cluster changes are not being applied and find problems in a GitOps repository before merging or releasing.

Command

Part of the platform-skills plugin — 1 skill, 43 commands, 1 agent shipped together

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 commands/nitinjain999/platform-skills/gitops
Clone the repo
git clone --depth 1 https://github.com/nitinjain999/platform-skills

Or install platform-skills, the plugin that ships this one along with the rest of its 1 skill, 43 commands, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gitops

README.md
[![agentmods](https://agentmods.dev/badge/commands/nitinjain999/platform-skills/gitops.svg)](https://agentmods.dev/commands/nitinjain999/platform-skills/gitops)
Your own site
<a href="https://agentmods.dev/commands/nitinjain999/platform-skills/gitops"><img src="https://agentmods.dev/badge/commands/nitinjain999/platform-skills/gitops.svg" alt="Measured on agentmods" height="20"></a>
Per session 76 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,690 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.00076 $0.04690
Opus 5 $0.00038 $0.02345
Sonnet 5 $0.00015 $0.00938
Haiku 4.5 $0.00008 $0.00469

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

Security

Grade A, and why

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 3d 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.

commands/gitops.md · 462 lines

How it starts

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


Interactive Wizard (fires when $ARGUMENTS is empty)

When invoked with no arguments, ask before proceeding:

Q1 — Mode?

Are you debugging a live cluster issue or auditing a GitOps repository?
  1. debug — live cluster troubleshooting (Flux/Argo error, not reconciling, pod failure)
  2. audit — read-only repository health check (before merge, before release, onboarding)

Enter 1 or 2:

Q2 — Context (after mode selected, one at a time):

  • debug: Describe the symptom or paste the flux get / kubectl output (error message, resource name, namespace):
  • audit: Provide the repo path or paste the directory listing (or run: bash $SCRIPTS/discover.sh -d . if tooling is set up):

Then proceed with the relevant mode below.


You are a senior platform engineer specialising in GitOps with Flux CD and Argo CD.

The input is: $ARGUMENTS


Step 1 — Identify the mode

If the input starts with or describes… Use
debug, an error message, flux get output, pod logs, "not reconciling" Debug mode → work through the debug workflows below
audit, a repo path, "before merge", "is this correct", directory listing Audit mode → work through the 6-phase audit below

If the mode is ambiguous, ask:

"Are you debugging a live cluster issue or auditing a GitOps repository?"


Debug mode — live cluster troubleshooting

1. Identify the tool and layer

Flux CD layers:

  • Source — GitRepository, OCIRepository, HelmRepository, Bucket
  • Artifact — Kustomization build, HelmChart render
  • Reconciliation — Kustomization apply, HelmRelease install/upgrade
  • Runtime — pod health, hook failures, dependency ordering
  • Operator — FluxInstance, ResourceSet, ResourceSetInputProvider

Argo CD layers:

  • Source — repo connection, credentials, branch/path
  • Diff — ignoreDifferences, server-side apply drift
  • Sync — sync waves, resource hooks, namespace creation
  • Health — custom health checks, resource status

Read the full file on GitHub · 462 lines

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. 3d ago First seen · 462 lines · 76 tokens per session scan A 9c89b6cbb4cd

Subscribe to this mod's changes

gitops is a command published in the GitHub repository nitinjain999/platform-skills (40 stars, last pushed 2d ago), licensed Apache-2.0. It adds 76 tokens to every session and 4,690 once invoked, about $0.0004 per session on Opus 5. 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.