AGENT SKILL

cub-scout

Use 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.

License 许可
MIT
最近更新
2026-11-14
Stars
★ 14
Forks
1

01 前言 Front Matter

name
cub-scout
phase
cross-cutting
description
Use 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.
allowed-tools
Bash(./cub-scout --help) Bash(./cub-scout help *) Bash(cub-scout --help) Bash(cub-scout help *) Bash(cub scout --help) Bash(cub scout help *)

02 资源文件 2

03 SKILL.md 正文

cub-scout (umbrella router)

This skill is the cross-cutting entry point. It picks the right verb-grouped skill for a user's question and explains the cub-scout / cub boundary. For specific tasks, load the scenario skill directly.

When to use

  • "Can cub-scout do X?" / "what can cub-scout observe / diagnose / compare?"
  • "How does cub-scout differ from cub / kubectl / Argo / Flux?"
  • "Should I use cub-scout or [other tool] for this?"
  • Anything in this repo where the verb group isn't obvious from the prompt
  • General capability-assistant or demo conversations

Do not load for

  • A specific verb-grouped task — load the corresponding scout-* skill directly:
  • ConfigHub authoring or any mutating workflow — load confighub/confighub-skills skills (cub-mutate, cub-apply, etc.)
  • Live cluster mutation — cub-scout never mutates; route to kubectl (user driven) or a cub skill

Capability map (verb groups → skills)

