/cub-scout:scout-observefrom cub-scout
Read-only Kubernetes cluster observation: map resources, trace ownership, scan for risk, dump state, stream events, and check health using cub-scout commands.
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 Observe verb group of cub-scout. Ten commands that show what is running in a cluster and who owns it — without modifying anything.
Explicit phrasings:
Implicit intents the skill should catch:
scout-diagnose insteadscout-comparescout-attributecub, kubectl (user driven), or another tooldoctor, map, trace, tree, scan, graph, snapshot, watch, bot, status need only your current kubectl context or in-cluster service account.cub auth login): trace --with-confighub, explain --with-confighub, and single-resource receipt verify --with-confighub can attach object-correlated ConfigHub delivery evidence; map activity --with-confighub adds bounded release, live-status, and event-consumer timeline rows; status shows ConfigHub session detail; scan can correlate findings with units.scan --file <path> audits manifests without a cluster; bundle inspect reads recorded debug bundles.cub-scout doctor, cub-scout map list / workloads / orphans / activity / hooks / meaning, cub-scout trace, cub-scout tree, cub-scout scan, cub-scout graph, cub-scout snapshot, cub-scout status (in all three invocation forms: cub-scout, ./cub-scout, cub scout). Plus kubectl get/describe/logs, kubectl version, kubectl config current-context / get-contexts. cub-scout watch and cub-scout bot are Observe verbs too, but are not auto-approved: its --webhook flag sends events to any URL, so the host asks each time; kubectl config view is left out because --raw prints credentials. Never the broad cub-scout * wildcard — that would grant demo (kubectl-applies), import apply (writes to ConfigHub), and compare --suggest --apply (writes to ConfigHub).kubectl apply/edit/patch/delete/scale/rollout/exec, kubectl debug (privileged debug pods), any cub * create/update/delete.scout-diagnose: Observe shows what is there; Diagnose interprets why it looks the way it does and recommends next steps. The two often chain: Observe to map, then Diagnose to interpret.Pick by the question being asked:
| Question | Verb | Notes |
|---|---|---|
| "Is this cluster healthy at a glance?" | cub-scout doctor | One-screen health summary, with --presentation human|ai|paired and --hint-mode default|beginner|operator |
| "What's in this cluster, grouped by ownership?" | cub-scout map (interactive TUI) | Sub-commands: map list, map hooks, map activity, map orphans, map meaning |
| "What happened recently in delivery/status feedback?" | cub-scout map activity --with-confighub --confighub-space <space> | Timeline rows for controller activity, Kubernetes events, ConfigHub releases, live-status writeback, event-consumer health, and omissions |
| "Can I keep the exact delivery/status observation for review?" | cub-scout receipt verify <kind>/<name> -n <ns> --with-confighub --confighub-space <space> | Fingerprint-covered predicate.evidence.deliveryEvidence on a single-resource receipt |
| "Trace this workload back to its Git / OCI source" | cub-scout trace <kind>/<name> -n <ns> | Walks Deployment → Application → Git or Deployment → HelmRelease → GitRepository |
| "Show me the runtime + ownership + git hierarchy" | cub-scout tree | Multi-axis composition view |
| "Scan for risk patterns" | cub-scout scan | 46 built-in patterns. Variants: --state, --kyverno, --lifecycle-hazards, --timing-bombs, --dangling, --file <yaml> |
| "Export the resource graph" | cub-scout graph export | DOT / JSON for downstream tools |
| "Dump the cluster as GSF JSON" | cub-scout snapshot | Stable snapshot for AI / agent / audit; includes top-level observation metadata |
| "Stream observation events" | cub-scout watch -n <ns> [--webhook url] | Webhook / file sinks, namespace / owner / severity filters; events include observation metadata |
| "Run an in-cluster observer bot" | cub-scout bot --webhook <url> | Same event shape as watch, with env-var configuration for Kubernetes manifests and per-event observation metadata |
| "What mode am I in? Connection / cluster info" | cub-scout status | Standalone vs connected, context, cluster details |
Snapshot-style verbs that support --format json emit deterministic JSON for
agents. map list --format json, snapshot, watch, and bot also expose
point-in-time observation.source/mode/observedAt/freshness metadata so agents
can avoid confusing a stale artifact with a fresh read.
trace over map if the question is about one resource's lineage).--format json../cub-scout ... in the local repo; cub-scout ... standalone; cub scout ... plugin-form. All three accept the same flags.doctor → top-level health, top issues, next-step hintsmap → resource list with owner + namespace + health columnstrace → ownership chain (controller → source → repository → commit)scan → findings list with severity + pattern + resourcesnapshot / graph export → bulk JSON for downstream toolingscout-diagnose. If they need to compare against intent, route to scout-compare. If they need to act, refuse and route to cub skills or kubectl with the user driving.User: "Map the boutique namespace and show me which Deployments are managed by Argo."
$ cub-scout map list -n boutique --format ascii
NAME KIND OWNER SOURCE HEALTH
frontend Deployment Argo CD apps/prod/boutique/frontend Ready
catalog Deployment Argo CD apps/prod/boutique/catalog Ready
checkout Deployment Flux flux-system/Kustomization/boutique-checkout Ready
redis StatefulSet Native - Ready
Read off: 2 Argo-managed Deployments, 1 Flux-managed, 1 native (no GitOps controller). The output is enough for the user to drill into any single resource with trace deploy/frontend -n boutique (which is still in scope for this skill) or jump to scout-diagnose if they want to know why a status is what it is.
For agents:
$ cub-scout map list -n boutique --format json | jq '[.[] | {name, owner, source}]'
[
{"name": "frontend", "owner": "Argo CD", "source": "apps/prod/boutique/frontend"},
{"name": "catalog", "owner": "Argo CD", "source": "apps/prod/boutique/catalog"},
{"name": "checkout", "owner": "Flux", "source": "flux-system/Kustomization/boutique-checkout"},
{"name": "redis", "owner": "Native", "source": null}
]
doctor, map, scan, trace, explain, gitops_status, gitops_settings, release_check) are exposed as MCP tools via cub-scout mcp serve. See references/mcp-tool-catalog.md for the full per-tool catalog (8 standalone + 13 connected, verified against cmd/cub-scout/mcp.go). Note: not every CLI verb is an MCP tool — e.g., tree, graph, snapshot, watch, bot, status are CLI-only.nextSteps[] structured hints (where supported): every entry has actionType: read-only — mutating actionType is rejected at every cub-scout emit point.README.md § Observedocs/reference/commands.mddocs/reference/json-contracts.mdreferences/read-only-triad.md (batch 5)references/standalone-vs-connected.md (batch 5)map list --format json, snapshot, watch,
and bot declare this with observation metadata. For a durable,
fingerprinted record of "what cub-scout observed at time T", use the Verify
verb group (cub-scout receipt verify) — see
scout-verify.managedFields is missing or stripped from the live object, ownership detection still works (via labels + annotations) but per-field attribution falls back to resource-level. See references/kubernetes-managedfields.md for the data substrate notes.watch and bot verbs run indefinitely until interrupted; agents should pass --once or a time bound. Streaming receipts use --emit-receipt-on, with per-poll backpressure from --emit-receipt-batch-cap.cub skill in confighub/confighub-skills or to direct kubectl with the user's hands on the keyboard.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