/cub-scout:prepare-for-confighubfrom cub-scout
Previews what a ConfigHub import would produce from existing live Kubernetes and GitOps state (Argo ApplicationSets, Flux Kustomizations, or manifest repos) without committing. Read-only adoption preview.
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 adoption-preview loop. The user has existing live K8s + GitOps state and wants to KNOW what a ConfigHub import would produce before committing. Start from the live cluster when possible; use local repo parsing only when the manifest repository itself is under review. This skill is the preview flow — every verb is read-only, and import apply (the mutating write) is explicitly out of band. The user runs that themselves after reviewing the proposal.
Explicit phrasings:
payments-api"--git-path import for this repo"Implicit intents:
cub-scout import apply) — that's user-driven, not in this skill's allowed-toolsaudit-fleet-conformancescout-compare (specifically compare three-way)cub variant upload) — that's cub, not cub-scout. Route to confighub/confighub-skills.import --dry-run -n <ns>)? Cluster Argo Applications (import argocd)? Multi-cluster snapshot (import cluster-aggregator)? Local git repo (--git-path <dir>)? Pick the verb.--json if the output feeds a PR-bot or a CI check.cub-scout import ... --json > proposal.json gives reviewers a deterministic proposal without writing ConfigHub state.cub-scout import apply --space <s> themselves. cub-scout's prepare-for-confighub skill never invokes apply.| Source | Verb | Notes |
|---|---|---|
| Live namespace or cluster | cub-scout import --dry-run -n <namespace> --json | First adoption path. Reads current workloads, ownership, and labels before any write. |
| Local git checkout | cub-scout import --git-path <repo> --dry-run --json | Advanced path. Classifies kustomize / helm / raw manifests; emits proposed slugs + spaces + targets without upload or render. |
| Existing Argo Applications | cub-scout import argocd --space <s> | Reads Argo state from the cluster, proposes one ConfigHub unit per Application. Preserves ApplicationSet generator origin as hierarchy. |
| Multi-cluster bundle | cub-scout import cluster-aggregator --space <s> | Aggregator-pattern. Aggregates per-cluster snapshots into a single ConfigHub proposal. |
| Just structure parsing | cub-scout import parse-repo <repo> | Lower-level. Extracts ApplicationSet directories, helm chart paths, kustomization roots. Used as a primitive. |
The verbs are preview by default. None of them write to ConfigHub.
Git-path preview (most common):
$ cub-scout import --git-path ./platform-config --dry-run --json | jq '.'
{
"units": [
{"slug": "apps-prod-api", "path": "apps/prod/api", "kind": "Deployment", "rendererHint": "kustomize", "confidence": "high"},
{"slug": "apps-prod-worker", "path": "apps/prod/worker", "kind": "Deployment", "rendererHint": "kustomize", "confidence": "high"}
],
"spaces": ["platform-prod"],
"targets": ["Kubernetes:prod-use2"],
"unsupported": []
}
Argo-import preview:
$ cub-scout import argocd guestbook --space payments --dry-run
The output structure is per-Application: each gets a proposed slug, the source path the Application reads, and the renderer hint (kustomize / helm / raw). ApplicationSet generators are preserved — see observe-argocd for the generator support.
The safest workflow today: save the proposal JSON; review it in git, a ticket, or the PR that is coordinating the adoption; only THEN does anyone run import apply.
$ cub-scout import --git-path ./platform-config --dry-run --json > proposal.json
$ git checkout -b adopt-confighub
$ git add proposal.json
$ git commit -m "preview ConfigHub units for platform-config"
$ git push origin adopt-confighub
$ gh pr create ...
The proposal is reviewable in git, with all the usual diff tooling. ConfigHub itself sees nothing until someone runs import apply post-review.
If the proposal isn't right (wrong slugs, wrong space grouping, missing workloads), adjust the source structure and re-run. cub-scout's import verbs are deterministic — same source produces same proposal, so the PR diff narrows iteration-by-iteration.
Common adjustments:
apps/prod/api → slug apps-prod-api)Once the proposal is approved:
# THE USER runs this — not cub-scout, not this skill
$ cub-scout import apply proposal.json
import apply writes to ConfigHub. It IS a mutation. It is intentionally NOT in this skill's allowed-tools. Recommend the user run it themselves and verify the result with cub unit list --space platform-prod.
A team has a live payments namespace and a git repo platform-config/ with three apps under apps/prod/. They want to adopt ConfigHub, so they preview the live cluster first and use the repo preview as a secondary check.
$ cub-scout import --dry-run -n payments --json > proposal-live.json
$ cub-scout import --git-path ./platform-config --dry-run --json > proposal-repo.json
Proposal:
Units (3):
apps-prod-api — apps/prod/api/ kustomize high
apps-prod-worker — apps/prod/worker/ kustomize high
apps-prod-frontend — apps/prod/frontend/ raw medium
Spaces (1):
platform-prod
Targets (1):
Kubernetes:prod-use2
Unsupported (0): —
$ git checkout -b adopt-confighub
$ git add proposal-live.json proposal-repo.json
$ git commit -m "preview ConfigHub units for platform-prod"
$ # ...PR review...
$ # ...merge...
# After PR merges, the operator runs:
$ cub-scout import apply proposal-live.json
cub-scout produced the proposals; git carried the review; the operator drove the apply. Three tools, three responsibilities.
This is the distinction to make clear:
cub-scout import --git-path <repo> is structure-and-preview focused. Walks a local git checkout, classifies kustomize/helm/raw, emits a proposal. No cluster, no ConfigHub required for the preview itself.cub variant upload (in cub, not cub-scout) loads already-rendered resources: a directory, a file, -, or an oci:// bundle. It renders nothing — you render with helm template, kustomize build or an installer — and makes the space's units match the input, create-or-update with a 3-way merge.They solve different problems. cub-scout is for adoption (first-time preview/import); cub variant upload is for ongoing load of rendered configuration. Don't claim they overlap.
cub gitops discoverandcub gitops importno longer exist: cub deleted thegitopsgroup on 2026-07-25 with no replacement, andcub gitopsexits 1 withunknown command. If a user asks for that flow, say so rather than running it (#573).
cub-scout import apply IS the mutating write. The user runs it directly; this skill describes its shape but does not invoke it. Defense in depth: not in allowed-tools.
cub-scout import parse-repo * — pure parsercub-scout import cluster-aggregator * — emits proposal as JSONcub-scout app list * — read-only ConfigHub App inventorymap workloads, scan, status; cub <entity> get / list for the entities named in allowed-tools; argocd app get, argocd appset get/list, flux getcub-scout import --git-path <dir> and cub-scout import --dry-run change nothing as written, but a later flag overrides them (--git-path= clears the path, --dry-run=false turns preview off), so a wildcard grant would admit a real import. The host asks before each run.cub-scout import apply * — writes ConfigHub unitscub-scout import argocd * — without --dry-run it creates units, can disable Argo auto-sync, can delete the Argo Application (cmd/cub-scout/import_argocd.go:465-488). The wildcard cannot enforce --dry-run, so the verb is out of allowed-tools entirely; recommend the user run cub-scout import argocd <app> --dry-run themselves and feed the proposal to the agent for review.cub-scout app create * — app list is the read-only form in allowed-toolscub * create/update/delete, cub variant upload (different tool), kubectl apply/edit/patch/deletescout-ingest — the verb group this skill composesobserve-argocd — ApplicationSet generator detailobserve-flux — Kustomization / source structureobserve-confighub-managed — the result-side view of ConfigHub-managed resources#363#364 (verdict: keep tools separate)examples/argo-import-confighub-demo/, examples/flux-import-confighub-demo/, examples/fleet-import/import apply is explicitly out of band — recommend the user runs it themselves after PR review.import --git-path --output-dir flow is tracked separately for emitting proposed unit YAMLs directly.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./confighub-source-truthUse when the user wants a STRATEGY-TYPED, PILOT-ACCEPTANCE-SHAPED VERDICT about whether ConfigHub / controller / runtime agree under a declared delivery strategy — the `compare source-truth` workflow with the explicit `--strategy <name>` requirement. Natural phrasing: "give me a source-truth verdict for deploy/api", "verify under git-argo strategy that ConfigHub matches the cluster", "run the source-truth contract for upstream Pilot acceptance", "compare source-truth confighub-oci-flux strategy across the namespace", "produce strategy-relative correctness evidence", "show me where the strategy declaration is being violated". Composes `compare source-truth --strategy <s>` + the source-truth evidence contract + (optionally) `receipt verify --strategy <s>` for a fingerprinted version. Requires CONNECTED MODE. Do NOT load for: a single-resource live drift question without a declared strategy (use investigate-drift), a triage (use triage-unhealthy-workload), or a fleet-wide audit that doesn't need strategy framing (use audit-fleet-conformance). cub-scout NEVER infers a strategy — this skill enforces that boundary./cub-scoutUse 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./investigate-driftUse when the user wants to compare live and desired state and inspect available manager and source evidence. Natural phrasing: "why is this Deployment different from the git manifest?", "which recognized manager is recorded for this path?", "controller-drift or interactive-manager evidence?", "compare three-way + attribution for deploy/api". Composes `compare three-way` + `compare drift` + the attribution layer (`cause` / `managerHint` / `gitSource` / `bindingSource`). Do NOT promise who changed the value or which manager wrote last: path-level manager evidence is not time-ordered, and resource-level `explain` evidence is not field-specific. Do NOT load for: a triage where the workload won't start (use triage-unhealthy-workload), pure inventory (use scout-observe), generating a fingerprinted evidence artifact (use scout-verify and the no-manual-edits-since predicate), or any mutating fix (cub-scout never mutates)./migrate-from-kubectlUse when the user is MIGRATING from ad-hoc `kubectl apply` toward GitOps (Argo / Flux / ConfigHub) — and needs to find the manual edits, decide what to do with each (revert / port to git / accept as canonical), and plan the transition. Natural phrasing: "find all the manual edits in this cluster", "we have years of kubectl-apply, help us move to GitOps", "which resources have been hand-edited?", "audit drift caused by humans not controllers", "port my cluster state to git", "show me everything kubectl-* has touched". Composes attribution layer (`cause: manual-edit`) + `map orphans` (resources without a controller owner) + `scan` (risk classification) + `snapshot` / `import --git-path` preview once a repo skeleton exists. Read-only throughout — the migration itself is user-driven. Do NOT load for: real-time triage (use triage-unhealthy-workload), single-resource drift question (use investigate-drift), a fleet conformance audit (use audit-fleet-conformance), or any mutating action.Other plugins' skills for the same job