agentleFS
abdullahkhawerabdullahkhawer/devops-skills/skills/argocd-cli/SKILL.md

argocd-cli

Skill8 starsChanged 7 months agoApache-2.0View on GitHub

Perform ArgoCD GitOps operations using the argocd CLI. Use for inspecting applications, sync status, and deployment history across Kubernetes clusters.

  • Installs packages

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 4 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use the server table and rules below when constructing all argocd commands.

    line 8
  2. Distinctive:

    Update the table below with your ArgoCD server addresses before using this skill:

    line 12
  3. Distinctive:

    If the target environment is unclear, ask the user before running any command.

    line 19
  4. Distinctive:

    If not already authenticated, inform the user that setup is required and ask them to complete the following steps manually.

    line 23
  5. Very specific:

    Always pass --server and --auth-token explicitly — never rely on a cached local session context, which may point to the wrong cluster:

    line 34
  6. Distinctive:

    NEVER target a server not listed in the configuration table above.

    line 77
  7. Very specific:

    Always pass --server and --auth-token explicitly on every command — never rely on argocd login's cached local context.

    line 78
  8. Very specific:

    NEVER run app sync, app sync --prune, or app rollback against a production application without explicit user instruction.

    line 79
  9. Very specific:

    NEVER print, display, log, or store the contents of any token file or ARGOCD_AUTH_TOKEN value.

    line 80
  10. Very specific:

    Always run app diff and show the output before ever suggesting a sync — never sync blind.

    line 81
  11. Very specific:

    If an application or project name is unfamiliar, look it up with app list/app get first.

    line 82

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

ArgoCD CLI Skill

Use the server table and rules below when constructing all argocd commands.

Configuration

Update the table below with your ArgoCD server addresses before using this skill:

EnvironmentServer AddressAuth Token File
Production<your-prod-argocd-server>~/.argocd/prod.token
Staging / Non-Prod<your-nonprod-argocd-server>~/.argocd/staging.token

If the target environment is unclear, ask the user before running any command.

Prerequisites (one-time setup by user)

If not already authenticated, inform the user that setup is required and ask them to complete the following steps manually. Do not perform these steps yourself.

brew install argocd
argocd login <server-address> --sso

Generate an auth token via argocd account generate-token and save it to the corresponding token file (see table above). Never share credential file contents with the assistant.

Command Format

Always pass --server and --auth-token explicitly — never rely on a cached local session context, which may point to the wrong cluster:

argocd <command> --server <server-address> --auth-token "$(cat <TOKEN_FILE>)" [options]

Available Commands

Read-only (safe, no confirmation needed)

CommandDescription
app listList applications
app get <app>Show application details and sync status
app history <app>Show deployment history
app diff <app>Show diff between live and desired state
app manifests <app>Show rendered manifests
app logs <app>Show logs for an application's pods
proj list / proj get <proj>List or show projects
cluster listList registered clusters
repo listList registered repositories

Mutating operations (confirm with user before running)

CommandDescription
app sync <app>Sync an application to its desired state
app set <app>Update application configuration
repo add <url>Register a new repository
cluster add <context>Register a new cluster

Never run — requires explicit human approval

CommandReason
app delete <app>Irreversible application deletion (may also delete deployed resources)
app sync <app> --prune against productionDeletes live resources no longer in Git, affecting production
app rollback <app> <revision>Reverts a live production deployment
proj delete <proj>Irreversible project deletion
cluster rm <context>Removes a registered cluster

Rules

  • NEVER target a server not listed in the configuration table above. If a command references an unfamiliar server, stop and ask the user to confirm.
  • Always pass --server and --auth-token explicitly on every command — never rely on argocd login's cached local context.
  • NEVER run app sync, app sync --prune, or app rollback against a production application without explicit user instruction.
  • NEVER print, display, log, or store the contents of any token file or ARGOCD_AUTH_TOKEN value.
  • Always run app diff and show the output before ever suggesting a sync — never sync blind.
  • If an application or project name is unfamiliar, look it up with app list/app get first.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.