Argo CD + ConfigHub Agent Instructions
This repository is synced by Argo CD and tracked by ConfigHub. Use each tool for the half it owns, never mix their responsibilities or bypass production approval.
Division of labor
| Question or task | Use | Examples |
|---|---|---|
Live Application sync status, health, diffs against the cluster, events | Argo CD CLI or Argo CD MCP server (argocd-mcp) | argocd app list, argocd app get orders, argocd app diff orders |
What this repo deploys, which Application or ApplicationSet points to each path/chart, which values file wins | ConfigHub plugin (read-only, no hub or cluster access needed) | /confighub:inventory, confighub mini inventory . |
Why a value was changed, cross-env diff (values-staging.yaml vs values-prod.yaml), change history across sessions | ConfigHub plugin or local/shared hub | /confighub:why KEY, /confighub:changes, cub mini changes --why KEY |
| Staging edits & human-gated OCI releases (Kustomize repos, Argo CD 3.1+) | ConfigHub hub (kustomize-argocd starter) | cub mini upload APP --component APP --change-desc "WHY" |
Rules for coding agents
- Start read-only. Before proposing any edit in an Argo CD repo, run
/confighub:inventory(orconfighub mini inventory .) to map everyApplication,ApplicationSet, Helm values file, and Kustomize overlay, and check Argo CD status (argocd app getor Argo CD MCP) if a server context is active. Respect the Helm vs. Kustomize boundary.
- For Helm
values-*.yamlrepos, use ConfigHub read-only (inventory, ignored-key checks, PR review comments, andcub helmvalue tracking) while Argo CD keeps syncing from Git. - For Kustomize repos (Argo CD 3.1+), you may adopt with the
kustomize-argocdstarter and propose changes viacub mini uploadwith a clear--change-desc.
- For Helm
- Never write directly to production clusters. Do not run
argocd app sync --force,kubectl apply,kubectl patch,cub mini approve, orcub mini deploy-from-hub. Always leave the printedcub mini approve BASE/ORDERcommand for the human owner. - Always state why. Every config edit or
cub mini uploadmust include the business or operational reason so the next agent or on-call engineer can trace the change without digging through old chats.