Dstack Prototyping logo

Dstack Prototyping

OrganizationPopular
dstackai
dstack-prototyping

Use with the dstack skill for model-serving work when the image, serving command, resources, backend/fleet choice, or service behavior is not proven. Guides task-first prototyping on real hardware, choosing fleets/backends that can reuse idle instances and caches, checking vLLM/SGLang sources, and verifying the final dstack service with a model request.

Overview

Publisherdstackai
Repositorydstack
Skill namedstack-prototyping
Stars
2.3K
Forks
262
Bundled files
Instructions only
LicenseMPL-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by dstackai on GitHub. Read the source before you install it.

Installation

Install the Dstack Prototyping AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dstackai/dstack.git /tmp/dstack
mkdir -p .claude/skills
cp -r /tmp/dstack/skills/dstack-prototyping .claude/skills/dstack-prototyping
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Dstack Prototyping in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Dstack Prototyping on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Dstack Prototyping is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

dstack Prototyping

Use /dstack for CLI commands, YAML fields, apply/attach behavior, service URLs, and other dstack syntax. This skill explains how to use dstack runs while the model-serving configuration is still unknown.

Goal

Find a working dstack service configuration for the requested model.

Before submitting a service, use a task on real hardware to test the serving image, install/runtime assumptions, model download, cache path, command, port, launch flags, resources, env vars, backend/fleet choice, and local model request. Then submit the same configuration as a service and verify the model through the dstack service URL.

Choose Where To Run

Pick the offer whose hardware best fits the goal at hand. Only when several offers fit comparably, choose a VM-based backend, an SSH fleet, or a Kubernetes fleet: they support idle instances and/or instance volumes, so later runs reuse the provisioned/idle instance or instance volumes for caching model weights (and possibly other writes), while container-based backends start clean on every run.

Fetch https://dstack.ai/docs/concepts/backends.md and classify backends from the fetched document, not from memory.

If the intention is to use PD disaggregation, the fleet must use placement: cluster. Since PD disaggregation implies running a router, unlike workers that must run on GPUs, the router normally should run on a CPU instance. Use dstack fleet to see existing fleets and dstack fleet get <fleet name> --json to inspect a specific fleet.

Check Serving Sources

Check serving-framework sources early enough to choose the image, command, launch flags, resources, cache paths, request format, and expected model behavior.

For vLLM and SGLang, use these as credible sources:

  • vLLM recipes and model index: https://recipes.vllm.ai/ and https://recipes.vllm.ai/models.json
  • SGLang docs: https://docs.sglang.io/ (fetch /llms.txt for the page index)
  • SGLang model recipes: https://docs.sglang.io/cookbook/autoregressive/intro
  • Release notes: https://github.com/vllm-project/vllm/releases and https://github.com/sgl-project/sglang/releases
  • Performance-loop methodology (profiling, benchmark contracts): https://www.lmsys.org/blog/2026-07-02-agent-assisted-sglang-development

Use A Task Before Service

Before submitting a service, start a long-lived task:

yaml
commands:
  - sleep infinity

or an equivalent idle command.

Submit the task detached, attach or SSH into it when available, and run commands inside the live environment. Test the image, installs, model download and cache path, serving command, port, launch flags, local model request, and expected model behavior.

When starting a long-running command in the background from a non-interactive SSH command, use nohup, redirect stdin from /dev/null, and redirect stdout/stderr to a log file so the SSH command returns while the process keeps running. For example (the command can be any long-running command):

shell
nohup vllm serve ... </dev/null > /tmp/vllm.log 2>&1 &

If the image, hardware choice, or major install path changes, submit another task so the changed setup is tested before service verification.

Do not move to a service after checking only GPU visibility, imports, logs, or a health endpoint. Start the server inside the task and send a request that uses the requested model. For a chat or reasoning model, check the response behavior the endpoint is expected to support, such as reasoning output when that model is supposed to expose it.

Follow /dstack structured status guidance when polling task or service status. After requesting a task or service stop before another submission, wait until that run reaches a terminal status. This allows dstack to reuse its instance or instance volumes when available.

Verify As A Service

Submit the service after the task has verified the configuration: image, command, port, resources, env vars, cache mounts if used, backend/fleet choice, and model request.

Use the service as a duplicate check of the same configuration under dstack service runtime. The model request that worked locally in the task must also work through the dstack service URL.

If service verification fails because the image, install, model download, command, resources, cache, or model behavior needs to change, go back to a task. If the tested serving setup is still right and only the dstack service configuration is wrong, fix the configuration and submit the service again.

PD disaggregation

If the intention is to use PD disaggregation:

  • Use node groups for the task and replica groups for the service: tasks' node groups are the equivalent of services' replica groups.
  • In both cases, you run a router and prefill/decode workers separately, and you need to use a fleet with an interconnect (placement: cluster).
  • With tasks, still use sleep infinity even when using groups (set it in each group's commands; top-level commands is not allowed with groups), and run the actual commands on each node interactively over SSH.
  • When testing inference, call the router endpoint, not the workers directly (unless you want to test if they are alive).
  • Look for "Node groups" and "PD disaggregation" in https://dstack.ai/docs/concepts/tasks.md and "Replica groups" and "PD disaggregation" in https://dstack.ai/docs/concepts/services.md.

Frequently asked questions

What does the Dstack Prototyping AI skill do?

Use with the dstack skill for model-serving work when the image, serving command, resources, backend/fleet choice, or service behavior is not proven. Guides task-first prototyping on real hardware, choosing fleets/backends that can reuse idle instances and caches, checking vLLM/SGLang sources, and verifying the final dstack service with a model request.

Why use Dstack Prototyping on TypingMind?

Because you install it once and use it with any model. Dstack Prototyping is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Dstack Prototyping in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/dstackai/dstack/tree/master/skills/dstack-prototyping. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Dstack Prototyping?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Dstack Prototyping?

As many as you like. As long as a model supports skills, you can use Dstack Prototyping with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Dstack Prototyping AI skill free?

Yes. It is published on GitHub by dstackai under the MPL-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