Group Skill Status
Observe scout-observe shipped (batch 1)
Diagnose scout-diagnose shipped (batch 1)
Compare scout-compare shipped (batch 1)
Attribute scout-attribute shipped (batch 1)
Govern scout-govern shipped (batch 2)
Adopt Existing Config scout-ingest shipped (batch 2)
Integrate scout-mcp shipped (batch 2)
Verify scout-verify shipped (batch 2, consuming the #446 receipt capability)

See skills/README.md for the full plan including controller observer skills (observe-argocd, observe-flux, observe-sveltos, observe-modelplane, observe-helm, observe-crossplane, observe-kro), workflow scenario skills (triage-unhealthy-workload, investigate-drift, audit-fleet-conformance, etc.), and shared references.

Pilot–cub-scout integration scenarios (#444)

The consumer-side complement: same cub-scout verbs framed around Pilot (the acceptance judge) rendering verdicts from cub-scout's evidence. Load one of these instead of a scout-* skill when the user's prompt is shaped as "Pilot, decide ..." or "render the verdict ...". #444 is complete: 9 scenarios shipped across batches A and B.

Scenario Skill Pilot consumes Pilot decides
Pre-deploy CD gate pilot-cd-gate compare source-truth --strategy <s> + optional receipt verify --fail-on any-non-pass PASS / WATCH / ASK / BLOCK on the release
Fleet-wide conformance pilot-fleet-conformance compare three-way --view + per-resource source-truth + fleet outliers Fleet verdict + per-resource breakdown
Drift classification pilot-patch-and-drift attribution evidence (cause / managerHint / gitSource / bindingSource) revert / quarantine / accept-as-canonical / ASK
Real-time watch response pilot-watch-alert-response cub-scout watch / cub-scout bot event stream with --emit-receipt-on inline receipts (v2 #463) Per-event PASS / WATCH / ASK / BLOCK
Incident close-out pilot-incident-evidence trace + explain + compare + bundle + history + audit + chained receipts (--input-attestation, v2 #463) Incident verdict + immutable evidence pack
Rollback decision pilot-rollback-decision history + impact + per-candidate receipt verify --at-commit <sha> chained into chosen-target receipt Rollback target SHA + safety verdict
Promotion gate pilot-promotion-gate compare three-way per variant + bindingSource graph diff + chained variant-A receipt Cross-variant PASS / WATCH / ASK / BLOCK with diff reasons
Compliance audit pilot-compliance-audit scope-wide source-truth + scan + audit list + per-resource saved receipts Compliance report (Compliant / with-caveats / Non-compliant / Insufficient-evidence) + fingerprinted evidence inventory
Release verification pilot-release-verification gitops status --with-confighub + compare three-way + history --since <deploy-time> + receipt evidence; summary.agreement and deliveryEvidence drive convergence signals Post-deploy PASS / WATCH (wait) / BLOCK / ASK

Product value in one breath

cub scout observes and explains; it never decides. It is the read-only Kubernetes and GitOps observer — it surfaces evidence about ownership, health, drift, and provenance, but it never mutates the cluster and never makes authority calls about what should be true. ConfigHub (driven by cub) is the authority; cub-scout is the witness.

cub scout is the preferred documented form. In this repo, use ./cub-scout ... for exact local commands.

Tool boundaries

Use cub scout for

  • Observe — doctor, map, trace, tree, scan, graph, snapshot, watch, bot, status
  • Diagnose — explain, debug, suggest-remedy, patterns, gitops status
  • Compare — compare drift, compare three-way, compare source-truth, compare <kind>/<name>
  • Attribute — read cause / managerHint / gitSource / bindingSource on compare and explain JSON
  • Adopt Existing Config (preview first) — import --dry-run, import --from-bundle, import --git-path, import parse-repo, import argocd, import cluster-aggregator
  • Govern (connected) — history, impact, fleet outliers, summary, views resolve, audit list, bundle inspect/diff/timeline, catalog list
  • Integrate — mcp serve, context-pack, bot
  • Verify — receipt verify / show / validate / list (typed, fingerprinted evidence; receipt verify <kind>/<name> --with-confighub can freeze object-correlated delivery evidence under predicate.evidence.deliveryEvidence)

Use cub for

  • ConfigHub intended-state workflows
  • spaces, units, targets, workers
  • cub variant upload (load already-rendered resources as units)
  • cub link list / get (the data feed for cub-scout's connected attribution layer)
  • Any mutation — cub is the writer side of the triad

Do not blur these

  • cub-scout import --git-path is a local structure / import-preview flow — it does not render manifests or upload to ConfigHub
  • cub variant upload ingests already-rendered resources and writes them as units — it renders nothing, and cub gitops discover / cub gitops import no longer exist (removed from cub 2026-07-25, #573)
  • SDK renderers are an implementation detail for cub, not an implied cub-scout feature
  • Attribution evidence on compare / explain JSON is read-only enrichment — never implies a write

High-signal shipped capabilities

  • Attribution layer (#435 — A1+A1.5+A2 in #437, C1 in #438, C2 in #439, stage B in #440): cause + managerHint + gitSource{repoUrl,revision,path,file,line} + bindingSource on every field mismatch. See scout-attribute.
  • Source-truth contract (#393 + #418): compare source-truth with Phase 1 + Phase 2 strategies (9 total).
  • Views integration (#391): views resolve, views open, views project --with-reality, compare three-way --view.
  • doctor / explain with --presentation and --hint-mode.
  • MCP gateway (mcp serve): standalone + connected tool sets, including gitops_status for GitOps delivery and controller-coverage evidence.
  • ConfigHub delivery evidence: gitops status --with-confighub, doctor --with-confighub, map activity --with-confighub, trace --with-confighub, explain --with-confighub, and single-resource receipt verify --with-confighub add bounded release history, unit events, live-status freshness, and event-consumer health. doctor adds a scope-level delivery rollup, map activity renders the evidence as timeline rows, and receipts freeze object-correlated snapshots as fingerprint-covered supporting evidence.
  • Controller-family coverage: gitops status emits controllerCoverage[] for Flux, Argo CD, ConfigHub, Sveltos, and Modelplane so absence and RBAC/API omissions stay distinguishable.
  • Stage B back-resolution (#440): compare three-way --source-path <local-checkout> populates gitSource.file:line for raw YAML manifests.
  • Receipt capability (#446 — v1 complete; #454 + #455 + #456): typed, fingerprinted, immutable evidence artifacts wrapping cub-scout evidence into an in-toto Statement v1 envelope. Three predicates: applied-matches-spec, source-truth-pass, no-manual-edits-since. verify / show / validate / list + local store with immutable canonical filenames. See scout-verify.

Read first (for capability-assistant work)

  1. AI-README-FIRST.md — cold-start guide, current shipped capabilities, current open queue
  2. HANDOVER.md — latest execution snapshot
  3. README.md § "Capability Map" — the eight verb groups
  4. docs/reference/commands.md — exact command surface
  5. docs/reference/json-contracts.md — JSON shapes
  6. references/capability-assistant.md (in this directory) — the original capability-assistant profile, kept for back-compatibility

Verification rule

Do not invent command surfaces.

Verify from local help before claiming capability. help <command> is the auto-approved form. <command> --help is not: a wildcard grant for it would also admit import -y --audit-reason --help, where --help is the flag's value and the import runs:

./cub-scout --help
./cub-scout help doctor
./cub-scout help explain
./cub-scout help compare three-way
./cub-scout help compare source-truth
./cub-scout help import
./cub-scout help views
./cub-scout help mcp serve

When the workflow crosses into ConfigHub:

cub variant upload --help
cub k8s --help
cub link --help
cub link list --help

Safety rule (read-only triad lock — #410 / #428)

  • cub-scout is cluster read-only by default
  • connected import writes inventory / state to ConfigHub, not cluster manifests
  • prefer preview or dry-run paths first
  • attribution evidence is enrichment, never mutation
  • suggest-remedy describes a fix; it does not apply it (the executor was removed in #428)

Authoring guidance for new skills

When adding skills under skills/, follow:

  • skills/SKILL_TEMPLATE.md — the canonical template (cub-scout, read-only variant)
  • The read-only-triad invariant — no mutating patterns in allowed-tools, ever
  • Standalone-first worked examples; connected-mode is the enrichment
  • CI-tool-neutral wording — no GitHub Actions / GitLab CI / Jenkins-specific syntax committed

04 同仓库更多 Skills

confighub
confighub/cub-scout

triage-unhealthy-workload

Use when the user is responding to a broken Kubernetes workload UNDER TIME PRESSURE — pager-going-off, CI-red, "prod is down" framing. Natural phrasing: "deploy/api is CrashLoopBackOff, what now?", "the rollout is stuck, help", "this pod won't start", "pager fired on payments", "everything is red in argocd", "what should I check first?", "give me a triage plan for this workload". Composes doctor → explain → trace into a tight ~30-second loop the operator can run in a pager-acknowledged context. Do NOT load for: a planned investigation without urgency (use scout-diagnose directly), a drift question (use investigate-drift), or anything mutating (cub-scout never mutates — route to kubectl with the user driving).

运维与部署
★ 14
confighub
confighub/cub-scout

scout-verify

Use when the user wants a TYPED, FINGERPRINTED, IMMUTABLE evidence artifact about a Kubernetes resource — the Verify verb group of cub-scout (the receipt capability shipped in #446). Natural phrasing: "produce a receipt that this is in compliance", "give me an attestation that the cluster matches Git", "I need a verifiable record for the audit trail", "build a receipt verifying no manual edits since deploy", "verify deploy/api against source-truth and save the artifact", "validate this receipt has not been tampered with", "show me what receipts we have", "is this receipt tampered with?", "attach evidence to my CI gate". Load whenever intent is receipt / attestation / evidence-artifact / tamper-evident-record / verified-record / audit-trail / postmortem-evidence / acceptance-judge-input. Do NOT load for: a live comparison without a persisted artifact (use scout-compare), interpreting a single field's provenance (use scout-attribute), or actually applying a fix (cub-scout never mutates — route to cub / argocd / kubectl with the user driving).

运维与部署
★ 14
confighub
confighub/cub-scout

scout-observe

Use when the user wants to SEE what is running in a Kubernetes cluster, who owns it, and how it is structured — the read-only Observe verb group of cub-scout. Natural phrasing: "what is running in my cluster?", "give me a map of resources", "who owns this Deployment?", "trace this back to its source", "show me the ownership tree", "scan this cluster for risk", "dump the cluster as JSON", "stream cluster events", "run cub-scout as a bot", "what is the connection status?", "is this cluster healthy?". Load when intent is observe / inventory / map / show / list / trace / scan / dump / stream / bot / health-check over a Kubernetes cluster. Do NOT load for: explaining WHY something is broken (use scout-diagnose), comparing cluster state to intended state (use scout-compare), provenance of individual field values (use scout-attribute), or any action that mutates the cluster (cub-scout never mutates — route to cub or kubectl with the user driving).

★ 14
confighub
confighub/cub-scout

scout-mcp

Use when the user wants to expose cub-scout to an AI agent over MCP, wants a deterministic AI-ready snapshot of cluster context, or wants cub-scout running as a read-only event bot — the Integrate verb group. Natural phrasing: "start the MCP server", "expose cub-scout to Claude / Codex / my agent", "give me an AI-ready context pack of this cluster", "set up the MCP gateway", "what MCP tools does cub-scout expose?", "run cub-scout as a bot", "produce JSON context for an LLM to reason about this cluster". Load whenever intent is mcp / mcp-gateway / mcp-serve / context-pack / bot / agent-context / ai-snapshot / llm-context / model-context-protocol. Do NOT load for: actually running a non-integrate verb (those are scout-observe / scout-diagnose / scout-compare / scout-attribute / scout-ingest / scout-govern / scout-verify), or `cub` MCP integration (that's a separate tool surface).

Skill与智能体开发
★ 14
confighub
confighub/cub-scout

scout-ingest

Use when the user wants to ADOPT existing Kubernetes / GitOps workload structure into ConfigHub after observing the live cluster — the adoption/import verb group of cub-scout. Natural phrasing: "discover workloads in this cluster and propose ConfigHub units", "show me the import proposal before I apply", "import this Argo Application set", "bring my Flux Kustomizations into ConfigHub", "preview what would land in ConfigHub if I imported this repo", "parse my git repo as a ConfigHub import bundle", "import a cluster aggregator", "what would --git-path produce for this repo?". Load whenever intent is adopt / import / ingest / preview / propose / parse-repo / discovery / aggregator / bring-into-confighub / what-would-confighub-see. Do NOT load for: questions about who changed a resource, whether it was edited by hand or drifted (use scout-attribute or investigate-drift); reading an exported `kubectl get -o yaml` dump to answer a question about the cluster (that is not an import); basic live-cluster inventory (use scout-observe), troubleshooting (use scout-diagnose), comparing live state to ConfigHub (use scout-compare), or the actual write to ConfigHub via `cub variant upload` (that is `cub`, not cub-scout — route to cub skills). Important: `cub-scout import apply` IS the mutating write into ConfigHub — this skill teaches the read-only preview path and explicitly refuses to invoke `import apply` itself.

★ 14
confighub
confighub/cub-scout

scout-govern

Use when the user wants to consume CONNECTED ConfigHub governance signals from cub-scout — the Govern verb group. Natural phrasing: "show me the ChangeSet history for this unit", "what is the blast radius if I change this unit?", "which clusters in my fleet are outliers?", "show me yesterday's connected summary", "render this view across the fleet", "audit who changed this", "where did the last apply come from?", "list ConfigHub bundles I have", "show me the catalog of past snapshots". Load whenever intent is history / impact / blast-radius / fleet-outliers / summary / view / audit / bundle / catalog / connected-context. Do NOT load for: live cluster comparison (use scout-compare), receipts (use scout-verify), inventory of running pods (use scout-observe), or any mutation via cub. Most of this skill requires `cub auth login` — say so upfront.

★ 14