Skip to content
Machine Learning
Skill

/distil-cli

Use when building or training a model on the distil labs platform end to end: preparing a dataset (config.yaml, job_description.json, traces, train and test rows), running or analyzing any pipeline stage (building a test set or a train set from traces by relabelling and

From plugin
distil-cli-skill
1891 skill

Claude Code

$ npx -y skills add distil-labs/distil-cli-skill --skill distil-cli --agent claude-code

SKILL.md

distil-cli.SKILL.md
name: distil-cli
metadata:
  version: "16.0.0"
description: >
  Use when building, training, improving or evaluating a task-specific small language model on
  the distil labs platform, end to end or one step at a time: scoping the model with the user,
  writing or tuning the task description, building or expanding a test set, generating or
  relabelling training data, training a student, iterating until the model reaches the teacher,
  and deploying and evaluating it. Activate for phrasings like "build a model for X", "replace
  our GPT calls with a small model", "train a student model", "build a test set from my
  traces", "run a teacher eval", "generate synthetic data", "add more training data", "the
  score is low, what now", "train an OCR model on my scans", or "keep iterating until the model
  is as good as it gets". Also
  activate for distil labs lookups: distil CLI commands (distil auth, traces, dataset,
  teacher-evaluation, slm, deployment, inference-endpoint, api-keys, access-token), the distil
  labs REST API, config.yaml parameters, supported student and teacher models, evaluation
  metrics, or moving a seed dataset or training dataset into a Dataset.

Building Models

This skill builds a task-specific small language model (the **student**) on the distil labs platform. A large model (the **teacher**) writes the training data, and the student learns from it. The work follows one workflow, below: agree the scope, fix the task description, build a test set you can trust, then iterate on the training data until the student reaches the teacher, and finally deploy and evaluate it.

Before the first platform call, install the `distil` CLI and sign in (`references/execution/README.md` § Set up the CLI), and choose the backend: the CLI (`references/execution/cli.md`) by default, or the REST API (`references/execution/backend-api.md`) when the user prefers it (§ Choose the backend). Record the choice in the run log.

How the skill is organised

The skill is layered like a program. It ships no scripts: the protocols say what to compute, and you write the code each task needs, because every task's data format and metric differ. This file is the main logic: the order of the phases, every user gate, the iteration loop and the rules. Each other file is read only when the workflow needs it, and links only to the layers below it.

| Layer | Contents | Read it when | |---|---|---| | `phases/` | One file per phase: its steps and decisions | the workflow enters that phase | | `protocols/` | Routines several phases share: making rows, blind review, error analysis, the run log | a phase calls one | | `operations/` | One platform job each: configure, price, submit, wait, pull. No decisions | before running that job | | `references/` | Facts, one owner each: config, mutators, metrics, models, formats, billing | you need a specific fact | | `references/execution/` | Every CLI command and REST request | you run a command |

Phases never link to each other. They share data through the **run log** (`protocols/run-log.md`): each phase reads what earlier phases wrote there and writes its own outputs back. This keeps every phase readable on its own, and lets the work resume after a context reset.

The data model

One entity holds the data: the **Dataset**, with `config.yaml`, `job_description.json`, `traces.jsonl`, `train.jsonl` and `test.jsonl` (any data file may be empty). A Dataset is uploaded, created from a traces object, or produced from another Dataset by one of four expand operations: relabel traces into the test or the train split, or generate synthetic rows into the test or the train split. Each expand creates a new Dataset whose parent is the previous one, so a project is a chain of Datasets. A teacher evaluation or a trained model is made from any Dataset in the chain (`references/platform.md` § Entities and jobs).

Rules

These hold in every phase. Each comes with its reason, so you can apply it to cases it does not name.

  • **Make and fix data on the platform first; fix it locally when that helps.** Rows come from

the user's files, from relabelling or from synthetic generation. When rows are wrong, the first fix is the setting that produced them: the config, the mutators, the generation instructions, the LLM validator, or the job description, because that fixes every later run too. When a setting cannot fix it, or a local step is simpler (for example dropping generated rows whose JSON does not parse, or correcting a label the review proved wrong), download the Dataset, fix or filter the rows with a script, and upload the result as a new Dataset. This is a normal option, not an exception: it needs no approval. Record the script, what it changed and the row counts in the run log, because the upload has no parent on the platform and the log is then the only record of how its rows were made.

  • **Never add rows from outside the platform.** No downloaded datasets, no scripted or

hand-written rows, unless the user asks. A rule you would encode in a script goes into the generation instructions or a mutator, so the teacher writes the rows.

  • **One change per iteration.** Otherwise a score change cannot be traced to its cause. Smoke

runs that repair the change itself are part of the same change.

  • **Training data only grows.** Each iteration adds rows to the best Dataset so far, because

more correct data helps the student generalise. When an iteration makes the model noticeably worse, fork the next iteration from the earlier Dataset instead.

  • **Price every submission with `--dry-run` first** and add the price to the spending in the

run log before submitting (`references/platform.md` § Billing). The budget is the user's, and the dry run is the only way to see a price before it is charged.

  • **Every score is a sample.** The teacher and the judge run at non-zero temperature, and two

trainings on the same data give different models. Never act on a diff

Read more
@distil-labs
Ships withdistil-cli-skill

An Agent Skill for building task-specific small language models on the distil labs platform: from raw data or production traces, through teacher evaluation and synthetic data generation, to a finetuned, evaluated, deployable student model.

Stars on GitHub

Momentum

stars in total
189
Star history of distil-labs/distil-cli-skill on GitHub, a chart by star-history.com

More skills from other plugins.

analyze-ci

analyze-ci

Analyze failed GitHub Action jobs. Takes one or more GitHub URLs (job, workflow-run, or PR) and summarizes each failure with root…

mlflow9d29k
@mlflow@mlflowInstall Skill
hf-cli

hf-cli

Hugging Face Hub CLI (`hf`) for downloading, uploading, and managing models, datasets, spaces, buckets, repos, papers, jobs, and…

skills3w11k
@huggingface@huggingfaceInstall Skill
feast-architecture

feast-architecture

Internals of the Feast codebase — how each component works, where the key abstractions live, and the data flow through the…

feast13d7.4k
@feast-dev@feast-devInstall Skill
add-ecosystem

add-ecosystem

Add a new ecosystem and base model to basemodel.constants.ts. Use when onboarding a new model family from providers like Baidu,…

civitai10d7.3k
@civitai@civitaiInstall Skill

Questions about distil-cli.

Which coding agents can use distil-cli?
distil-cli installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.