Skip to content
Back to skills

Argocd Axi

ASecurity

Find out why an Argo CD app is OutOfSync, Degraded or failing to sync, and fix it safely: compact answers on per-resource diffs against Git, deployment history, pod logs, sync windows and RBAC, with Secret data always redacted and log lines redacted on a best-effort basis. Read-only by default; sync, rollback, refresh and operation termination run only on writable contexts and only when confirmed. Use whenever a task involves Argo CD or GitOps deployments: an app stuck or unhealthy, a sync th...

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 16, 2026
ai-agentsgogitapi

Works with

  • claude code
  • cli
  • api

Security analysis

A100/100

Scanned November 16, 2026

npx -y skills add Dematom1/argocd-axi --skill argocd-axi --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Argocd Axi?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Argocd Axi
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dematom1-argocd-axi/badge)](https://www.skillsdirectory.com/skills/dematom1-argocd-axi)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: argocd-axi
description: "Find out why an Argo CD app is OutOfSync, Degraded or failing to sync, and fix it safely: compact answers on per-resource diffs against Git, deployment history, pod logs, sync windows and RBAC, with Secret data always redacted and log lines redacted on a best-effort basis. Read-only by default; sync, rollback, refresh and operation termination run only on writable contexts and only when confirmed. Use whenever a task involves Argo CD or GitOps deployments: an app stuck or unhealthy, a sync that failed, what changed in a rollout, or whether a sync is allowed right now."
user-invocable: false
---

# argocd-axi

Argo CD for agents: read operations plus opt-in writes on writable contexts.

You do not need argocd-axi installed globally - invoke it with `npx -y argocd-axi <command>`.
If argocd-axi output suggests a command starting with `argocd-axi`, run it as `npx -y argocd-axi ...` instead.

argocd-axi wraps the `argocd` CLI, which must be on PATH and already logged in (or have `ARGOCD_AUTH_TOKEN` set).
It uses that session as is and adds no auth of its own; it never logs in, never prompts, and never reads the argocd config file.
Run `npx -y argocd-axi auth guide` for setup instructions; the README is the authority for credential setup. The tool never logs in. If a command answers `AUTH_EXPIRED`, show the exact operator login command when the server is known; otherwise show the fallback login syntax and ask for the server address. An unreachable server is a separate error.

It supports opt-in writes on contexts listed in `writable-contexts`: `apps sync`, `apps rollback`, `apps refresh`, and `apps terminate-op` preview first and require `--confirm` to act. If `--context` is omitted and exactly one writable context is configured, that context is used; with zero or multiple writable contexts, specify `--context`. Previews and results identify the target context and server. Sync pruning also requires `--prune`. Resource sync accepts repeatable `--resource GROUP:KIND:NAME` selectors (or `GROUP:KIND:NAMESPACE/NAME`); only managed resources are accepted. Other writes answer `REFUSED`.
For anything argocd-axi does not cover, the raw `argocd` CLI is the fallback.

## Setup

Run `npx -y argocd-axi auth guide` for offline instructions. A human operator logs in interactively with `argocd login <server> --sso --grpc-web`; agents and CI use `ARGOCD_SERVER` and `ARGOCD_AUTH_TOKEN` from a scoped account token. The user owns login; argocd-axi never logs in. Verify access with `npx -y argocd-axi whoami`. See the README's writable-context instructions before enabling writes.

## Workflow

1. Start wide: `npx -y argocd-axi` shows the context, server, user, every app needing attention with the reason, and running operations.
2. Drill in: `apps view <app>` gives source, destination, sync and health, the last operation and its message, conditions, auto-sync, and problem resources.
3. Find out why it is out of sync: `apps diff <app>` lists the resources that differ (`--full` adds the line diff); `apps history <app>` shows what was deployed when and by whom.
4. Read the workload: `apps resources <app> --problems`, then `apps logs <app> --kind Deployment --name <name> --since 15m`.
5. Before asking a human to sync: `projects windows <project>` says whether a sync is allowed right now, and `can-i sync applications '<project>/<app>'` checks permissions.
6. Write commands use the sole `writable-contexts` entry when `--context` is omitted. If there are zero or multiple writable contexts, pass `--context <name>`; an explicit value overrides the default. `ctx` lists contexts.

## Commands

```
commands[27]:
  (no command): live overview - context, server, user, apps needing attention with the reason, running operations
  ctx [--context <c>]: current context, server and CLI version, local only (what the session hook prints)
  context: last session's argocd-axi command summary for this directory
  context end: record the current Claude Code session summary (SessionEnd hook)
  ctx use <context>: switch the argocd CLI's current context (local config only)
  auth guide [--context <c>]: offline human login and agent token setup instructions
  whoami: user, issuer and groups of the current credential
  can-i <action> <resource> <object>: ask Argo CD RBAC, e.g. can-i sync applications 'payments/payments-api'
  apps [--project --selector --repo --cluster --sync --health --problems --limit --fields]: applications, problems first
  apps view <app>: source, destination, sync, health, operation, conditions, auto-sync, problem resources
  apps resources <app> [--problems --orphaned]: managed resources with sync and health
  apps diff <app> [--revision <rev>] [--full]: what differs from Git, per resource; redacted plain-line diff with --full
  apps sync <app> [--confirm] [--prune] [--timeout <s>]: returns on acceptance; already synced is a no-op; wait on the parent before acting on children
  apps rollback <app> <history-id> [--confirm] [--timeout <s>]: preview revision, then optionally roll back
  apps refresh <app> [--hard] [--confirm] [--timeout <s>]: preview, then refresh one app
  apps terminate-op <app> [--confirm] [--timeout <s>]: preview, then optionally stop a running operation
  apps auto-sync <app> <on|off> [--confirm]: preview, then optionally change automated sync
  apps actions run <app> <action> --kind <kind> --name <resource> [--confirm]: preview, then optionally run one listed resource action
  apps history <app>: deployments, newest first
  apps manifests <app> [--source git|live] [--kind <k>] [--full]: rendered manifests, Secret data redacted
  apps logs <app> [--kind --name --tail --since --filter -p]: recent pod logs, never follows
  apps wait <app> [--sync --health --operation] [--timeout <s>] [--fail-on-degraded]: polls through missing apps and transient health; timeout or reconciled prune-only drift exits 1 with last state and blockers
  apps actions <app>: list available resource actions
  projects | projects view <p> | projects windows <p>: projects, their rules, and whether sync is allowed now
  appsets | appsets view <name> | appsets generate <file>: ApplicationSets and what a spec would generate
  repos | clusters: repositories and destination clusters with connection status
  setup hooks | status | uninstall: manage the Claude Code SessionEnd memory hook; setup hooks also installs SessionStart hooks
```

Run `npx -y argocd-axi --help` for global flags, or `npx -y argocd-axi <command> --help` for per-command usage.

## Tips

- Output is TOON; lists sort problems first and say `count: N of M total`. Empty results are stated explicitly.
- An unhealthy or out-of-sync app is data, not an error: exit 0 means the command worked. Exit 1 is an error, 2 a usage error; errors print `error`, `code` and `help` on stdout.
- An app needs attention when it is OutOfSync or sync Unknown; Degraded, Missing or health Unknown; Progressing for more than 10 minutes; its last sync Failed or Errored; or it has conditions.
- Secret-looking values (Secret data, passwords, tokens, Helm parameters) are redacted and counted; no flag reveals them, and log redaction is best effort.
- Nothing streams: `apps logs` returns recent lines (default 100). `apps wait` polls through Missing, Degraded and not-yet-existing apps (default timeout 120 s). Timeout exits 1 with unmet conditions, last state and blocking resource messages. `--fail-on-degraded` opts into fail-fast behavior. Re-running wait only observes state. Sync waits return promptly as prune-only drift (exit 1, not Synced) when a reconciled Succeeded operation leaves only prune-required resources; the result names resources and the explicit prune command, without writing.
- `apps sync` returns on acceptance, not deployment completion. For app-of-apps, run `apps wait <parent>` before acting on children. An absent child may be reported as permission denied; absence from the visible list can also mean RBAC hides it. Already-synced apps without running operations or resource drift are no-ops; nothing is submitted. With `--resource`, only selected resources that are not Synced or need pruning are submitted; if all selections are Synced and none needs pruning, nothing is submitted.
- Apps in other namespaces are addressed as `namespace/name`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.