/mlops-skills:feature-store-designfrom mlops-skills
Guides designing a feature store with offline/online layers for ML, covering point-in-time-correct training data, entity keys, and low-latency serving. Useful for avoiding feature leakage and training/serving skew.
Ships in mlops-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Most production ML bugs are not model bugs — they are feature bugs: a feature computed one way for training and a subtly different way for serving, or a feature that accidentally uses information from the future relative to the label it's predicting. A feature store solves this by making feature definitions a first-class, versioned artifact with two consistent materializations — an offline store for point-in-time-correct training data and an online store for low-latency inference — computed from the same feature definition. Getting this right is what prevents training/serving skew and label leakage, two of the most expensive classes of ML production bugs to diagnose after the fact.
user_id, merchant_id, session_id) that
features are keyed on.driver_id); a feature view is a named, versioned group of
features tied to that entity with a defined source and freshness.
# Feast example: feature_repo/driver_features.py
from feast import Entity, FeatureView, Field, FileSource
from feast.types import Float32, Int64
from datetime import timedelta
driver = Entity(name="driver_id", join_keys=["driver_id"])
driver_stats_source = FileSource(
path="s3://feature-lake/driver_stats/",
timestamp_field="event_timestamp",
created_timestamp_column="created_timestamp",
)
driver_stats_fv = FeatureView(
name="driver_stats",
entities=[driver],
ttl=timedelta(days=3),
schema=[
Field(name="trips_last_7d", dtype=Int64),
Field(name="avg_rating_30d", dtype=Float32),
Field(name="acceptance_rate_30d", dtype=Float32),
],
source=driver_stats_source,
)
from feast import FeatureStore
store = FeatureStore(repo_path="feature_repo/")
# entity_df has driver_id + event_timestamp = the moment the label occurred
training_df = store.get_historical_features(
entity_df=entity_df,
features=[
"driver_stats:trips_last_7d",
"driver_stats:avg_rating_30d",
"driver_stats:acceptance_rate_30d",
],
).to_df()
Concretely: if a ride's label ("driver accepted", yes/no) was recorded at
2026-06-14 09:03:00, the join must use avg_rating_30d as it was
computed as of 2026-06-14 09:03:00 — not the value as of today, which
would leak information from rides that happened after the label event.feast materialize-incremental $(date -u +%Y-%m-%dT%H:%M:%S)
online_features = store.get_online_features(
features=[
"driver_stats:trips_last_7d",
"driver_stats:avg_rating_30d",
"driver_stats:acceptance_rate_30d",
],
entity_rows=[{"driver_id": 4521}],
).to_dict()
event_timestamp (when the fact became true) strictly separately from
created_timestamp/ingestion time — point-in-time joins must use the
former.Symptom: A fraud model performs excellently offline (AUC 0.95+) but is
much worse in production — classic label leakage from a feature that
includes information not actually available at prediction time (e.g. a
"total lifetime chargebacks" feature computed using all data including
events after the prediction timestamp).
Fix: Enforce point-in-time joins for every training dataset build (no
naive latest value joins), and add a leakage check that verifies no
feature's event_timestamp is later than the corresponding label's
timestamp.
Symptom: A model's online predictions differ from what offline batch scoring would produce for the same entity at the same time (training/serving skew), traced to the online store returning slightly stale values because a materialization job has been silently failing for two days. Fix: Monitor feature freshness explicitly (max age since last materialization per feature view) with alerting, not just pipeline success/failure status — a "successful" job that ran 0 rows still shows green in most schedulers.
Symptom: Two teams independently build near-identical features (e.g.
user_avg_order_value_30d computed two slightly different ways) and models
trained on each disagree in ways that are hard to debug.
Fix: Maintain a searchable feature registry with ownership and
definitions before allowing new feature views to be created; require a
quick check for existing similar features as part of onboarding a new
feature.
Symptom: A backfill for a newly added feature silently produces nulls for a large fraction of historical rows because the backfill job's date range didn't cover the full window the feature's rolling aggregation needs (e.g. a 90-day rolling feature backfilled only 30 days back). Fix: Validate backfill completeness with a null-rate check per time bucket before enabling the feature for training, and always backfill with lookback margin equal to the feature's full aggregation window plus one period.
A ride-hailing company builds a feature store for a driver-acceptance model.
driver_id. Feature view driver_stats includes
trips_last_7d, avg_rating_30d, acceptance_rate_30d, each computed
nightly from an event stream with event_timestamp set to when the
underlying trip/rating event actually occurred.entity_df with one row per ride: driver_id,
event_timestamp = the ride's request time, label = accepted/declined.get_historical_features performs a point-in-time join: for the ride at
2026-06-14 09:03:00, it returns avg_rating_30d as computed from
ratings received strictly before that timestamp — not the driver's
current rating as of today.driver_stats feature view is materialized to a
Redis-backed online store every 15 minutes. At inference time, the
serving layer calls get_online_features for the incoming
driver_id, retrieving the latest materialized values — the identical
feature definitions used in training, just read from the online store
instead of the offline store.driver_stats
materialization has been failing for six hours due to a schema change
upstream; on-call fixes the pipeline and backfills the missed window
before the online store's staleness affects live predictions materially.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
22 skills in this plugin
/complete-mlops-platform-deployment-on-aws-from-scratchSequences a complete, end-to-end MLOps platform deployment on AWS from a bare AWS Organization to a production-ready platform serving a first retrained model — AWS landing zone, the SageMaker-vs-EKS+Kubeflow platform decision (EKS+Kubeflow is the worked path here), GPU node pools via the NVIDIA GPU Operator, MLflow experiment tracking on S3, a Kubeflow Pipelines retraining DAG, model registry/packaging with gated promotion, KServe canary/shadow serving, and drift monitoring. This is an integration/orchestration skill that sequences several existing tool-specific skills in the correct order and flags the handoff points between them — it does not restate their internals. Use when a user asks to "stand up an MLOps platform on AWS from scratch," "build the full ML training-to-serving pipeline on EKS/SageMaker," "give me the end-to-end sequence from AWS account to a retrained, monitored production model," or "decide between SageMaker and EKS+Kubeflow for our ML platform."
/complete-mlops-platform-deployment-on-azure-from-scratchSequences a complete, end-to-end MLOps platform deployment on Azure from a bare tenant to a production-ready platform serving a first retrained model — Azure landing zone, the Azure-ML-vs-AKS+Kubeflow platform decision (Azure ML is the worked path), GPU compute clusters/quota, MLflow-compatible experiment tracking, an Azure ML pipeline retraining DAG, Model Registry with gated promotion, managed online endpoints with traffic-split canary rollout, and data-drift monitoring. An integration/ orchestration skill that sequences existing tool-specific skills in the right order and flags handoff points — it does not restate their internals. Use when a user asks to "stand up an MLOps platform on Azure from scratch," "build the full ML training-to-serving pipeline on Azure ML/AKS," "give me the end-to-end sequence from Azure tenant to a retrained, monitored production model," or "decide between Azure ML and AKS+Kubeflow for our ML platform."
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin mlops-skillsOther plugins' skills for the same job