Skip to main content
skill CX Codex

domain-ml — Claude Code skill: what it does, how to install

A Rust-focused skill for ML and AI app design, covering model loading, tensor handling, batching, streaming, and GPU inference.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add actionbook/rust-skills --skill domain-ml -a claude-code
Open on GitHub

What domain-ml does

domain-ml gives Rust projects a set of design constraints for machine learning and AI work. It covers memory-aware tensor handling, streaming for large data, batched inference, one-time model loading, and asynchronous data delivery for GPU workloads. Reproducibility is addressed through seeded randomness and versioning.

The skill maps common tasks to crates: tract for ONNX inference, candle and burn for training and inference, tch-rs for PyTorch bindings, ndarray for tensors, polars for data processing, and fastembed for embeddings. It also describes OnceLock<Model>, iterator-based streaming, and splitting inputs into batches.

When a model is trained in Python and deployed in Rust, the ONNX plus tract route is the clearest fit described here. GPU work depends on CUDA or Metal support in the selected backend, and large tensors should avoid unnecessary copies.

What it helps with

  • design an ML application in Rust
  • choose a crate for ONNX inference
  • process inference inputs in batches
  • reuse a loaded model across requests
  • connect streaming data with GPU inference

Example prompts for the agent

  • Design a Rust inference service for model.onnx that loads the model once.
  • Compare tract, candle, and tch-rs for my Rust ML application.
  • Refactor this inference flow to batch inputs and avoid copying large tensors.

How to install domain-ml

1Skills CLI (Vercel)

npx skills add actionbook/rust-skills --skill domain-ml -a claude-code

2Manually: put the files in place

~/.claude/skills/domain-ml/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/domain-ml/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about domain-ml

How do I install domain-ml in Claude Code?

Run npx skills add actionbook/rust-skills --skill domain-ml -a claude-code, then check ~/.claude/skills/domain-ml/SKILL.md. The Claude Code method repeats the install command as npx skills add actionbook/rust-skills --skill domain-ml -a claude-code.

What does domain-ml do?

This skill guides architecture for ML and AI applications in Rust. It covers crate selection, model loading, batching, streaming, memory use, and GPU-related design.

Which libraries does domain-ml cover?

It points to tract for ONNX inference, candle and burn for Rust training and inference, and tch-rs for PyTorch models. ndarray, polars, and fastembed cover tensors, data processing, and embeddings.

Similar skills

Everything for AI and ML →

From the same set33

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor