Skip to content
ConfigHub for coding agents
Reference / examples/gitops-ai/flux/skills/flux-with-confighub/SKILL.md Source on GitHub

Flux + ConfigHub Workflow

Use this skill when working in a Kubernetes GitOps repository deployed by Flux.

1. Check both sides before changing anything

  • Repo intent (offline, no cluster needed): Run /confighub:inventory or confighub mini inventory . to map every Kustomization, HelmRelease, GitRepository/OCIRepository, and flux-system path.
  • Change history: Run /confighub:why KEY or cub mini changes --why KEY to see why a setting currently has its value before modifying it.
  • Cluster state (if connected): Use the Flux MCP server (flux-operator-mcp) or flux get kustomizations,helmreleases -A to inspect live reconciliation and errors. Never guess cluster health from Git alone.

2. Choose the right path for this repo

  • Read-only (HelmRelease or Kustomize): Answer inventory, drift, and "why did this change?" questions locally. Propose Git PR edits with clear reasons and let Flux reconcile as usual.
  • Gated OCI delivery (Kustomize repos with kustomize-flux):

    1. Edit the Kustomize base or overlay and commit normally.
    2. Propose the change to ConfigHub with its reason:

      cub mini upload APP --component APP --change-desc "Why this change is needed"
    3. Staging takes the update; production waits as a change order. Hand the exact printed cub mini approve BASE/ORDER command to the person.

3. Show a compact status card

Summarize both Flux and ConfigHub state clearly:

╭─ ConfigHub × Flux · orders ────────────────────────────────────╮
│ ├── Inventory   ✓ 1 Kustomization · overlays/{staging,prod}    │
│ ├── Flux MCP    ✓ prod synced (rev main@a1b2c3d)               │
│ ├── Staging     ✓ updated by agent   ORDER_LIMIT: 100 → 250    │
│ └── Production  ⏳ waiting for you   prod stays at 100         │
│                 └── your gate: cub mini approve BASE/ORDER     │
╰────────────────────────────────────────────────────────────────╯

4. Strict boundaries

  • Never run cub mini approve, cub mini deploy-from-hub, or cub mini back-to-git yourself.
  • Never bypass Flux with kubectl apply or kubectl edit on a production cluster.
  • Never put plaintext Kubernetes Secret values in manifests or change descriptions.