/cub-scout:observe-confighub-managedfrom cub-scout
Observes ConfigHub-managed Kubernetes resources where desired state lives in a ConfigHub Unit delivered via Argo or Flux. Traces resources back to ConfigHub revisions, explains confighub.com labels, and distinguishes ConfigHub-OCI-Argo from ConfigHub-OCI-Flux delivery.
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 controller-specific observer skill for ConfigHub-managed resources — workloads whose desired state lives in a ConfigHub Unit and gets delivered through Argo (typically via OCI artifact) or Flux (Kustomization / OCIRepository). This skill is the bridge between cub-scout's "who owns the live resource?" question and ConfigHub's "where does the intent live?" answer.
Verified against pkg/agent/ownership.go detectConfigHubOwnership and pkg/agent/manager_strings.go controllerManagersForOwner(OwnerConfigHub, ...).
confighub.com/UnitSlug label mean?"observe-argocdobserve-fluxscout-observecub, not cub-scout. Route to confighub/confighub-skills.scout-compare (compare three-way, compare source-truth)detectConfigHubOwnership)cub-scout classifies a resource as ConfigHub-owned when EITHER signal is present:
| Signal | Source | SubType | Confidence | Notes |
|---|---|---|---|---|
confighub.com/UnitSlug label | label | unit | high | Primary signal. Namespace is populated from confighub.com/SpaceName (annotation preferred, label fallback). |
confighub.com/UnitSlug annotation | annotation | unit | high | Fallback for resources where the unit slug lives in annotations. Namespace from confighub.com/SpaceName annotation. |
Resulting Ownership: Type=confighub, SubType=unit, Name=<unit-slug>, Namespace=<space-name>.
The ownership detector runs ConfigHub detection BEFORE Argo and Flux. A resource delivered through Argo CD reading a ConfigHub-rendered OCI bundle has BOTH confighub.com/UnitSlug AND argocd.argoproj.io/instance labels. Without the priority order, the resource would classify as OwnerArgo and the "delivered by ConfigHub" fact would be lost.
The detector ordering reflects the architectural triad's authority model:
A ConfigHub-managed resource still gets full Argo/Flux attribution even though it classifies as OwnerConfigHub. The attribution layer's controller co-signal accepts both argocd-controller and kustomize-controller / helm-controller as valid writers for ConfigHub-owned resources — see "Controller co-signals" below.
metadata.managedFields)controllerManagersForOwner(OwnerConfigHub, ...) returns FOUR matchers — the union of Argo and Flux core writers, because both delivery surfaces are valid for ConfigHub:
| Manager | Source | Delivery path |
|---|---|---|
argocd-controller | Argo CD application-controller SSA | ConfigHub → OCI → Argo CD → cluster |
kubectl-client-side-apply | Argo CD CSA migration default | Same path; Argo writes via CSA fallback |
kustomize-controller | Flux kustomize-controller | ConfigHub → OCI/Git → Flux Kustomization → cluster |
helm-controller | Flux helm-controller | ConfigHub → OCI → Flux HelmRelease → cluster |
Any of these as a writer is controller-drift (a controller reconciled the ConfigHub intent). A kubectl-* writer on a ConfigHub-owned resource is manual-edit — someone bypassed both ConfigHub AND the delivery controller.
cub-scout doesn't classify the delivery path in ownership detection — it just records the unit slug. To find out how a ConfigHub Unit got to the cluster, walk the labels:
| If you also see... | The delivery path is... |
|---|---|
argocd.argoproj.io/instance | ConfigHub-via-Argo (typically OCI) |
kustomize.toolkit.fluxcd.io/name | ConfigHub-via-Flux Kustomization |
helm.toolkit.fluxcd.io/name | ConfigHub-via-Flux HelmRelease |
| Neither | Either a direct cub apply or an unusual delivery path; check cub unit get <slug> for the target |
The compare source-truth --strategy <name> verbs cover the four ConfigHub-aware strategies explicitly:
confighub-oci-argo — ConfigHub authors a Unit, renders to OCI, Argo CD reads OCI, applies to clusterconfighub-oci-flux — Same authoring chain, Flux is the delivererWhen cub-scout is run connected (cub auth login), additional ConfigHub-side evidence is layered onto the resource:
confighubUrl — the ConfigHub GUI deep-link to the unit's revisionincomingBindings[] — the upstream units feeding this unit via ConfigHub Links (#438)bindingSource — which Link supplies a specific field's value (#439)compare three-way shows the full DRY (ConfigHub) / WET (rendered) / LIVE (cluster) triocompare source-truth --strategy confighub-oci-{argo,flux} runs the strategy-typed verdict over all three surfacesStandalone-mode cub-scout still classifies as OwnerConfigHub (the label is on the live resource), but the connected-mode evidence isn't available. Receipts record this as OmissionConfigHubUnitSubject.
$ kubectl get deploy api -n prod -o yaml | yq '.metadata.labels, .metadata.annotations, .metadata.managedFields[].manager'
labels:
confighub.com/UnitSlug: payments-api
argocd.argoproj.io/instance: payments-app
app: api
annotations:
confighub.com/SpaceName: payments
argocd.argoproj.io/tracking-id: "payments-app:apps/Deployment:prod/api"
managers:
- argocd-controller
- kubectl-edit # uh oh
cub-scout reads this as:
$ cub-scout explain deploy/api -n prod
Resource: Deployment/api in prod
Owner: ConfigHub unit "payments-api" in space "payments" (label:confighub.com/UnitSlug)
Delivered via: Argo CD application "payments-app" (label:argocd.argoproj.io/instance)
Drift: Detected
Mutation cause: manual-edit (manager: kubectl-edit; controller co-signal: argocd-controller)
ConfigHub URL: https://hub.confighub.com/p/payments/u/payments-api (connected mode)
The classifier correctly identifies BOTH the source of truth (ConfigHub Unit) and the delivery path (Argo). The mutation cause is manual-edit despite the controller co-signal — that's the attribution layer's job.
confighub.com/UnitSlug annotation without the label: Some resources only get the annotation. cub-scout's second branch in detectConfigHubOwnership catches this. SpaceName is still read from annotations (not labels) for consistency.cub apply directly to the cluster (no Argo / Flux in the middle) leaves only confighub.com/UnitSlug on the resource. Ownership classifies as OwnerConfigHub; the controller writer is... whatever wrote it (often a kubectl-* form), which means cause=manual-edit even though the user intended a controlled apply. This is a known artifact of the cub apply path; #410/#428 triad work is the long-term fix.confighub.com/UnitSlug + argocd.argoproj.io/instance + app.kubernetes.io/managed-by: Helm. Detection priority: ConfigHub wins; controller co-signal recognizes argocd-controller. The Helm labels are an artifact of the chart, not evidence of a Helm-specific delivery.OwnerConfigHub with cause=unknown: Older clusters that stripped managedFields produce this — the unit slug is there but cub-scout can't tell who wrote the live state. The attribution layer emits cause=unknown with an OmissionManagedFields entry rather than guessing.pkg/agent/ownership.go detectConfigHubOwnership, pkg/agent/manager_strings.go controllerManagersForOwner(OwnerConfigHub, ...)confighub.com/UnitSlug, confighub.com/SpaceName, confighub.com/SpaceID, confighub.com/RevisionNumscout-observe — the umbrella ownership detectorscout-attribute — per-field attribution; recognizes ConfigHub-via-Argo and ConfigHub-via-Flux controller co-signalsscout-compare — compare three-way and compare source-truth use ConfigHub as the DRY layerscout-govern — history, impact, views resolve are ConfigHub-awarescout-verify — receipts add a confighub-unit:// subject in connected modeobserve-argocd, observe-flux — the delivery pathsexamples/argo-import-confighub-demo/, examples/flux-import-confighub-demo/, examples/connect-and-compare/cub operations and out of allowed-tools.OwnerConfigHub even when Argo / Flux labels are also present. Don't reverse the order.cub auth login. Standalone-mode users get correct ownership classification but no confighubUrl, no incomingBindings, no DRY/WET/LIVE compare. Surface this as an omission, not silent missing data.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (confighub/cub-scout) — no native marketplace selected
npx claudepluginhub p/confighub-cub-scout35 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./confighub-source-truthUse when the user wants a STRATEGY-TYPED, PILOT-ACCEPTANCE-SHAPED VERDICT about whether ConfigHub / controller / runtime agree under a declared delivery strategy — the `compare source-truth` workflow with the explicit `--strategy <name>` requirement. Natural phrasing: "give me a source-truth verdict for deploy/api", "verify under git-argo strategy that ConfigHub matches the cluster", "run the source-truth contract for upstream Pilot acceptance", "compare source-truth confighub-oci-flux strategy across the namespace", "produce strategy-relative correctness evidence", "show me where the strategy declaration is being violated". Composes `compare source-truth --strategy <s>` + the source-truth evidence contract + (optionally) `receipt verify --strategy <s>` for a fingerprinted version. Requires CONNECTED MODE. Do NOT load for: a single-resource live drift question without a declared strategy (use investigate-drift), a triage (use triage-unhealthy-workload), or a fleet-wide audit that doesn't need strategy framing (use audit-fleet-conformance). cub-scout NEVER infers a strategy — this skill enforces that boundary./cub-scoutUse when working in the cub-scout repo or when answering capability-assistant questions ("can cub-scout do X?", "should I use cub-scout or kubectl here?", "how does cub-scout differ from cub?"). This is the umbrella router — it points you at the verb-grouped scenario skills under `skills/scout-*/` and the workflow / observer / reference skills planned for batches 2–5. For a specific verb-group task (observe / diagnose / compare / attribute / adopt existing config / govern / integrate / verify) load the corresponding `scout-*` skill directly./investigate-driftUse when the user wants to compare live and desired state and inspect available manager and source evidence. Natural phrasing: "why is this Deployment different from the git manifest?", "which recognized manager is recorded for this path?", "controller-drift or interactive-manager evidence?", "compare three-way + attribution for deploy/api". Composes `compare three-way` + `compare drift` + the attribution layer (`cause` / `managerHint` / `gitSource` / `bindingSource`). Do NOT promise who changed the value or which manager wrote last: path-level manager evidence is not time-ordered, and resource-level `explain` evidence is not field-specific. Do NOT load for: a triage where the workload won't start (use triage-unhealthy-workload), pure inventory (use scout-observe), generating a fingerprinted evidence artifact (use scout-verify and the no-manual-edits-since predicate), or any mutating fix (cub-scout never mutates)./migrate-from-kubectlUse when the user is MIGRATING from ad-hoc `kubectl apply` toward GitOps (Argo / Flux / ConfigHub) — and needs to find the manual edits, decide what to do with each (revert / port to git / accept as canonical), and plan the transition. Natural phrasing: "find all the manual edits in this cluster", "we have years of kubectl-apply, help us move to GitOps", "which resources have been hand-edited?", "audit drift caused by humans not controllers", "port my cluster state to git", "show me everything kubectl-* has touched". Composes attribution layer (`cause: manual-edit`) + `map orphans` (resources without a controller owner) + `scan` (risk classification) + `snapshot` / `import --git-path` preview once a repo skeleton exists. Read-only throughout — the migration itself is user-driven. Do NOT load for: real-time triage (use triage-unhealthy-workload), single-resource drift question (use investigate-drift), a fleet conformance audit (use audit-fleet-conformance), or any mutating action.Other plugins' skills for the same job