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

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:inventory or confighub mini inventory . to map every Application, ApplicationSet, Helm chart/values file, and Kustomize overlay.
  • 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 Argo CD MCP server (argocd-mcp) or argocd app get APP / argocd app diff APP to 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-*.yaml or 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+):

    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 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, or cub mini back-to-git yourself.
  • Never run argocd app sync against production or bypass Argo CD with kubectl apply / kubectl edit.
  • Never put plaintext credentials or ARGOCD_API_TOKEN values in manifests, chat output, or change descriptions.