data-drift-strategy

data-drift-strategy is a skill for Claude Code, Codex from jnPiyush/AgentX. It costs 58 tokens per session (3,835 once invoked), scanned A, original, Apache-2.0.

A guide for detecting and handling data drift, meaning changes in production data that make an AI or machine-learning system less reliable.

In plain words
What is it for?
Use it to design monitoring, data-quality checks, retrieval-quality tracking, retraining triggers, and governance for AI or machine-learning pipelines.
Why use it?
It helps identify when inputs, embeddings, search results, user intents, features, or schemas have changed enough to affect system quality.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/jnpiyush/agentx/data-drift-strategy
Any agent
npx skills add jnPiyush/AgentX --skill data-drift-strategy
Clone the repo
git clone --depth 1 https://github.com/jnPiyush/AgentX

Made for: Claude Code, Codex.

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 data-drift-strategy

README.md
[![agentmods](https://agentmods.dev/badge/skills/jnpiyush/agentx/data-drift-strategy.svg)](https://agentmods.dev/skills/jnpiyush/agentx/data-drift-strategy)
Your own site
<a href="https://agentmods.dev/skills/jnpiyush/agentx/data-drift-strategy"><img src="https://agentmods.dev/badge/skills/jnpiyush/agentx/data-drift-strategy.svg" alt="Measured on agentmods" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,835 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00058 $0.03835
Opus 5 $0.00029 $0.01917
Sonnet 5 $0.00012 $0.00767
Haiku 4.5 $0.00006 $0.00383

Measured 5d ago against content hash 586cea3472a6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

data-drift-strategy 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 5d 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.

.github/skills/ai-systems/data-drift-strategy/SKILL.md · 401 lines

How it starts

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

Data Drift Strategy

Purpose: Detect and manage changes in input data distributions that degrade GenAI agent quality and ML pipeline reliability. Covers LLM input monitoring, embedding drift, RAG retrieval degradation, and classical feature distribution tracking.


When to Use This Skill

  • Monitoring LLM input patterns in production (query length, topic distribution, language mix)
  • Detecting embedding drift (vector space distribution shifts in RAG systems)
  • Tracking RAG retrieval quality degradation (relevance scores, retrieval hit rates)
  • Identifying user intent drift (new topics, out-of-scope queries, adversarial inputs)
  • Monitoring input feature distributions in production ML systems
  • Building data quality validation gates in ETL/ML pipelines
  • Detecting schema drift (new columns, type changes, missing fields)
  • Designing retraining triggers based on data distribution shifts
  • Establishing data governance policies for model training data

Prerequisites

  • Reference dataset (baseline distribution from training data or initial deployment)
  • Data pipeline with logging/profiling capabilities
  • For GenAI: Input logging enabled on the agent (query text, timestamp, response, latency)
  • Statistical testing library (scipy, evidently, or equivalent)

Decision Tree

Data drift concern?
+- GenAI / LLM application?
|  +- Query patterns shifting?
|  |  +- Length distribution changed? -> Update test dataset, adjust token budgets
|  |  +- New topic clusters emerging? -> Expand scope or add guardrails
|  |  +- Language mix changed? -> Add multilingual testing
|  +- Embedding drift detected?
|  |  +- Cosine similarity distribution shifted? -> Re-index or fine-tune embeddings
|  |  +- New clusters forming? -> Knowledge base gaps, update content
|  |  +- Retrieval scores dropping? -> RAG pipeline degradation
|  +- Adversarial patterns increasing?
|  |  +- Prompt injection attempts? -> Strengthen guardrails, log patterns
|  |  +- Jailbreak frequency rising? -> Update safety filters
|  +- Conversation patterns changing?
|     +- Turn depth increasing? -> Agent may be struggling, check quality
|     +- Tool usage shifting? -> Review tool definitions, add new tools
|     +- Satisfaction signals declining? -> Full quality audit needed
+- Traditional ML model?
|  +- Schema changed?
|  |  +- New columns added? -> Schema evolution (validate compatibility)
|  |  +- Columns removed? -> Breaking change (alert immediately)
|  |  +- Type changed? -> Data pipeline bug (investigate source)
|  +- Feature distribution shifted?
|  |  +- Single feature? -> Upstream data source change
|  |  +- Multiple features? -> Systemic shift (new data segment or pipeline change)
|  |  +- Correlations changed? -> Relationship drift (may affect model assumptions)
|  +- Data quality degraded?
|     +- Missing values increased? -> Source system issue
|     +- Outliers increased? -> Validation rules needed
|     +- Duplicates increased? -> Deduplication pipeline issue
+- No visible issues?
   +- Set up proactive profiling -> Baseline all features
   +- Schedule periodic checks -> Compare current vs. reference

Read the full file on GitHub · 401 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. 5d ago First seen · 401 lines · 58 tokens per session scan A 586cea3472a6

Subscribe to this mod's changes

data-drift-strategy is a skill published in the GitHub repository jnPiyush/AgentX (15 stars, last pushed yesterday), licensed Apache-2.0. It adds 58 tokens to every session and 3,835 once invoked, about $0.0003 per session on Opus 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-08-30.

Related

Other skills, from other repositories

agent-platform-rag-engine-management

Manage and query Agent Platform RAG Engine Corpora and retrieve grounded contexts using the Google GenAI SDK. Use when listing RAG corpora or files, inspecting a corpus, retrieving contexts, or generating content grounded in a RAG corpus. Do not use for standard database queries (use SQL/Spanner skills), Google…

google/skills · 85 tokens

agent-platform-model-registry

Agent Platform Model Registry Management. Use when you need to upload, list, describe, update, or delete machine learning models (and their versions) in the Agent Platform Model Registry. Don't use for model training, model deployment to endpoints, or managing non-Agent Platform models.

google/skills · 60 tokens

foundry-config-setup

Resolve missing setup caused by a hardcoded Foundry project endpoint or model in a sample. Use when a sample fails because it uses a placeholder/hardcoded projectendpoint (for example "https://your-project.services.ai.azure.com") or a hardcoded model instead of reading them from the environment.

microsoft/agent-framework · 65 tokens

google-cloud-solution-agentic-analytics-spark-knowledge-catalog

Discovers requirements and generates guidance to design and deploy a governed, secure agentic-analytics solution for data that's distributed across Google Cloud, other cloud providers, or on-premises. Data that's outside Google Cloud (such as data from Databricks, Snowflake, Salesforce, SAP, or Oracle systems) is…

google/skills · 138 tokens

training-check

Interactively monitor training metrics from the current Codex session, periodically checking WandB or fallback logs for NaN, divergence, plateaus, and broken runs.

wanshuiyin/Auto-claude-code-research-in-sleep · 35 tokens

nemo-automodel-launcher-config

Configure NeMo AutoModel job launches for interactive runs, Slurm clusters, and SkyPilot cloud execution.

NVIDIA/skills · 30 tokens