Argo CD + ConfigHub Workflow
Use this skill when working in a Kubernetes GitOps repository deployed by Argo CD.
1. Check both sides before changing anything
- Repo intent (offline, no cluster needed): Run
/confighub:inventoryorconfighub mini inventory .to map everyApplication,ApplicationSet, Helm chart/values file, and Kustomize overlay. - Change history: Run
/confighub:why KEYorcub mini changes --why KEYto see why a setting currently has its value before modifying it. - Cluster state (if connected): Use the Argo CD MCP server (
argocd-mcp) orargocd app get APP/argocd app diff APPto check live sync status and health. Never guess cluster health from Git alone.
2. Choose the right path for this repo
- Read-only (Helm
values-*.yamlor Kustomize): Answer inventory, drift, and "why did this change?" questions locally. Propose Git PR edits with clear reasons and let Argo CD sync after PR review. Gated OCI delivery (Kustomize repos with
kustomize-argocd, Argo CD 3.1+):- Edit the Kustomize base or overlay and commit normally.
Propose the change to ConfigHub with its reason:
cub mini upload APP --component APP --change-desc "Why this change is needed"- Staging takes the update; production waits as a change order. Hand the exact printed
cub mini approve BASE/ORDERcommand to the person.
3. Show a compact status card
Summarize both Argo CD and ConfigHub state clearly:
╭─ ConfigHub × Argo CD · orders ─────────────────────────────────╮
│ ├── Inventory ✓ 2 Applications · overlays/{staging,prod} │
│ ├── Argo CD ✓ Healthy · 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, orcub mini back-to-gityourself. - Never run
argocd app syncagainst production or bypass Argo CD withkubectl apply/kubectl edit. - Never put plaintext credentials or
ARGOCD_API_TOKENvalues in manifests, chat output, or change descriptions.