/cub-scout:scout-diagnosefrom cub-scout
Interprets Kubernetes cluster state and suggests next steps using cub-scout commands. Use for explaining resources, diagnosing failures, checking GitOps health, and recommending remedies without applying changes.
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 Diagnose verb group of cub-scout. Five commands that interpret what's in the cluster and produce next-step guidance — without applying any fix.
Explicit phrasings:
Implicit intents:
scout-observe) and wants to know why it looks that wayscout-observescout-comparescout-attributesuggest-remedy describes a fix; it does not execute it. Route to cub, kubectl (user driven), or another toolexplain, debug, suggest-remedy, patterns, gitops status all work against your current kubectl context.cub auth login): explain --with-confighub, trace --with-confighub, and single-resource receipt verify --with-confighub add optional object-correlated delivery evidence; doctor --with-confighub adds a scope-level delivery rollup; map activity --with-confighub adds bounded release, live-status, and event-consumer timeline rows; three-way disagreement gets a dedicated section.patterns detect --file <yaml> runs the pattern engine against a manifest; suggest-remedy works against scan findings without a live cluster.kubectl get/describe/logs/get events, argocd app get, flux get. These are the read-only diagnostic surfaces the skill may invoke for context.kubectl apply/edit/patch/delete/exec, argocd app sync/refresh (as mutation), flux reconcile (mutating), cub * create/update/delete, any --dry-run=false carve-out.suggest-remedy is read-only: the original command was renamed from remedy in #428; the mutating executor was deleted. The command describes a fix that would resolve the finding — it does not run it. cub-scout no longer has a non-dry-run path.| Question | Verb | Notes |
|---|---|---|
| "Explain this one resource" | cub-scout explain <kind>/<name> -n <ns> | Plain-English ownership + lineage + health + drift + next steps. Supports --presentation human|ai|paired and --hint-mode default|beginner|operator. |
| "Walk me through a GitOps debug" | cub-scout debug | Guided wizard for the common failure modes |
| "Suggest a fix for this scan finding" | cub-scout suggest-remedy <finding-id> | Read-only — describes the patch, does not apply. Legacy remedy accepted as an alias. |
| "Match the cluster against known patterns" | cub-scout patterns detect / patterns explain / patterns list | The pattern engine. Works on cluster, file, or bundle. |
| "Is GitOps healthy?" | cub-scout gitops status | Pipeline health for Flux + Argo: stuck reconciles, source errors, applyset drift |
| "Did delivery feedback report back, and what happened recently?" | cub-scout map activity --with-confighub --confighub-space <space> | Timeline view across controller activity, Kubernetes events, ConfigHub releases, live-status freshness, event-consumer health, and omissions |
| "Can I preserve this delivery/status evidence?" | cub-scout receipt verify <kind>/<name> -n <ns> --with-confighub --confighub-space <space> | Single-resource receipt with fingerprint-covered predicate.evidence.deliveryEvidence |
All five verbs emit --format json for agents.
cub-scout explain <kind>/<name> -n <ns>. If they have a scan finding ID, lead with cub-scout suggest-remedy <id>. If they're at "something feels off across the cluster", lead with cub-scout doctor (from scout-observe) and then drill in.explain and doctor both emit nextSteps[] — each hint has an actionType (read-only / waiting / human-decision; mutating is rejected on emit) and a nextCommand. Use those hints to drive the next invocation.cub-scout patterns detect produces a structured match against the 46 built-in patterns.cub skills in confighub/confighub-skills; direct manifest fixes go to kubectl edit with the user driving; if the divergence might be drift vs reconciliation, route to scout-compare for the connected three-way view.User: "deploy/api in prod is CrashLooping. What's going on?"
$ cub-scout explain deploy/api -n prod --hint-mode operator
Deployment/api in prod:
Owner: Argo CD (Application: payments-api, source: https://github.com/org/repo @ apps/prod/api)
Source: Git
Deployed via: argocd-controller
Health: Degraded (1/3 replicas Ready)
Risks: CrashLoopBackOff on container "api" (3 restarts in last 5m)
Drift: Not checked (standalone mode)
Notes:
- Recent events: Warning BackOff (3x, 5m) kubectl: Back-off restarting failed container
Try next (read-only):
→ cub-scout patterns detect --resource Deployment/api -n prod
→ kubectl logs -n prod deploy/api --previous --tail=100
The user can follow the structured hints — both read-only — without ever needing to apply, edit, or sync.
When cub auth login is set up, the same explain command also includes a THREE-WAY STATUS block:
THREE-WAY STATUS (connected)
ConfigHub revision 42 → controller revision 42 → cluster revision 42 (agreed)
Conclusion: not a drift problem. Investigate the workload itself.
This disambiguates "is this CrashLoop a workload bug, or is the controller still rolling out an old revision?" — connected mode tells you the revisions agree, so the failure is in the workload, not the GitOps loop.
For agents:
$ cub-scout explain deploy/api -n prod --format json | jq '.nextSteps[]'
{
"actionType": "read-only",
"reason": "CrashLoop suggests application-level failure, not drift; inspect logs",
"nextCommand": "kubectl logs -n prod deploy/api --previous --tail=100",
"nextSurface": "kubectl"
}
nextSteps[] with actionType ∈ {read-only, waiting, human-decision}. Mutating actionType is rejected at every cub-scout emit point.README.md § Diagnosedocs/reference/commands.mdnextSteps)suggest-remedy): #410 / #428suggest-remedy describes; it does not apply. If a user asks to run the suggested fix, refuse and route them to the appropriate skill (cub for ConfigHub-authored changes; kubectl with the user driving for direct edits). The original remedy executor was deleted in #428.actionType: mutating is structurally impossible — the emitter rejects it. Any "next step" from this skill is safe to read and follow without risk of accidental mutation.explain returns the evidence gap honestly rather than guessing. Don't synthesize a recommendation from absence.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