The skill lives in the repo at
.claude/skills/adding-a-model/. In Claude Code, type /adding-a-model; you can also read it as plain Markdown.adding-a-model skill
Pick the right capability interface, register it, and document it.
The process
- Pick the capability interface —
GenerativeModel(LLMs/VLMs),ZeroShotClassifier(CLIP-style), orSupervisedClassifier(timm). It decides whichtask_types the backend can serve. - Implement and register — subclass the interface, implement only the batch hooks, and register it with
@register_modeland a cache-safemodel_name. Declare honestcapabilitiesso the evaluator rejects unsupported (model, task) pairs. - Make it loadable — add a per-family config under
mill/models/configs/, and gate optional dependencies with a clearImportErrorplus apyproject.tomlextra. - Validate and document — sanity-check on a benchmark its interface supports, then add a backend section to the Models reference.