/comet:comet-queryfrom comet
Answer 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).
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.
Credentials and configuration: see the comet-ml skill. The query DSL and
more read recipes: references/api-reading.md.
Step-by-step workflows for comparing runs, debugging a run, checking a run
against thresholds, summarizing a sweep and a project overview:
references/workflows.md.
list_experiments,
get_experiment_summary): use the tools. The ones this skill uses are
read-only, cached, and keep large data out of the conversation.comet_ml.API() and run it. Print only what answers the question.Always pass the workspace and project explicitly. Without them, MCP tools
fall back to the default workspace and project general. When the user names
neither, get the default with get_default_workspace (MCP) or
api.get_default_workspace(), and list projects to confirm.
| Question | Tool |
|---|---|
| Which projects exist? | list_projects(workspace) |
| Best / worst / top N runs by a metric | rank_experiments(project_name, metric_names, workspace, ...) (comet-mcp 1.6+) |
| Latest runs | list_experiments(workspace, project_name, ...) sorted by start time |
| Runs with a tag | find_tagged_experiments(tag, workspace, project_name) |
| Runs matching a metric/param condition | query_experiments(...) |
| Which metric/param names exist? | get_project_logged_item_names(workspace, project_name) |
| Final and best values for one run | get_experiment_summary(experiment_id) |
| Hyperparameters | get_experiment_parameters(experiment_id) |
| Name, tags, URL, status | get_experiment_details(experiment_id) |
| Curves across runs | get_experiment_metric_data(experiment_ids, metric_names, x_axis) |
| Training progress | get_experiment_training_progress(experiment_id, metric_names) |
| Many runs as a table | experiment_spreadsheet(...) (writes a CSV resource) |
| Logs / code | get_experiment_output, get_experiment_code |
| Assets | get_experiment_assets, analyze_experiment_asset |
| Views on a project | list_views(project_name, workspace) |
Issue independent calls together. Check exact arguments in the tool schema.
import comet_ml
from comet_ml.query import Metric, Parameter, Tag
api = comet_ml.API()
ws = api.get_default_workspace()
# Find runs: conditions combined with & (use api.search for | and paging)
runs = api.query(ws, "my-project",
(Metric("val_acc") > 0.9) & (Parameter("optimizer") == "adam"))
# Compare: summaries hold last/min/max per metric
for exp in runs:
summary = {m["name"]: m for m in exp.get_metrics_summary()}
params = {p["name"]: p["valueCurrent"] for p in exp.get_parameters_summary()}
print(exp.get_name(), exp.url,
summary["val_acc"]["valueMax"], params.get("lr"))
| Need | Call |
|---|---|
| One run by key | api.get_experiment_by_key(key) |
| One run by name | api.get_experiment(ws, project, name) |
| All runs in a project | api.get_experiments(ws, project, sort_by=..., sort_order=...) |
| Metric and parameter names in a project | api.get_query_variables(ws, project) |
| Curves for many runs as a DataFrame | api.get_metrics_df(keys, ["val_loss"], x_axis="step") |
| Full metric history for one run | exp.get_metrics("val_loss") |
| Tags, logs, code, system info | exp.get_tags(), exp.get_output(), exp.get_code(), exp.get_system_details() |
| Assets | exp.get_asset_list(), exp.get_asset_by_name(name) |
| Registry | api.get_registry_model_names(ws), api.get_registry_model_details(ws, name), api.get_model(ws, name) |
valueMax, valueMin, valueCurrent (last). "Final" means
valueCurrent, not the max.exp.url or the URL from
get_experiment_details).This skill never changes data. Deleting, archiving, moving, renaming, tagging, or editing registry stages are writes: confirm with the user first, and do not do them as a side effect of answering a question.
Tested end to end against a Comet server; each prints a summary: line and checks its own result.
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-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).