/cub-scout:scout-comparefrom cub-scout
Compares intended vs actual Kubernetes state using cub-scout. Answers whether a release landed, if the cluster matches Git, or if drift exists. Provides PASS/WATCH/BLOCK/INCONCLUSIVE verdicts.
Ships in cub-scout. 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.
The Compare verb group of cub-scout. Four ways to ask "does what's running match what was intended?", with deterministic verdicts and structured evidence.
Explicit phrasings:
Implicit intents:
scout-observescout-diagnosescout-attributecub, argocd app sync (with the user driving), flux reconcile, or kubectl applycompare drift --file <yaml> and compare --git-path <repo> work without ConfigHub. Compares the file or repo against the live cluster.cub auth login): compare three-way adds the DRY (ConfigHub intent) layer; compare source-truth runs a strategy-relative verdict over DRY / WET / LIVE.compare between a manifest file and a debug-bundle snapshot, no cluster needed.kubectl get/describe; cub <entity> get / list for the entities named in allowed-tools (connected); argocd app get, flux get (controller-side reads).argocd app sync as a mutation, flux reconcile, kubectl apply/edit/patch/delete, cub * create/update/delete. The compare commands never apply a fix.--fail-on: the existing compare three-way --fail-on info|warning flag makes the command a CI gate (exit code 2 on violations). It still doesn't mutate — the gate just fails the pipeline.| Question | Verb | Notes |
|---|---|---|
| "Compare a manifest file to the cluster" | cub-scout compare drift --file <yaml> | File-vs-live drift. Works standalone, no ConfigHub. |
| "Compare this resource end-to-end" | cub-scout compare <kind>/<name> -n <ns> | Single-resource compare. Connected: full DRY/WET/LIVE. Standalone: LIVE only with notes. |
| "Compare a scope" | cub-scout compare three-way --scope namespace/<ns> | Multi-resource DRY/WET/LIVE with agreement summary. Requires connected mode for DRY/WET. Supports --scope, --view <uuid-or-url>, --source-path <local-checkout> (stage B back-resolution), --fail-on. |
| "Strategy-relative verdict" | cub-scout compare source-truth <kind>/<name> -n <ns> --strategy <s> | One of 9 strategies (confighub-oci-argo, confighub-oci-flux, git-argo, git-flux, helm-flux, helm-argo, kustomize-flux, oci-flux, oci-argo). Returns a structured pair status ∈ {PASS, WATCH, BLOCK, ASK} + source_truth ∈ {AGREED, MISMATCH, INCOMPLETE, BLOCKED, UNKNOWN}. Pilot's acceptance kernel consumes both axes. |
All four verbs emit --format json for agents and the MCP gateway.
compare drift --filecompare three-waycompare source-truth --strategy <s>compare three-way --source-path <dir> (stage B back-resolution, #440)<kind>/<name> -n <ns>), namespace (--scope namespace/<ns>), view (--view <uuid-or-url>), or cluster (--scope cluster).--format json if the output is going to an agent or CI; ASCII otherwise.compare source-truth: the structured pair status ∈ {PASS, WATCH, BLOCK, ASK} + source_truth ∈ {AGREED, MISMATCH, INCOMPLETE, BLOCKED, UNKNOWN}. For compare three-way / compare drift: per-field diffs with attribution evidence (cause, managerHint, gitSource, bindingSource) — see scout-attribute for how to read those. INCONCLUSIVE is the receipt-level verdict — it shows up only when these results are wrapped into a cub-scout receipt verify artifact, not in raw compare source-truth output.WATCH or BLOCK and the user wants to fix it, refuse to mutate and route them: drift produced by kubectl edit (per cause: manual-edit) typically goes to the original-author path (commit the change back); drift produced by a controller (cause: controller-drift) typically resolves on its own — wait or re-run.The primary v1 path. No ConfigHub auth required.
$ cub-scout compare drift --file desired.yaml -n prod
Drift Report
════════════
Cluster: prod-cluster
Source: desired.yaml
[Config] Configuration Drift
└─ [WARNING] Deployment:prod/api
path: spec.template.spec.containers[name=app].env[name=LOG_LEVEL]
desired: info
observed: debug
Summary: 1 finding
Pair with scout-attribute when you want to know who changed LOG_LEVEL (controller? human? agent?). cub-scout reads metadata.managedFields on the live object to produce that classification — works without ConfigHub.
$ cub-scout compare three-way --scope namespace/prod --fail-on warning
Three-Way Compare:
Scope: namespace/prod
Resources: 12 Connected: 12 DRY/WET/LIVE: 12 Mismatched: 0
Agreement: ✓ AGREED — All 12 resources agree
Conformance: PASS (threshold: warning, max: info, 0 issues)
exit 0
CI pipeline can gate on exit 0. Mismatch produces exit 2 + a structured compareFieldMismatch[] array with per-field cause and managerHint from the attribution layer (#435). Requires cub auth login — adds the DRY (ConfigHub-intended) layer that the standalone case doesn't have.
$ cub-scout compare source-truth Deployment/api -n prod --strategy git-argo --format json
{
"subject": {"kind": "Deployment", "name": "api", "namespace": "prod"},
"strategy": "git-argo",
"status": "PASS",
"verdict": "AGREED",
"evidence": {
"git": {"repoUrl": "https://github.com/org/repo", "revision": "abc123"},
"controller": {"argocd": {"lastSync": "abc123", "sync": "Synced"}},
"cluster": {"resourceVersion": "1234567"}
}
}
Pilot's acceptance kernel consumes this JSON directly. The strategy must be declared explicitly — compare source-truth does not auto-detect the strategy (Pilot needs the operator's stated assumption, not cub-scout's guess).
compare three-way agreement: summary.agreement.state ∈ {agreed, converging, diverged, partial}; the canonical "did the cluster end up matching ConfigHub intent?" rollup.compare source-truth (two separate enums):
status ∈ {PASS, WATCH, BLOCK, ASK} — cub-scout's evidence-quality verdictsource_truth ∈ {AGREED, MISMATCH, INCOMPLETE, BLOCKED, UNKNOWN} — cross-surface agreement under the declared strategyMISMATCH while status is BLOCK (strategy violation) OR WATCH (soft mismatch with proof gaps). See references/source-truth-strategies.md for the full status×verdict matrix.cub-scout receipt verify --strategy <s>): PASS / WATCH / BLOCK / INCONCLUSIVE. INCONCLUSIVE is the receipt-only fourth state; it does NOT appear in raw compare source-truth output.compareFieldMismatch[]) with attribution: cause, managerHint, gitSource, bindingSource.summary.agreement.state ∈ {agreed, converging, diverged, partial}.--fail-on info|warning produces exit 2 on violations.nextSteps[] structured hints — every actionType ∈ {read-only, waiting, human-decision}; mutating is rejected at emit.README.md § Compare--view scope (connected): #391 / #414--source-path): #440scout-attributecompare source-truth does not auto-detect the strategy. The strategy is the operator's declared assumption (which authority produced this artifact?) and Pilot needs it stated, not guessed.compare drift --file or compare --git-path. Missing connected-mode evidence is recorded explicitly, not silenced.cub-scout receipt verify once #446 batch 1 lands. Until then, --format json output is the contract — it's stable, but ephemeral.BLOCK verdict by mutating directly. If the user wants to accept the live state as the new intent, route them to a cub skill for governed write-back.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
35 skills in this plugin
/ai-agent-readonly-contextUse when the user is WIRING CUB-SCOUT INTO AN AI AGENT (Claude / Codex / a custom LLM workflow) and needs the patterns for read-only context, MCP gateway tools, deterministic context snapshots, and the prompt-shape that makes cub-scout's output reliable for LLMs. Natural phrasing: "set up cub-scout as a Claude tool", "expose cub-scout to my agent over MCP", "give the LLM a deterministic snapshot of this cluster", "what cub-scout patterns work well for AI agents?", "MCP config for cub-scout in Claude Code", "best practices for wiring cub-scout into Codex / Cursor / Continue", "AI-ready cluster context", "prompt template for cub-scout output". Composes `mcp serve` + `context-pack` + `--presentation ai` + the structured JSON contracts. Do NOT load for: a specific verb invocation (load the corresponding scout-* skill), authoring an MCP server in general (this is about wiring CUB-SCOUT specifically), or any mutating workflow (cub-scout never mutates; the read-only triad is the whole point of this skill)./audit-fleet-conformanceUse when the user wants to verify CONFORMANCE ACROSS A FLEET — multiple namespaces, multiple clusters, or a defined View scope. Natural phrasing: "which clusters are conformant?", "audit fleet conformance against this View", "show me all outliers in prod fleet", "compare every service against its source-truth strategy", "scope-wide three-way check for drift", "fleet-level compliance audit", "which deployments drift across the cluster?". Composes `compare three-way --view` + `compare source-truth` + `fleet outliers` for multi-resource / multi-cluster checks. Requires connected mode for the View + ConfigHub surfaces. Do NOT load for: a single resource (use investigate-drift), a triage (use triage-unhealthy-workload), incident evidence for one event (use operator-incident-evidence), or anything mutating.Generated from the plugin's indexed repository (confighub/cub-scout) — no native marketplace selected
npx claudepluginhub p/confighub-cub-scoutOther plugins' skills for the same job