New to Claude Skills? Learn how to install them →

jeremylongshore on GitHub

Model Versioning Tracker

Free

Efficiently manage and track your AI/ML model versions.

Get this skill

Free · Opens the source repo

What Model Versioning Tracker does

The Model Versioning Tracker skill enables users to effectively manage and track AI and machine learning model versions using tools like MLflow, DVC, or Weights & Biases. This skill allows users to log essential model metadata, such as hyperparameters and training data hashes, while also recording evaluation metrics like accuracy and latency. It facilitates the management of model registry transitions, helping users move models through different stages such as Staging, Production, and Archived. Additionally, the skill generates model cards that document the lineage and performance of models, ensuring compliance and transparency in AI workflows.

To use this skill, users must have a functioning MLflow tracking server and the necessary Python environment set up with relevant libraries. The skill provides a structured workflow for logging model versions, registering them in the MLflow Model Registry, and transitioning them through various stages. Users can also compare different model versions to assess performance improvements and generate reports that highlight key metrics. This is particularly useful for teams looking to maintain high standards of model performance and accountability.

The Model Versioning Tracker is ideal for data scientists, machine learning engineers, and AI practitioners who need to keep track of multiple model iterations and ensure that the best-performing models are deployed in production. By automating the tracking and management of model versions, this skill helps streamline the development process and enhances collaboration among team members. It is also beneficial for organizations that prioritize model governance and want to document their models' performance and limitations systematically.

When to use it

Use this skill when you need to manage multiple versions of AI/ML models, log performance metrics, or document model lineage.

When not to use it

This skill may not be suitable for simple projects with only one model version or for users not utilizing MLflow or similar tools.

What you can build with it

Tracking a New Model Version

Log a new image classification model version, recording hyperparameters and metrics before registering it in the MLflow Model Registry.

Comparing Model Versions

Query and compare different versions of a model to decide which one to promote to production based on performance metrics.

Generating Model Cards for Compliance

Create structured Markdown model cards from registered model metadata for compliance and review purposes.

How to install Model Versioning Tracker

View source

1. Install with the skills CLI

npx skills add jeremylongshore/claude-code-plugins-plus-skills/tracking-model-versions --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by jeremylongshore

Model Versioning Tracker

Overview

Track and manage AI/ML model versions using MLflow, DVC, or Weights & Biases. Log model metadata (hyperparameters, training data hash, framework version), record evaluation metrics (accuracy, F1, latency), manage model registry transitions (Staging, Production, Archived), and generate model cards documenting lineage and performance.

Prerequisites

  • MLflow tracking server running locally or remotely (mlflow server or managed MLflow)
  • Python 3.9+ with mlflow, pandas, and the relevant ML framework installed
  • Model artifacts accessible on the local filesystem or cloud storage (S3, GCS)
  • Write access to the MLflow tracking URI and artifact store

Instructions

  1. Connect to the MLflow tracking server by setting MLFLOW_TRACKING_URI and verify connectivity with mlflow experiments list.
  2. Create or select an MLflow experiment for the model project using mlflow experiments create --experiment-name <name>.
  3. Log a new model version: start an MLflow run, log parameters (learning rate, epochs, batch size), log metrics (accuracy, loss, F1 score), and log the model artifact with mlflow.<flavor>.log_model().
  4. Register the model in the MLflow Model Registry using mlflow.register_model() with the run URI and a descriptive model name.
  5. Transition the model version through stages: None -> Staging -> Production using client.transition_model_version_stage(). Archive previous production versions.
  6. Compare model versions by querying metrics across runs with mlflow.search_runs() and generating comparison tables showing metric improvements between versions.
  7. Generate a model card from the registered model metadata, including training data description, evaluation metrics, intended use, limitations, and ethical considerations. See ${CLAUDE_SKILL_DIR}/assets/model_card_template.md.
  8. Set up automated alerts for model performance degradation by comparing production metrics against baseline thresholds stored in the model registry.

See ${CLAUDE_SKILL_DIR}/assets/example_mlflow_workflow.yaml for a complete workflow configuration.

Examples

Tracking a new image classification model version: Log a ResNet-50 fine-tuned on a custom dataset. Record hyperparameters (lr=0.001, epochs=50, optimizer=Adam), metrics (val_accuracy=0.94, val_loss=0.18, inference_latency_ms=12), and the serialized model artifact. Register as version 3 in the model registry and transition to Staging for validation.

Comparing model versions before production promotion: Query MLflow for all versions of the sentiment-analysis model. Generate a comparison table showing accuracy improved from 0.87 (v2) to 0.91 (v3) while inference latency increased from 8ms to 15ms. Recommend promoting v3 to Production only if latency is acceptable for the use case.

Generating a model card for compliance review: Extract metadata from MLflow model registry version 5: training dataset (100K customer reviews), evaluation results (F1=0.89 on held-out test set), known limitations (struggles with sarcasm and multilingual input), and intended use (customer feedback classification). Output a structured Markdown model card.

Output

  • MLflow run with logged parameters, metrics, and model artifact
  • Model registry entry with version number and stage assignment
  • Version comparison table with metric deltas across runs
  • Model card in Markdown format documenting lineage, performance, and limitations

Error Handling

ErrorCauseSolution
MLflow connection refusedTracking server not running or wrong URIVerify MLFLOW_TRACKING_URI is correct; start server with mlflow server --host 0.0.0.0 --port 5000
Artifact upload failedInsufficient permissions on artifact storeCheck S3/GCS bucket permissions; verify IAM role has write access to the artifact path
Model registration conflictModel name already exists with incompatible schemaUse a versioned model name or delete the conflicting registry entry
Metrics not loggedMLflow run ended before logging completedEnsure all log_metric() calls happen within the active run context (with mlflow.start_run():)
Stage transition deniedModel version already in target stageArchive the existing version in that stage first, then retry the transition

Resources

Frequently asked questions about Model Versioning Tracker

Similar skills