ML-MLOps-Portfolio: Skill for Claude Code

.devin/skills/rollback/SKILL.md

rollback is a skill for Claude Code from DuqueOM/ML-MLOps-Portfolio. It costs 27 tokens per session (2,154 once invoked), scanned B, original, MIT.

An emergency procedure for reversing a production machine-learning service change and restoring a previous model or deployment state.

In plain words
What is it for?
It helps abort Argo Rollouts or undo a standard Kubernetes Deployment, revert the model in MLflow, silence alerts, verify prerequisites, and document the incident.
Why use it?
It provides a controlled, auditable response when a release is harming users, while requiring human approval before destructive commands.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is DuqueOM/ML-MLOps-Portfolio's own configuration. It tells Claude Code how to work on ML-MLOps-Portfolio itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ML-MLOps-Portfolio configures →

Reuse

Borrowing it

Nothing to install: this file belongs to DuqueOM/ML-MLOps-Portfolio. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/DuqueOM/ML-MLOps-Portfolio/main/.devin/skills/rollback/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/DuqueOM/ML-MLOps-Portfolio

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 rollback

README.md
[![agentmods](https://agentmods.dev/badge/skills/duqueom/ml-mlops-portfolio/rollback/github.svg)](https://agentmods.dev/skills/duqueom/ml-mlops-portfolio/rollback)
Your own site
<a href="https://agentmods.dev/skills/duqueom/ml-mlops-portfolio/rollback"><img src="https://agentmods.dev/badge/skills/duqueom/ml-mlops-portfolio/rollback/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 rollback

Your own site · 80×15
<a href="https://agentmods.dev/skills/duqueom/ml-mlops-portfolio/rollback"><img src="https://agentmods.dev/badge/skills/duqueom/ml-mlops-portfolio/rollback.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,154 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 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.00027 $0.02154
Opus 5.5 $0.00011 $0.00862
Sonnet 5.5 $0.00005 $0.00431
Haiku 4.5 $0.00003 $0.00215

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

Security

Grade B, and why

rollback scanned grade B with 2 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 2mo 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.

Unrestricted tool accessmediumExcessive agency

A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.

- Bash(amtool:*)

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Bash(curl:*)
.devin/skills/rollback/SKILL.md · 255 lines

How it starts

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

Rollback — Emergency Procedure

This is the MOST CRITICAL skill in on-call. It must be predictable, idempotent, and auditable. Execution is STOP-class: the agent produces the plan; a human approves each destructive command.

When NOT to use this skill

  • Flaky alert without user impact → investigate with concept-drift-analysis first. Rollback has its own blast radius.
  • Degraded single slice, global healthy → targeted retrain, not rollback.
  • Canary already auto-aborted by Argo Rollouts → no action needed; verify and document.
  • Pre-canary issues (CI failures) → use the deploy skill's abort path, not this one.

Prerequisites

Before running the plan, verify:

  • kubectl config current-context points at the affected cluster
  • kubectl argo rollouts version is available OR kubectl with the rollout subcommand for plain Deployments
  • GitHub token has repo + actions scopes for issue creation
  • MLflow Tracking URI is reachable (check via mlflow experiments list)

Decision tree

              Incident declared
                      │
         ┌────────────┴────────────┐
     Argo Rollouts?          Plain Deployment?
         │                         │
  kubectl argo rollouts        kubectl rollout undo
  abort + undo                 deployment/{service}
         │                         │
         └────────────┬────────────┘
                      │
          Wait for Ready (kubectl rollout status)
                      │
         ┌────────────┴────────────┐
     Model changed?            Image-only change?
     (MLflow revert)           (done)
         │
  MLflow transition_model_version_stage
  Previous → Production
         │
  POST /model/reload to each pod (or restart)
         │
  Silence incident-related alerts
         │
  Open audit issue (labels: rollback, incident)

Step 1 — Confirm the incident (AUTO, 1 min)

# Who is firing?
kubectl get prometheusrules -n monitoring -o json | \
  jq '.items[].spec.groups[].rules[] | select(.alert != null) | .alert'

# Current rollout state
kubectl argo rollouts get rollout {service}-predictor -n {namespace}

# Recent deploys
kubectl rollout history deployment/{service}-predictor -n {namespace}
kubectl argo rollouts history {service}-predictor -n {namespace}

Read the full file on GitHub · 255 lines

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. 2mo ago First seen · 255 lines · 27 tokens per session scan B c145d578b0d9

Subscribe to this mod's changes

rollback is a skill published in the GitHub repository DuqueOM/ML-MLOps-Portfolio (7 stars, last pushed yesterday), licensed MIT. It adds 27 tokens to every session and 2,154 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 2 findings (unrestricted tool access, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

rollback compared with skills from other repositories

rollback next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rollbackDuqueOM/ML-MLOps-PortfolioSkill7yesterdayMITB27Claude Code
ecs-genaiaws-samples/sample-apex-skillsSkill92todayMIT-0A259Claude Code, Codex
eks-genaiaws-samples/sample-apex-skillsSkill92todayMIT-0A275Claude Code, Codex
mlopswilliamzujkowski/standardsSkill192mo agoMITA45Claude Code, Codex
setupmlflow/mlflowSkill29kyesterdayApache-2.0A10Claude Code
dstack-prototypingdstackai/dstackSkill2.3kyesterdayMPL-2.0A80Claude Code, Codex
ecspressokayac/ecspressoSkill1.1kyesterdayMITA17Claude Code