/comet:comet-mlfrom comet
Reference 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.
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.
None: SKILL.md is the whole skill.
Comet Experiment Management tracks ML runs (parameters, metrics, assets,
models), organizes them into workspaces and projects, and shows them in
configurable dashboard views. comet_ml is its Python SDK.
| Object | What it is | Get one with |
|---|---|---|
Experiment | A run you are writing to | comet_ml.start(...) |
API | Client for reading and managing a server | comet_ml.API() |
APIExperiment | A logged run you are reading (or patching) | api.get_experiment(ws, project, key_or_name), api.get_experiments(...), api.query(...) |
View | A saved dashboard layout | comet_ml.views.build_view(...), api.get_views(ws, project) |
Artifact / LoggedArtifact | Versioned dataset or file bundle | comet_ml.Artifact(name, type), experiment.get_artifact(name) |
Model | Model registry entry | api.get_model(ws, model_name) |
Hierarchy: workspace -> project -> experiment. An experiment is identified by its 32-character key. Names are not unique.
Every setting can be an environment variable, a ~/.comet.config (or
./.comet.config) entry, or a comet_ml.login(...) argument. Environment
variables win.
| Variable | Purpose |
|---|---|
COMET_API_KEY | API key (required) |
COMET_WORKSPACE | Default workspace |
COMET_PROJECT_NAME | Default project for new experiments |
COMET_URL_OVERRIDE | Self-hosted server, e.g. https://comet.example.com/clientlib/ |
COMET_START_ONLINE | false writes offline experiments to disk |
Rules:
[ -n "$COMET_API_KEY" ] || grep -q api_key ~/.comet.config 2>/dev/null && echo set || echo missing.comet login (interactive) or set
COMET_API_KEY. Do not ask them to paste the key into the chat.api.get_default_workspace() returns the workspace to use when the user
names none.When this skill sits inside the comet-ml/comet-python-sdk repository, the
comet_ml/ directory next to skills/ is the exact published source and its
docstrings are the reference. Otherwise read the installed package:
python -c "import comet_ml, os; print(os.path.dirname(comet_ml.__file__))".
| Looking for | File |
|---|---|
start() | comet_start/comet_start.py |
ExperimentConfig | comet_start/experiment_config.py |
Experiment.log_* | experiment.py (class CometExperiment) |
API, APIExperiment | api.py |
| Query DSL | query.py |
| Views and panels | views.py, api_objects/view.py |
| Settings | config/ |
Check the installed version with
python -c "import comet_ml; print(comet_ml.__version__)". Features newer
than the user's version fail with AttributeError or ImportError: notably
comet_ml.views needs 3.59.0 or later.
| Symptom | Likely cause |
|---|---|
InvalidAPIKey / 401 | Wrong key, or a cloud key against a self-hosted server (set COMET_URL_OVERRIDE) |
Experiment created in project general | No project_name and no COMET_PROJECT_NAME |
end() hangs on exit | Large uploads still in flight; raise COMET_TIMEOUT_UPLOAD or wait |
| Metrics missing from framework runs | comet_ml imported after the framework, so autologging could not patch it |
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-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)./comet-registryWork 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)./comet-viewsBuild and update Comet dashboard views and panels in code with comet_ml.views - project views and per-experiment views made of sections of line, bar, scatter, parallel-coordinates, scalar, image, data-table, Python (Streamlit) and JavaScript panels, plus filters and experiment-table settings - save them with API.create_view / update_view, and inspect, copy, standardize or harvest views across projects. Includes a local test harness for JavaScript panels. Use for "make a dashboard for this project", "add a loss chart to the view", "build a sweep view", "write a custom JavaScript panel", "create a Python panel", "copy this view to another project", "put the same view on every project". Not for logging the data the panels show (use comet-experiments) or for answering questions from the data (use comet-query).