ML-MLOps-Portfolio: Skill for Claude Code

.devin/skills/performance-degradation-rca/SKILL.md

performance-degradation-rca is a skill for Claude Code from DuqueOM/ML-MLOps-Portfolio. It costs 42 tokens per session (2,249 once invoked), scanned A, original, MIT.

A root-cause analysis procedure for investigating why a machine-learning service became slower or less accurate after an incident.

In plain words
What is it for?
It helps connect degraded metrics with distribution shifts, releases, upstream data or schema changes, and prediction statistics to identify a lasting fix.
Why use it?
It combines performance measurements, data changes, deployment history, model drift, and prediction logs so the investigation is based on several independent sources of evidence.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: positional $N argument; mentions AGENTS.md.

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 →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python scripts/rank_regressions.py ops/incidents/{incident}/sliced_auc.json.

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/performance-degradation-rca/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 performance-degradation-rca

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/duqueom/ml-mlops-portfolio/performance-degradation-rca"><img src="https://agentmods.dev/badge/skills/duqueom/ml-mlops-portfolio/performance-degradation-rca.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,249 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00042 $0.02249
Opus 5 $0.00021 $0.01125
Sonnet 5 $0.00008 $0.00450
Haiku 4.5 $0.00004 $0.00225

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

Security

Grade A, and why

performance-degradation-rca scanned grade A with 1 finding 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 10d 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.

Makes network callslowCapability

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

- Bash(curl:*)
.devin/skills/performance-degradation-rca/SKILL.md · 245 lines

How it starts

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

Performance Degradation RCA — Multi-stream root cause

This skill is the post-incident counterpart to /rollback. Rollback restores service; this skill explains WHY degradation happened and what long-term fix is needed to prevent recurrence.

When NOT to use this skill

  • Single-slice performance alert — use concept-drift-analysis first; it's narrower and faster.
  • Active incident with user impact — run /rollback first, this skill after the dust settles.
  • Drift-only without performance impact — use drift-detection; degradation RCA assumes ground truth has already revealed regression.

Evidence streams

The skill correlates FIVE independent streams, then synthesizes:

  1. Sliced performance metrics (from performance_monitor Prometheus push) — which slices degraded, by how much, when
  2. PSI drift history (ops/drift_reports/*.json) — was the distribution shift gradual or sudden?
  3. Deploy + release history (MLflow Registry, kubectl rollout history, GitHub Releases) — did a deploy precede the regression?
  4. Upstream data (feature store / ETL provenance) — did an upstream schema or semantic change leak through?
  5. Prediction log statistics — score distribution shift, error rate per version, logger error rate (if this spiked, our verdict is uncertain — flag it)

Execution flow

Step 1 — Incident intake (AUTO, 2 min)

# Confirm the incident is declared
gh issue view {incident-id} --json labels,body,createdAt

# Pull the current Prometheus alert state
curl -s "http://prometheus.monitoring:9090/api/v1/query?query=ALERTS{service='{service}'}" | jq '.'

# What alert(s) kicked this off? Record them as the starting hypothesis.

Output: a single-paragraph framing — "At {ts}, {alertname} fired for {service} claiming {metric}={value}. Impact window: {start}→{end}."

Step 2 — Sliced regression scan (AUTO, 3 min)

# What slices are below baseline? Which are ABOVE?
curl -s 'http://prometheus.monitoring:9090/api/v1/query_range?query=\
{service}_performance_metric{metric="auc"}&start=...&end=...&step=1h' | \
  jq '.data.result' > ops/incidents/{incident}/sliced_auc.json

# Rank slices by magnitude of regression (current - baseline)
python scripts/rank_regressions.py ops/incidents/{incident}/sliced_auc.json

Read the full file on GitHub · 245 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. 10d ago First seen · 245 lines · 42 tokens per session scan A 3821ff7d6cda

Subscribe to this mod's changes

performance-degradation-rca is a skill published in the GitHub repository DuqueOM/ML-MLOps-Portfolio (5 stars, last pushed 2d ago), licensed MIT. It adds 42 tokens to every session and 2,249 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

Cloud Security & Container Hardening

AWS/Azure/GCP security auditing, container and Kubernetes hardening, Infrastructure as Code scanning, and cloud compliance assessment.

Masriyan/Claude-Code-CyberSecurity-Skill · 30 tokens

logging-patterns

Java logging best practices with SLF4J, structured logging (JSON), and MDC for request tracing. Includes AI-friendly log formats for Claude Code debugging. Use when user asks about logging, debugging application flow, or analyzing logs.

piomin/claude-ai-spring-boot · 50 tokens

Triage EKS Node NotReady

Diagnose EKS worker nodes in NotReady and determine safe remediation.

bregman-arie/devops-sre-skills · 22 tokens

agentcore-investigation

Investigate Bedrock AgentCore runtime sessions via CloudWatch Logs Insights — resolve session/trace IDs, query OTEL spans, filter noise, build timelines. Use when debugging AgentCore agent sessions, tracing tool calls, or analyzing latency.

awslabs/mcp · 52 tokens

postgresql-indexing

PostgreSQL indexing best practices for Prowler: index design, partial indexes, partitioned table indexing, EXPLAIN ANALYZE validation, concurrent operations, monitoring, and maintenance. Trigger: When creating or modifying PostgreSQL indexes, analyzing query performance with EXPLAIN, debugging slow queries, reviewing…

prowler-cloud/prowler · 108 tokens

network-rca

Kubernetes network root cause analysis skill powered by Kubeshark MCP. Use this skill whenever the user wants to investigate past incidents, perform retrospective traffic analysis, take or manage traffic snapshots, extract PCAPs, dissect L7 API calls from historical captures, compare traffic patterns over time, detect…

kubeshark/kubeshark · 163 tokens