/cub-scout:observe-argocdfrom cub-scout
Observes Argo CD-managed resources: traces Applications and ApplicationSets, explains sync status, tracking-id annotations, and the CSA migration default. Uses kubectl and argocd CLI via cub-scout.
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 Argo CD. Documents the exact labels / annotations / manager strings Argo writes, how cub-scout's ownership detector classifies Argo-managed resources, and the edge cases (CSA migration, tracking-id format, ApplicationSet generators).
This skill is verified against pkg/agent/ownership.go detectArgoOwnership and pkg/agent/manager_strings.go ManagerArgoCD — the constants are the single source of truth for what Argo writes.
kubectl-client-side-apply writer"argocd.argoproj.io/tracking-id annotation mean?"scout-observe walks all detectorsscout-compareobserve-fluxdetectArgoOwnership)cub-scout classifies a resource as Argo-owned when ANY of these labels / annotations is present, in priority order:
| Signal | Source field | Confidence | Notes |
|---|---|---|---|
argocd.argoproj.io/tracking-id annotation | annotation | medium | Primary signal. Value is <app-name>:<group>/<kind>:<namespace>/<name>; cub-scout reads the leading <app-name>. Argo CD writes it under the annotation (default) and annotation+label tracking methods (argocd-cm application.resourceTrackingMethod), so when present it names the owning Application, and an instance label that disagrees is stale or copied (#628). An empty or malformed tracking-id falls through to the labels. |
argocd.argoproj.io/instance label | label | medium | Label tracking, used when there is no usable tracking-id. Value is the Application name. |
app.kubernetes.io/instance label | label (fallback only) | medium | Only used when argocd.argoproj.io/instance is present but empty. |
Resulting Ownership: Type=argo, SubType=application, Name=<application-name>.
metadata.managedFields)Argo writes through Server-Side Apply with two possible manager strings:
| Manager | Source | Meaning |
|---|---|---|
argocd-controller | upstream common.ArgoCDSSAManager | Modern Argo CD application-controller SSA writes. The expected and unambiguous case. |
kubectl-client-side-apply | upstream kubectl/FieldManagerClientSideApply | Argo's CSA migration default — Argo writes with this string during the client-side-apply → server-side-apply migration. This is ALSO the bare kubectl apply default, so the string alone is ambiguous. |
When metadata.managedFields carries kubectl-client-side-apply and there's no other Argo signal, the writer is ambiguous: it could be Argo CSA-migration or a human running kubectl apply (no --server-side).
cub-scout disambiguates via the owner co-signal (in IsControllerManagerFor):
kubectl-client-side-apply → controller-drift (Argo CSA migration default)kubectl-client-side-apply → manual-edit (a human ran kubectl apply)Same string, opposite verdicts. This is why ownership detection must run before attribution classification — see scout-attribute for the full classification rule.
When an Application was generated by an ApplicationSet (git generator, list generator, cluster generator, matrix generator), the parent Application label argocd.argoproj.io/instance still identifies it. cub-scout's git source tracer (pkg/agent/argo_trace.go) reads the Application spec and resolves the git path back to the generator's directories[].path pattern when applicable. ApplicationSet import is also supported by cub-scout import argocd — see scout-ingest.
The full ApplicationSet generator coverage:
directories[].path patterns including !excludeapps/team-a/api and services/team-a/api don't collide$ kubectl get deploy api -n prod -o yaml | yq '.metadata.labels, .metadata.annotations, .metadata.managedFields[].manager'
labels:
argocd.argoproj.io/instance: payments-api
app: api
annotations:
argocd.argoproj.io/tracking-id: "payments-api: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: Argo CD application "payments-api" (label:argocd.argoproj.io/instance)
Drift: Detected
Mutation cause: manual-edit (manager: kubectl-edit; controller co-signal: argocd-controller)
The classifier sees the Argo controller co-signal AND an interactive writer (kubectl-edit) → cause is manual-edit (someone bypassed Argo). See scout-attribute for the full classification semantics.
confighub.com/UnitSlug) delivered through Argo will have BOTH the ConfigHub label and the Argo signals. cub-scout treats this as OwnerConfigHub (ConfigHub detection runs before Argo detection); the Argo writer is then accepted as a valid controller co-signal for ConfigHub. See observe-confighub-managed.argocd.argoproj.io/instance label: cub-scout falls back to app.kubernetes.io/instance only when the Argo-specific label is present-but-empty. A pure app.kubernetes.io/instance label without any Argo signal does NOT classify as Argo-owned.argocd.argoproj.io/tracking-id without a : separator is tolerated; cub-scout uses the whole string as the Application name. Empty tracking-id is rejected.pkg/agent/ownership.go detectArgoOwnership, pkg/agent/manager_strings.go ManagerArgoCD + controllerManagersForOwner(OwnerArgo, ...), pkg/agent/argo_trace.goargoproj/argo-cd common.ArgoCDSSAManager<app-name>:<group>/<kind>:<namespace>/<name>)scout-observe, scout-attribute, scout-compare, observe-confighub-managed, observe-fluxexamples/argo-import-confighub-demo/, examples/drift/mutation-cause-attribution/argocd app sync, argocd app patch, argocd app delete are NOT in the allowed-tools — those are mutations and belong to the user driving Argo CLI directly.scout-ingest; this skill is about observing the resulting Application-managed workloads in the cluster.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