Agent skill
argocd
Manage Argo CD applications and sync operations via the REST API.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/argocd-thinkfleetai-thinkfleet-engine
Metadata
Additional technical details for this skill
- thinkfleetbot
-
{ "emoji": "\ud83d\udc19", "requires": { "env": [ "ARGOCD_SERVER", "ARGOCD_TOKEN" ], "bins": [ "curl", "jq" ] } }
SKILL.md
Argo CD
Manage Argo CD applications, sync operations, and clusters via the REST API.
Environment Variables
ARGOCD_SERVER- Argo CD server URL (e.g.https://argocd.example.com)ARGOCD_TOKEN- Bearer token (generate viaargocd account generate-tokenor API)
List applications
curl -sk -H "Authorization: Bearer $ARGOCD_TOKEN" \
"$ARGOCD_SERVER/api/v1/applications" | jq '.items[] | {name: .metadata.name, status: .status.sync.status, health: .status.health.status, repo: .spec.source.repoURL}'
Get application details
curl -sk -H "Authorization: Bearer $ARGOCD_TOKEN" \
"$ARGOCD_SERVER/api/v1/applications/my-app" | jq '{name: .metadata.name, sync: .status.sync, health: .status.health, source: .spec.source}'
Sync application
curl -sk -X POST -H "Authorization: Bearer $ARGOCD_TOKEN" \
-H "Content-Type: application/json" \
"$ARGOCD_SERVER/api/v1/applications/my-app/sync" \
-d '{}' | jq '{phase: .status.phase}'
Sync with specific revision
curl -sk -X POST -H "Authorization: Bearer $ARGOCD_TOKEN" \
-H "Content-Type: application/json" \
"$ARGOCD_SERVER/api/v1/applications/my-app/sync" \
-d '{"revision": "HEAD", "prune": true}' | jq '{phase: .status.phase}'
Get application resource tree
curl -sk -H "Authorization: Bearer $ARGOCD_TOKEN" \
"$ARGOCD_SERVER/api/v1/applications/my-app/resource-tree" | jq '.nodes[] | {kind: .kind, name: .name, health: .health.status}'
List clusters
curl -sk -H "Authorization: Bearer $ARGOCD_TOKEN" \
"$ARGOCD_SERVER/api/v1/clusters" | jq '.items[] | {name: .name, server: .server, status: .connectionState.status}'
List repositories
curl -sk -H "Authorization: Bearer $ARGOCD_TOKEN" \
"$ARGOCD_SERVER/api/v1/repositories" | jq '.items[] | {repo: .repo, connectionState: .connectionState.status}'
Application diff (managed resources)
curl -sk -H "Authorization: Bearer $ARGOCD_TOKEN" \
"$ARGOCD_SERVER/api/v1/applications/my-app/managed-resources" | jq '.items[] | {kind, name: .name, status: .status}'
Notes
- Use
-kflag if Argo CD uses self-signed certificates. - Sync operations are async; poll application status to track progress.
- Always confirm before syncing, especially with
prune: true.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?