/helio-skills:argocdfrom helio-skills
ArgoCD REST API skill for GitOps automation via HTTP/curl. Use when making direct API calls to ArgoCD for: (1) Managing Applications - create, sync, delete, get status via REST, (2) ApplicationSets - spec/generator YAML, (3) Bearer token auth setup, (4) Application Spec YAML reference, (5) Sync options, resource hooks. For argocd CLI commands, use the argocd-cli skill instead.
Ships in helio-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
ArgoCD operations via REST API with bearer token authentication.
# Generate token (requires argocd login first — see argocd-cli skill)
ARGOCD_TOKEN=$(argocd account generate-token)
# Or for a service account
ARGOCD_TOKEN=$(argocd account generate-token --account cibot --expires-in 7d)
export ARGOCD_SERVER="argocd.example.com"
export ARGOCD_AUTH_TOKEN="$ARGOCD_TOKEN"
Service account setup (in argocd-cm ConfigMap):
data:
accounts.cibot: apiKey,login
accounts.cibot.enabled: "true"
curl -s -H "Authorization: Bearer $ARGOCD_AUTH_TOKEN" \
-H "Content-Type: application/json" \
"https://$ARGOCD_SERVER/api/v1/{endpoint}"
Use scripts/argocd-api.sh for common operations.
curl -X POST -H "Authorization: Bearer $ARGOCD_AUTH_TOKEN" \
-H "Content-Type: application/json" \
"https://$ARGOCD_SERVER/api/v1/applications" \
-d '{
"metadata": {"name": "myapp", "namespace": "argocd"},
"spec": {
"project": "default",
"source": {
"repoURL": "https://github.com/org/repo.git",
"path": "manifests",
"targetRevision": "HEAD"
},
"destination": {
"server": "https://kubernetes.default.svc",
"namespace": "default"
},
"syncPolicy": {
"automated": {"prune": true, "selfHeal": true},
"syncOptions": ["CreateNamespace=true"]
}
}
}'
curl -X POST -H "Authorization: Bearer $ARGOCD_AUTH_TOKEN" \
-H "Content-Type: application/json" \
"https://$ARGOCD_SERVER/api/v1/applications/myapp/sync" \
-d '{"revision": "HEAD", "prune": true, "strategy": {"hook": {}}}'
POST /sync returns immediately — poll until complete:
until curl -s -H "Authorization: Bearer $ARGOCD_AUTH_TOKEN" \
"https://$ARGOCD_SERVER/api/v1/applications/myapp" | \
jq -e '.status.operationState.phase == "Succeeded"' > /dev/null; do
sleep 5
done
The agent knows standard ArgoCD spec fields. These parts are easy to get wrong:
metadata:
finalizers:
# Exact string required for cascade delete to work
- resources-finalizer.argocd.argoproj.io
spec:
syncPolicy:
retry:
limit: 5
backoff:
duration: 5s
factor: 2
maxDuration: 3m
ignoreDifferences:
- group: apps
kind: Deployment
jsonPointers: [/spec/replicas]
metadata:
annotations:
argocd.argoproj.io/sync-wave: "-1" # lower = runs earlier during sync
argocd.argoproj.io/hook: PreSync|Sync|PostSync|SyncFail|PostDelete
argocd.argoproj.io/hook-delete-policy: HookSucceeded|HookFailed|BeforeHookCreation
POST /sync is fire-and-forget. It returns before sync finishes. Poll status.operationState.phase for Succeeded or Failed.namespace: argocd in metadata. Omitting it succeeds on create but causes 404 on subsequent GET/sync calls.metadata.continue in the response and loop until empty to get all apps.sync-wave only affects sync order, not health check order. Resources in wave -1 still wait for health checks from all resources, not just earlier waves.references/api-reference.md when you need complete endpoint docs, query params, pagination details, or error codes.references/api-reference.md for ApplicationSet generator patterns or the full sync option list.What SKILL.md sets; muted values are Claude Code's defaults
21 skills in this plugin
/argocd-cliArgoCD CLI skill for GitOps automation via the `argocd` command. Use when running argocd CLI commands for: (1) Login and authentication - connect to ArgoCD server, generate tokens, (2) Applications - create, sync, delete, rollback, wait, get status, (3) ApplicationSets - create/delete via YAML, (4) Projects - RBAC, source/destination restrictions, sync windows, (5) Repositories - add/remove Git repos, Helm charts, OCI registries, (6) Clusters - register, rotate credentials, manage multi-cluster, (7) Accounts - generate tokens, manage users, check permissions. For REST API/curl calls, use argocd skill instead./audit-skillAudit an existing SKILL.md against agentskills.io best practices. Use when user wants to review, audit, or improve a skill's quality — checking scope, context efficiency, instruction calibration, and effective patterns. Designed to feed findings into skill-creator for iteration./cavemanOther plugins' skills for the same job
Generated from the plugin's indexed repository (heliofernandes404/skills) — no native marketplace selected
npx claudepluginhub p/heliofernandes404-helio-skills