/cub-scout:observe-nativefrom cub-scout
Observes native Kubernetes resources that cub-scout couldn't classify under a specific controller. Covers K8s-native chains (ReplicaSet under Deployment) and genuinely unowned resources (kubectl-applied without GitOps).
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 native Kubernetes resources — anything cub-scout's ownership detector couldn't classify under one of the controller-specific owners. Two distinct populations live here: K8s-native chains (a ReplicaSet under a Deployment, etc.) detected via OwnerReferences, and genuinely-unowned resources (a kubectl apply -f of a Deployment with no GitOps controller behind it).
Verified against pkg/agent/ownership.go detectK8sOwnership and the terminal Ownership{Type: OwnerUnknown} return.
OwnerReferences-only ownership mean?"kubectl apply -f resource without any GitOps controller?"observe-* skillscout-observe walks all detectorscub-scout's ownership detector ends with two terminal classifications:
OwnerType = k8s — native K8s chainWhen detectK8sOwnership finds a non-empty metadata.ownerReferences list, the resource is classified as OwnerType=k8s (OwnerKubernetes constant). The owner-reference parent's Kind and Name populate the Ownership fields. This is the normal state for child resources in a K8s-native chain:
ReplicaSet owned by a DeploymentPod owned by a ReplicaSet (or DaemonSet, StatefulSet, Job)Job owned by a CronJobThe owner is genuinely "Kubernetes" in the sense that the K8s built-in controllers (deployment-controller, replicaset-controller, etc.) are doing the reconciliation. cub-scout has no labels to dig into — the owner-reference IS the evidence.
OwnerType = unknown — no owner detectedWhen every detector returned empty AND there are no ownerReferences, the resource lands in OwnerType=unknown with no other fields populated. This is the "I genuinely don't know who owns this" classification — typically:
kubectl apply -f deployment.yaml to an empty namespace, no GitOps controllerkubectl create of an ad-hoc resourcecub-scout does NOT guess at this point. parse, don't guess is the v0.5 invariant — unknown is an honest answer, not a failure.
detectK8sOwnership + terminal fallthrough)| Trigger | Resulting Type | Notes |
|---|---|---|
metadata.ownerReferences[] non-empty | OwnerKubernetes ("k8s") | The owner-reference parent's Kind and Name populate Ownership.SubType / Ownership.Name. |
| Every other detector returned empty AND no ownerReferences | OwnerUnknown ("unknown") | The terminal fallthrough. |
detectK8sOwnership is the LAST controller-specific detector in DetectOwnership's priority chain; the unknown fallthrough is the very last step.
controllerManagersForOwner(OwnerKubernetes, ...) returns nil — there is no controller manager string that signals "this is K8s native." The classifier therefore cannot return controller-drift for these resources. The two possible attribution outcomes:
kubectl-edit, kubectl-patch, kubectl-apply, etc.): cause=manual-editmanagedFields empty / stripped): cause=unknownThis is intentional. A kubectl apply -f resource is genuinely written by the operator; calling that controller-drift would mask the human in the loop. And without any controller's signature in managedFields, cub-scout cannot honestly claim "the controller is reconciling" — there's no controller.
ReplicaSet owned by Deployment$ kubectl get rs api-7b8d9c5f -n prod -o yaml | yq '.metadata.ownerReferences, .metadata.managedFields[].manager'
ownerReferences:
- apiVersion: apps/v1
kind: Deployment
name: api
uid: ...
managers:
- kube-controller-manager
cub-scout reads this as:
$ cub-scout explain rs/api-7b8d9c5f -n prod
Resource: ReplicaSet/api-7b8d9c5f in prod
Owner: Kubernetes Deployment "api" (ownerRef)
Drift: None expected (K8s native control)
kubectl apply$ kubectl get deploy adhoc -n default -o yaml | yq '.metadata.labels, .metadata.annotations, .metadata.ownerReferences, .metadata.managedFields[].manager'
labels: {}
annotations: {}
ownerReferences: []
managers:
- kubectl-client-side-apply
cub-scout reads this as:
$ cub-scout explain deploy/adhoc -n default
Resource: Deployment/adhoc in default
Owner: Unknown (no GitOps labels, no ownerReferences, no managed-by signal)
Drift: N/A (no controller; cannot reconcile)
Last writer: kubectl (manager: kubectl-client-side-apply)
map orphans)cub-scout map orphans surfaces resources that had a controller and lost it — the GitOps-equivalent of OwnerType=unknown for resources that used to be classifiable. The verb walks for stale labels:
argocd.argoproj.io/instance but no matching Application in the clusterkustomize.toolkit.fluxcd.io/name but no matching Kustomizationcrossplane.io/composite but no matching XRThese are different from OwnerType=unknown (no signal at all) — they're OwnerType=<controller> with a broken upstream. The orphan verb's output is the field guide for cleanup; see scout-observe for the map-orphans flow.
The native population is the floor of the ownership distribution. A healthy GitOps cluster has very few OwnerType=k8s workloads (they're typically just child ReplicaSets and Pods, which is fine) and even fewer OwnerType=unknown workloads (which are usually a smell — adhoc applies that nobody reconciles).
When cub-scout doctor reports a high unknown count, that's a signal:
Either way, the user needs to investigate, not paper over it with a different classification.
OwnerType=k8s with weird OwnerKind: A custom CRD's ownerReference can land here (if no other detector matched it first). E.g., kind=MyCustomCRD apiVersion=mycompany.com/v1. cub-scout records SubType=mycustomcrd and surfaces it; the user has to know what MyCustomCRD means.managedFields: Some admission webhooks strip metadata.managedFields after applying their own changes. A native resource with stripped managedFields can't be attributed — cause is unknown, with OmissionManagedFields recorded.OwnerType=unknown with kubectl-client-side-apply: Same string Argo's CSA-migration default uses, but without an Argo signal. cub-scout treats this as manual-edit — a human ran kubectl apply. See the disambiguation rule in observe-argocd.app.kubernetes.io/managed-by: Helm and no instance label: Detected as OwnerHelm release="" (empty name). NOT native. The Helm label is enough to trigger the Helm detector before fallthrough.detectCustomOwnership): If the user has configured a custom ownership detector (see examples/custom-ownership-detectors/), it runs AFTER all built-ins but BEFORE detectK8sOwnership and the unknown fallthrough. A custom detector can claim resources that would otherwise land here.pkg/agent/ownership.go detectK8sOwnership + the Ownership{Type: OwnerUnknown} terminal, pkg/agent/manager_strings.go interactiveManagers enumerationscout-observe — map orphans and the umbrella ownership detectorscout-attribute — cause=unknown semanticsobserve-argocd, observe-flux, observe-sveltos, observe-modelplane, observe-helm, observe-crossplane, observe-kro, observe-confighub-managed — the controller categories that classify ABOVE nativeexamples/custom-ownership-detectors/argocd.argoproj.io/instance) is a mutation and out of allowed-tools — user-driven.OwnerType=unknown is not a failure mode. It's an honest answer. Don't pressure-classify it into a known owner without evidence.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.Other plugins' skills for the same job