argocd-helper
ArgoCD GitOps deployment management and troubleshooting When user mentions ArgoCD, GitOps, application sync, or argocd commands
What this skill does
# ArgoCD Helper Agent
## What's New in ArgoCD 2.13+ & 2025
- **ApplicationSets**: Templated application generation across clusters, repos, and environments
- **Multi-Source Applications**: Combine multiple repos/charts in a single Application
- **Server-Side Diff**: More accurate diff calculations with live cluster state
- **Progressive Rollouts**: ApplicationSet rollout strategies with canary deployments
- **Improved Notifications**: Native notifications controller with triggers and templates
- **Enhanced RBAC**: Fine-grained permissions with project-scoped roles
- **Config Management Plugins v2**: Sidecar-based plugins for custom tooling
- **Resource Tracking**: Improved annotation-based resource tracking
## Overview
This agent helps you work with ArgoCD for GitOps-based Kubernetes deployments, application synchronization, and declarative configuration management.
## Auto-Approved Commands
Safe read-only commands that don't require confirmation:
- `argocd app list` - List applications
- `argocd app get` - Get application details
- `argocd app diff` - Show diff between git and cluster
- `argocd app history` - Show application history
- `argocd app manifests` - Show application manifests
- `argocd app resources` - List application resources
- `argocd proj list` - List projects
- `argocd proj get` - Get project details
- `argocd repo list` - List repositories
- `argocd cluster list` - List clusters
- `argocd context` - Show current context
- `argocd account get-user-info` - Show current user info
- `argocd version` - Show version information
## CLI Commands
### Installation
```bash
# macOS
brew install argocd
# Linux
curl -sSL -o argocd https://github.com/argoproj/argo-cd/releases/latest/download/argocd-linux-amd64
chmod +x argocd
sudo mv argocd /usr/local/bin/
```
### Authentication
```bash
# Login to ArgoCD
argocd login argocd.example.com
# Login with token
argocd login argocd.example.com --auth-token=$ARGOCD_AUTH_TOKEN
# Login insecure (for testing)
argocd login localhost:8080 --insecure
# Get current context
argocd context
```
### Common Operations
**List applications**:
```bash
argocd app list
argocd app list -o wide
argocd app list --selector environment=production
```
**Get application details**:
```bash
argocd app get my-app
argocd app get my-app --refresh
argocd app get my-app -o yaml
```
**Sync application**:
```bash
# Sync application
argocd app sync my-app
# Sync with prune (remove resources not in git)
argocd app sync my-app --prune
# Sync specific resource
argocd app sync my-app --resource Deployment:my-deployment
# Dry run
argocd app sync my-app --dry-run
```
**Rollback**:
```bash
# List history
argocd app history my-app
# Rollback to specific revision
argocd app rollback my-app 5
```
**Diff application**:
```bash
# Show diff between git and cluster
argocd app diff my-app
# Diff specific revision
argocd app diff my-app --revision HEAD
```
## Application Management
### Creating Applications
**Via CLI**:
```bash
argocd app create my-app \
--repo https://github.com/myorg/myrepo \
--path manifests \
--dest-server https://kubernetes.default.svc \
--dest-namespace default \
--sync-policy automated \
--auto-prune \
--self-heal
```
**Via YAML**:
```yaml
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: my-app
namespace: argocd
spec:
project: default
source:
repoURL: https://github.com/myorg/myrepo
targetRevision: HEAD
path: manifests
destination:
server: https://kubernetes.default.svc
namespace: default
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
```
Apply with:
```bash
kubectl apply -f application.yaml
```
### Sync Policies
**Enable auto-sync**:
```bash
argocd app set my-app --sync-policy automated
```
**Enable auto-prune**:
```bash
argocd app set my-app --auto-prune
```
**Enable self-heal**:
```bash
argocd app set my-app --self-heal
```
**Disable auto-sync**:
```bash
argocd app set my-app --sync-policy none
```
## Application Status
### Health and Sync Status
```bash
# Get application status
argocd app get my-app --show-operation
# Watch sync status
argocd app wait my-app --health
# Get sync windows
argocd app get my-app --show-sync-windows
```
### Resource Status
```bash
# List resources
argocd app resources my-app
# Get specific resource
argocd app manifests my-app | kubectl get -f - deployment/my-deployment
# Check resource diff
argocd app diff my-app
```
## Projects
**List projects**:
```bash
argocd proj list
```
**Create project**:
```bash
argocd proj create my-project \
--description "My Project" \
--src "https://github.com/myorg/*" \
--dest "https://kubernetes.default.svc,*" \
--allow-cluster-resource "*"
```
**Add destination**:
```bash
argocd proj add-destination my-project \
https://kubernetes.default.svc \
my-namespace
```
**Add source repo**:
```bash
argocd proj add-source my-project \
https://github.com/myorg/myrepo
```
## Repository Management
**List repos**:
```bash
argocd repo list
```
**Add repo**:
```bash
# HTTPS
argocd repo add https://github.com/myorg/myrepo \
--username myuser \
--password mytoken
# SSH
argocd repo add [email protected]:myorg/myrepo.git \
--ssh-private-key-path ~/.ssh/id_rsa
```
**Remove repo**:
```bash
argocd repo rm https://github.com/myorg/myrepo
```
## Common Workflows
### Deploy New Application
```bash
#!/bin/bash
APP_NAME="my-app"
REPO_URL="https://github.com/myorg/myrepo"
PATH="k8s/overlays/production"
NAMESPACE="production"
# Create application
argocd app create "$APP_NAME" \
--repo "$REPO_URL" \
--path "$PATH" \
--dest-namespace "$NAMESPACE" \
--dest-server https://kubernetes.default.svc \
--sync-policy automated \
--auto-prune \
--self-heal
# Wait for sync
argocd app wait "$APP_NAME" --health
# Check status
argocd app get "$APP_NAME"
```
### Troubleshoot Sync Issues
```bash
#!/bin/bash
APP=$1
echo "=== Application Status ==="
argocd app get "$APP"
echo "\n=== Sync Diff ==="
argocd app diff "$APP"
echo "\n=== Recent Events ==="
kubectl get events -n argocd --field-selector involvedObject.name="$APP"
echo "\n=== Application Logs ==="
kubectl logs -n argocd -l app.kubernetes.io/name=argocd-application-controller \
--tail=50 | grep "$APP"
```
### Bulk Sync Applications
```bash
#!/bin/bash
# Sync all applications with label
argocd app list -l environment=production -o name | \
xargs -I {} argocd app sync {}
# Or use selector directly
argocd app sync -l environment=production
```
## Advanced Features
### Sync Hooks
```yaml
apiVersion: batch/v1
kind: Job
metadata:
name: db-migration
annotations:
argocd.argoproj.io/hook: PreSync
argocd.argoproj.io/hook-delete-policy: HookSucceeded
spec:
template:
spec:
containers:
- name: migrate
image: migrate:latest
command: ["./migrate.sh"]
restartPolicy: Never
```
Hook types:
- `PreSync` - Before sync
- `Sync` - During sync
- `PostSync` - After sync
- `SyncFail` - On sync failure
- `Skip` - Skip resource
### Sync Waves
```yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: app-config
annotations:
argocd.argoproj.io/sync-wave: "0"
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: app
annotations:
argocd.argoproj.io/sync-wave: "1"
```
Lower waves sync first.
### App of Apps Pattern
```yaml
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: apps
namespace: argocd
spec:
project: default
source:
repoURL: https://github.com/myorg/gitops
path: apps
destination:
server: https://kubernetes.default.svc
namespace: argocd
syncPolicy:
automated:
prune: true
```
### Resource Hooks
```yaml
metadata:
annotations:
# Skip resource from sync
argocd.argoproj.io/sync-options: Prune=false
# Force resource replacement
argocd.argoproj.io/sync-options: Replace=true
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.