Skip to main content
skill CX Codex

dstack — Claude Code skill: what it does, how to install

Guides coding assistants to provision GPU infrastructure, apply *.dstack.yml files, and manage tasks across clouds or Kubernetes clusters.

MPL-2.0 1 installs ★ 2,319 updated 2026-10-29

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

What dstack does

This skill teaches the agent how to run the dstack CLI safely. The instructions prevent terminal deadlocks by forcing non-blocking runs with the -d flag. It guides the model to inspect execution plans first before applying cluster changes.

Run statuses are read via dstack run get <run-name> --json instead of screen scraping human-oriented tables. Plain console output from dstack ps can contain arbitrary messages like missing cloud offers, which trips up language models. The prompt also explicitly bars inventing non-existent CLI flags and YAML properties.

Commands require an active dstack server and a local configuration under ~/.dstack/config.yml. Without them, CLI executions will immediately fail on validation.

What it helps with

  • Submit detached GPU training runs and service deployments
  • Preview infrastructure changes before applying *.dstack.yml files
  • Track job lifecycles programmatically using JSON status fields
  • Establish background SSH tunnels and forward ports to running environments

Example prompts for the agent

  • Preview the execution plan for train.dstack.yml without submitting it
  • Launch gpu-dev.dstack.yml in detached mode and fetch the IDE connection link
  • Inspect the current JSON status for run fine-tune-v1

How to install dstack

1Skills CLI (Vercel)

npx skills add dstackai/dstack --skill dstack -a claude-code

2Manually: put the files in place

~/.claude/skills/dstack/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/dstack/

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

Questions about dstack

How to install dstack in Claude Code?

Run npx skills add dstackai/dstack --skill dstack -a claude-code in your terminal. It stores the skill definition in ~/.claude/skills/dstack/SKILL.md.

What does the dstack skill do?

It teaches the agent strict execution routines for GPU workloads, enforcing non-blocking CLI flags and forbidding invented YAML parameters.

Why does the skill enforce JSON polling over dstack ps?

Human-readable tables often substitute status values with descriptive alerts like missing offers. Reading dstack run get <run-name> --json guarantees predictable machine-readable state values.

Similar skills

All skills for AI and ML →

Project sponsors

Companies that keep this analytics open