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
npx skills add dstackai/dstack --skill dstack -a claude-codeWhat 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.ymlfiles - 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.ymlwithout submitting it - Launch
gpu-dev.dstack.ymlin 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-code2Manually: put the files in place
~/.claude/skills/dstack/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/dstack/
1Skills CLI (Vercel)
npx skills add dstackai/dstack --skill dstack -a codex2Manually: put the files in place
.agents/skills/dstack/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add dstackai/dstack --skill dstack -a cursor2Manually: put the files in place
.cursor/skills/dstack/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install dstackai/dstack skills/dstack2Manually: put the files in place
.github/skills/dstack/SKILL.md1Skills CLI (Vercel)
npx skills add dstackai/dstack --skill dstack -a gemini-cli2Platform CLI
gemini skills install https://github.com/dstackai/dstack --path skills/dstackManually: put the files in place
.devin/skills/dstack/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add dstackai/dstack --skill dstack -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
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.