rolling-back-argocd-applications

rolling-back-argocd-applications is a skill for Claude Code from talkops-ai/talkops-mcp. It costs 80 tokens per session (1,525 once invoked), scanned A, original, Apache-2.0.

A guide for rolling back an ArgoCD application to a known-good deployment history entry. It previews the rollback, handles automatic synchronization, asks for confirmation where needed, and checks health afterward.

In plain words
What is it for?
Use it to recover from a bad deployment, temporarily manage automatic sync, preview a previous revision, and verify the application after rollback.
Why use it?
It helps restore a failing application while preventing ArgoCD from immediately replacing the rollback with the unwanted version from Git.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to recover from a bad deployment, temporarily manage automatic sync, preview a previous revision, and verify the application after rollback.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/talkops-ai/talkops-mcp/rolling-back-argocd-applications
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add talkops-ai/talkops-mcp --skill rolling-back-argocd-applications
Clone the repo
git clone --depth 1 https://github.com/talkops-ai/talkops-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rolling-back-argocd-applications

README.md
[![agentmods](https://agentmods.dev/badge/skills/talkops-ai/talkops-mcp/rolling-back-argocd-applications/github.svg)](https://agentmods.dev/skills/talkops-ai/talkops-mcp/rolling-back-argocd-applications)
Your own site
<a href="https://agentmods.dev/skills/talkops-ai/talkops-mcp/rolling-back-argocd-applications"><img src="https://agentmods.dev/badge/skills/talkops-ai/talkops-mcp/rolling-back-argocd-applications/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rolling-back-argocd-applications

Your own site · 80×15
<a href="https://agentmods.dev/skills/talkops-ai/talkops-mcp/rolling-back-argocd-applications"><img src="https://agentmods.dev/badge/skills/talkops-ai/talkops-mcp/rolling-back-argocd-applications.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,525 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00080 $0.01525
Opus 5.5 $0.00032 $0.00610
Sonnet 5.5 $0.00016 $0.00305
Haiku 4.5 $0.00008 $0.00153

Measured 11d ago against content hash e393efb3f427, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rolling-back-argocd-applications scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/argocd-mcp-server/skills/rolling-back-argocd-applications/SKILL.md · 88 lines

How it starts

The opening of the file, as written. The whole thing — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Rolling Back ArgoCD Applications

Perform controlled, auditable rollbacks in ArgoCD using deployment history IDs while preventing automated sync policies from immediately overwriting the rollback.

Critical ArgoCD Rollback Invariant: Auto-Sync Blocker

ArgoCD's /api/v1/applications/{name}/rollback endpoint rejects or immediately overwrites rollbacks if spec.syncPolicy.automated is enabled, because the controller continuously reconciles the cluster back to the Git targetRevision (e.g., HEAD).

Before executing rollback_application(..., dry_run=False):

  1. Check auto_sync_enabled in get_application_details (or auto_sync_blocker in the dry_run=True rollback preview).
  2. If True, either:
    • Temporary Incident Mitigation: Disable auto-sync first via update_application(app_name="<app>", sync_policy={"automated": False}) after operator confirmation, execute the rollback, and remind the team to revert the offending commit in Git before re-enabling auto-sync.
    • Git-Native Rollback: Preview the target revision first via get_application_diff and sync_application(..., dry_run=True), then pin target_revision to the known-good tag/SHA via update_application(app_name="<app>", target_revision="<good_sha>"), execute sync_application(..., dry_run=False), and verify Synced + Healthy status (keeping auto-sync intact).

Step-by-Step Rollback Workflow

Step 1: Capture Failure Evidence, Inspect History IDs & Check Auto-Sync

  1. Call get_application_details(app_name="<app>", detail_level="full") and read argocd://applications/{app_name}/history.
  2. If pods are currently Degraded (CrashLoopBackOff / OOMKilled), capture pre-rollback failure evidence via get_application_events(app_name="<app>", warnings_only=True) and get_application_logs(app_name="<app>", errors_only=True) before pod replacement wipes ephemeral state.
  3. Examine sync_history entries (id, revision, deployed_at, initiated_by):
    • The last entry (sync_history[-1]) is the currently active deployment.
    • The second-to-last entry (sync_history[-2]) is the immediately preceding deployment.
    • Initial-deploy guard: If len(history) < 2 (only id: 0 exists), rollback_application has no prior revision to restore—explain why and route to forward Git remediation (deploying-argocd-applications) or runtime triage (troubleshooting-argocd-applications).
    • History-limit guard: rollback_application requires an integer history_id (never a Git SHA string). If a target commit is older than spec.revisionHistoryLimit (evicted from status.history), use update_application(target_revision="<sha_or_tag>") + sync_application instead.
  4. Record the target integer history_id and its revision.

Read the full file on GitHub · 88 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 88 lines · 80 tokens per session scan A e393efb3f427

Subscribe to this mod's changes

rolling-back-argocd-applications is a skill published in the GitHub repository talkops-ai/talkops-mcp (4 stars, last pushed 12d ago), licensed Apache-2.0. It adds 80 tokens to every session and 1,525 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-18.

Related

rolling-back-argocd-applications compared with skills from other repositories

rolling-back-argocd-applications next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rolling-back-argocd-applicationstalkops-ai/talkops-mcpSkill412d agoApache-2.0A80Claude Code
cloud-native-gitops-workflowsj4flmao/agent-skillsSkill4613d agoMITA151Claude Code, Codex
github-opsJunMystery/Agent-Guidance-PythonSkill214d agoMITA71Claude Code, Codex
github-release-managementruvnet/RuViewSkill106ktodayMITA27Claude Code
agent-github-modesruvnet/rufloSkill83ktodayMITA21Claude Code
seed-snapshot-releasedaangn/seed-designSkill1.2ktodayApache-2.0A19Claude Code, Codex
release-verificationruvnet/ruv-FANNSkill3967d agoMITA67Claude Code