---
name: "argocd-gitops-sync-application"
description: "Implement continuous GitOps delivery to Kubernetes clusters using Argo CD."
metadata:
  author: "Argo Project"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "create argocd application yaml"
  - "configure argocd auto sync selfheal"
  - "argocd sync waves"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# Argo CD GitOps Synchronization & Health Checks

Configures Argo CD Applications: defining Git source repositories, target cluster/namespace, automated sync policies (prune, selfHeal), sync phases and waves, resource exclusions, and custom health check scripts.

## When to Invoke
Invoke this skill whenever you need to:
- create argocd application yaml
- configure argocd auto sync selfheal
- argocd sync waves

## Execution SOP & Rules
1. Define Application manifest with spec.source (repoURL, targetRevision, path) and spec.destination.
2. Set syncPolicy: automated: { prune: true, selfHeal: true } for continuous reconciliation.
3. Annotate manifests with sync-wave integers (-1 for schemas, 0 for DB, 1 for web apps).
4. Monitor application state via Argo CD Web UI or CLI: argocd app get <app_name>.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
