/comet:comet-registryfrom comet
Work with the Comet Model Registry - register a model version from an experiment, list models and versions with their status, tags and source run, promote or demote a version's status (Development, Staging, QA, Production), add or remove tags, and download or load a registered version for serving. Shows current state and asks for confirmation before every change. Use for "register this model", "promote 1.2.0 to production", "what's in production", "tag it champion", "load the production model". Not for logging models to a run (use comet-experiments).
Ships in comet. 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.
Read when SKILL.md points to them; scripts run unread.
A registered model has versions (semver). Each version has one
status (by default None, Development, Staging, QA, Production;
workspaces can change the list) and any number of free-form tags.
Deployment pipelines select by status; people slice by tags.
Registry changes are visible to the whole team and can trigger deploy webhooks. Show the current state and get an explicit "yes" before every change.
scripts/registry.py (next to this file) wraps the calls. Use it instead of
python -c with interpolated names:
R=<path to this skill>/scripts/registry.py
python $R list-models
python $R allowed-statuses
python $R list --model NAME # every version: status, tags, experimentKey
python $R list --model NAME --status Production
python $R set-status --model NAME --version 1.2.0 --status Staging
python $R add-tag --model NAME --version 1.2.0 --tag champion
python $R remove-tag --model NAME --version 1.2.0 --tag champion
Pass --workspace WS (before the command) when it is not COMET_WORKSPACE
or the key's default.
Register from the finished run through APIExperiment, which raises when
the server rejects the version (Experiment.register_model during a run
only logs a rejection):
import comet_ml
api = comet_ml.API()
api.get_experiment_by_key(KEY).register_model(
"classifier", # the name used in experiment.log_model
version="1.0.3", # semver; defaults to 1.0.0 and duplicates are rejected
status="Development", # one of allowed-statuses
tags=["baseline"],
metadata={"dataset": "train-data:2.0.0", "val_acc": 0.97},
)
log_model.list --model NAME: patch for a retrain,
minor for new hyperparameters, major for new data or architecture.list --model NAME and allowed-statuses. Show them as a table.
Work out the operations. Comet does not clear a status from the
previous holder: moving Production to a new version needs a second
operation to demote the old one. Ask when the request is ambiguous
("tag it for production": status or tag?).
If the user wants a gate, check the source run's metrics first
(experimentKey from list, then comet-query) and refuse on failure.
Show the exact change and wait for "yes":
Model: classifier
SET STATUS 1.0.3: Development -> Production
SET STATUS 1.0.2: Production -> None
ADD TAG 1.0.3: +release-2026-11
Pipelines that load status Production pick up 1.0.3 on their next run.
Run one command per operation; stop at the first failure and report what did and did not apply. Do not retry a half-applied change.
Run list again and show the result. If the workspace requires approval,
set-status files a request that an owner approves in the UI. Say so
rather than reporting the change as done.
Load by status or version from the registry, never from a local path:
model = api.get_model(workspace, "classifier")
version = model.find_versions(status="Production")[0]
model.download(version, output_folder=f"models/classifier/{version}")
Framework loaders also accept registry URIs (registry://WS/NAME for the
latest version, registry://WS/NAME:VERSION for one version):
comet_ml.integration.sklearn.load_model(uri) returns the estimator;
comet_ml.integration.pytorch.load_model(uri) returns a state_dict to pass
to your module's load_state_dict. Models must have been logged with the
matching comet_ml.integration.<framework>.log_model.
Other Model methods: get_details(version), status(version),
tags(version), get_assets(version), get_version_history(version).
api.download_registry_model is deprecated; use Model.download.
Tested end to end against a Comet server; each prints a summary: line and checks its own result.
allowed-statuses.Production.version= after the first.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub comet-ml/comet-python-sdk --plugin comet5 skills in this plugin
/comet-experimentsAdd Comet experiment tracking to ML code and run it - create experiments with comet_ml.start(), log parameters, metrics, curves, images, tables, confusion matrices, models and artifacts, use framework autologging (PyTorch, Keras, sklearn, XGBoost, LightGBM, ...), run sweeps with the Comet Optimizer, work offline, and report the experiment URL. Use for "track this training run in Comet", "log metrics to Comet", "add comet_ml to my script", "run an experiment", "sweep these hyperparameters", "register this model". Not for reading past runs (use comet-query) or building dashboards (use comet-views)./comet-mlReference for the Comet ML Python SDK (comet_ml) - credentials and configuration, self-hosted servers, the object model (Experiment, API, APIExperiment, View, Artifact, Model), and how to look up exact signatures in the SDK source. Use for "how do I configure comet", "which comet_ml class does X", "what's the signature of log_X", "is my Comet key set up". For running experiments use comet-experiments; for views and panels use comet-views; for answering questions from Comet data use comet-query; for the model registry use comet-registry./comet-queryAnswer questions from a Comet server's data - find, filter and compare experiments, read metrics, curves, hyperparameters, tags, system info, logs, code and assets, list projects and workspaces, and look up registered models. Uses the Comet MCP server when connected, else comet_ml.API scripts. Use for "which run had the best val accuracy", "compare these experiments", "what learning rate did run X use", "show me the loss curve", "how many experiments are in project Y", "what changed between the last two runs", "which model version is in production". Read-only. Not for logging new runs (use comet-experiments) or building dashboards (use comet-views).