# dstack

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

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 1 install · ★ 2319 repo stars
- Author: dstackai
- License: MPL-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/dstackai/dstack/tree/HEAD/skills/dstack/SKILL.md
- Updated: 2026-10-29
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/dstack

## What it 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.

## Requirements
- Works with: Kubernetes

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add dstackai/dstack --skill dstack -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/dstack/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/dstack/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add dstackai/dstack --skill dstack -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/dstack/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add dstackai/dstack --skill dstack -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/dstack/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install dstackai/dstack skills/dstack
```

2. **Manually: put the files in place**
- File: `.github/skills/dstack/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add dstackai/dstack --skill dstack -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/dstackai/dstack --path skills/dstack
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/dstack/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add dstackai/dstack --skill dstack -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/dstackai/dstack/tree/HEAD/skills/dstack/SKILL.md

## When to use it
- 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
- 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`

## Similar
- [digitalocean-compute](https://affpapa.org/en/nevibecode/skills/digitalocean-compute.md) — skill · 435 installs
- [azure-kubernetes-service](https://affpapa.org/en/nevibecode/skills/azure-kubernetes-service.md) — skill · 248 installs
- [cloud-devops](https://affpapa.org/en/nevibecode/skills/cloud-devops.md) — skill · 107 installs
- [cicd-automation-kubernetes-architect](https://affpapa.org/en/nevibecode/agents/cicd-automation-kubernetes-architect.md) — subagent · ★ 42780 repo stars
- [llm-inference-scaling](https://affpapa.org/en/nevibecode/skills/llm-inference-scaling.md) — skill · 380 installs
- [aks-skills](https://affpapa.org/en/nevibecode/plugins/aks-skills.md) — plugin · ★ 3232 repo stars

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
