Skip to content

Commit f82b4e9

Browse files
Deploying to gh-pages from @ dstackai/dstack@99dd34d 🚀
1 parent f03a33c commit f82b4e9

File tree

5 files changed

+150
-129
lines changed

5 files changed

+150
-129
lines changed

.well-known/skills/dstack/SKILL.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ Instead, use `dstack ps -v` to check status, or `dstack apply -d` for detached m
8989
- When user confirms deletion/stop operations, use `-y` flag to skip confirmation prompts
9090
- Avoid waiting indefinitely; display essential output once command is finished (even if by timeout)
9191

92+
### Interpreting user requests
93+
94+
**"Run something":** When the user asks to "run" a workload (dev environment, task, or service), use `dstack apply` with the appropriate configuration. Note: `dstack run` only supports `dstack run get --json` for retrieving run details—it cannot start workloads.
95+
96+
**"Connect to" or "open" a dev environment:** If a dev environment is already running, retrieve its IDE connection URL (`cursor://`, `vscode://`, etc.) from `dstack logs <run-name>` and provide it to the user.
97+
9298
## Configuration types
9399

94100
`dstack` supports five main configuration types, each with specific use cases. Configuration files can be named `<name>.dstack.yml` or simply `.dstack.yml`.
@@ -102,6 +108,7 @@ Instead, use `dstack ps -v` to check status, or `dstack apply -d` for detached m
102108

103109
**Best practices:**
104110
- Prefer giving configurations a `name` property for easier management
111+
- When configurations need credentials (API keys, tokens), list only env var *names* in the `env` section (e.g., `- HF_TOKEN`), not values. Recommend storing actual values in a `.envrc` file alongside the configuration, applied via `source .envrc && dstack apply`.
105112

106113
See configuration reference pages for complete parameter lists.
107114

SKILL.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ Instead, use `dstack ps -v` to check status, or `dstack apply -d` for detached m
8989
- When user confirms deletion/stop operations, use `-y` flag to skip confirmation prompts
9090
- Avoid waiting indefinitely; display essential output once command is finished (even if by timeout)
9191

92+
### Interpreting user requests
93+
94+
**"Run something":** When the user asks to "run" a workload (dev environment, task, or service), use `dstack apply` with the appropriate configuration. Note: `dstack run` only supports `dstack run get --json` for retrieving run details—it cannot start workloads.
95+
96+
**"Connect to" or "open" a dev environment:** If a dev environment is already running, retrieve its IDE connection URL (`cursor://`, `vscode://`, etc.) from `dstack logs <run-name>` and provide it to the user.
97+
9298
## Configuration types
9399

94100
`dstack` supports five main configuration types, each with specific use cases. Configuration files can be named `<name>.dstack.yml` or simply `.dstack.yml`.
@@ -102,6 +108,7 @@ Instead, use `dstack ps -v` to check status, or `dstack apply -d` for detached m
102108

103109
**Best practices:**
104110
- Prefer giving configurations a `name` property for easier management
111+
- When configurations need credentials (API keys, tokens), list only env var *names* in the `env` section (e.g., `- HF_TOKEN`), not values. Recommend storing actual values in a `.envrc` file alongside the configuration, applied via `source .envrc && dstack apply`.
105112

106113
See configuration reference pages for complete parameter lists.
107114

0 commit comments

Comments
 (0)