dstackai/dstack/skills/dstack/SKILL.md
dstack
dstack is an open-source control plane for GPU provisioning and orchestration across GPU clouds, Kubernetes, and on-prem clusters.
- Source repository stars
- 2,227
- Declared platforms
- 0
- Static risk flags
- 3
- Last source update
- 2026-08-28
- Source checked
- 2026-08-28
Decision brief
What it does: where it fits
dstack is an open-source control plane for GPU provisioning and orchestration across GPU clouds, Kubernetes, and on-prem clusters.
Not for
- Use JSON output for detailed inspection:
- Check verbose run status:
Compatibility matrix
Platform support, with evidence labels
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
Inspect first. Install second.
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/dstackai/dstack --skill "skills/dstack"Inspect the Agent Skill "dstack" from https://github.com/dstackai/dstack/blob/e828c9e14ee8816e86b8cf7432047252d4c4177f/skills/dstack/SKILL.md at commit e828c9e14ee8816e86b8cf7432047252d4c4177f. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
What the source asks the agent to do
- 01
Verification before execution
When uncertain about any CLI flag or YAML property, run dstack --help first.
When uncertain about any CLI flag or YAML property, run dstack --help first.Never guess or invent flags. Example verification commands:If a command or flag isn't documented, it doesn't exist. - 02
How it works
dstack operates through three core components:
dstack server - Can run locally, remotely, or via dstack Sky (managed)dstack CLI - Applies configurations and manages or inspects fleets, runs,dstack configuration files - YAML files ending with .dstack.yml - 03
Quick agent flow (detached runs)
1) Show plan: echo "n" | dstack apply -f 2) If plan is OK and user confirms, apply detached: dstack apply -f -y -d 3) Check the run: dstack run get --json 4) If dev-environment or task with ports and running: attach to surface IDE link/ports/SSH alias (agent runs attach in backg…
Show plan: echo "n" | dstack apply -fIf plan is OK and user confirms, apply detached: dstack apply -f -y -dCheck the run: dstack run get --json - 04
Agent execution guidelines
Commands that stream indefinitely in the foreground: - dstack attach - dstack apply without -d for runs - dstack ps -w
NEVER reformat, summarize, or paraphrase CLI output. Display tables, status output, and error messages exactly as returned.When showing command results, use code blocks to preserve formatting.If output is truncated due to length, indicate this clearly (e.g., "Output truncated. Full output shows X entries."). - 05
Output accuracy
NEVER reformat, summarize, or paraphrase CLI output. Display tables, status output, and error messages exactly as returned.
NEVER reformat, summarize, or paraphrase CLI output. Display tables, status output, and error messages exactly as returned.When showing command results, use code blocks to preserve formatting.If output is truncated due to length, indicate this clearly (e.g., "Output truncated. Full output shows X entries.").
Permission review
Static risk signals and limitations
Runs scripts
The documentation asks the agent to run terminal commands or scripts.
**When uncertain about any CLI flag or YAML property, run `dstack <command> --help` first.**Sends data out
The documentation includes sending, uploading, or posting data to a remote service.
curl -sS -X POST "https://<run name>.<gateway domain>/v1/chat/completions" \Network access
The documentation includes network, browsing, or remote request actions.
curl -sS -X POST "https://<run name>.<gateway domain>/v1/chat/completions" \Evidence record
Why each signal appears
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 90/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 2,227 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Provenance and original SKILL.md
- Repository
- dstackai/dstack
- Skill path
- skills/dstack/SKILL.md
- Commit
- e828c9e14ee8816e86b8cf7432047252d4c4177f
- License
- MPL-2.0
- Collected
- 2026-08-28
- Default branch
- master
View the original SKILL.md
dstack
Overview
dstack provisions and orchestrates workloads across GPU clouds, Kubernetes, and on-prem via fleets.
When to use this skill:
- Running or managing dev environments, tasks, or services on dstack
- Creating, editing, or applying
*.dstack.ymlconfigurations - Managing fleets, volumes, gateways, and checking available offers
How it works
dstack operates through three core components:
dstackserver - Can run locally, remotely, or via dstack Sky (managed)dstackCLI - Applies configurations and manages or inspects fleets, runs, logs, events, volumes, gateways, and offers; it uses project configurations stored in~/.dstack/config.yml, which can be managed withdstack projectdstackconfiguration files - YAML files ending with.dstack.yml
dstack apply shows a plan and submits configuration changes. For run
configurations, it attaches when the run reaches running by default: it
configures SSH access, forwards declared ports, and streams logs. With -d, it
submits and exits.
Quick agent flow (detached runs)
- Show plan:
echo "n" | dstack apply -f <config> - If plan is OK and user confirms, apply detached:
dstack apply -f <config> -y -d - Check the run:
dstack run get <run-name> --json - If dev-environment or task with ports and running: attach to surface IDE link/ports/SSH alias (agent runs attach in background); ask to open link
- If attach fails in sandbox: request escalation; if not approved, ask the user to run
dstack attachlocally and share the output
CRITICAL: Never propose dstack CLI commands or YAML syntaxes that don't exist.
- Only use CLI commands and YAML syntax documented here or verified via
--help - If uncertain about a command or its syntax, check the links or use
--help
NEVER do the following:
- Invent CLI flags not documented here or shown in
--help - Guess YAML property names - verify in configuration reference links
- Run
dstack applyfor runs without-din automated contexts (blocks indefinitely) - Retry failed commands without addressing the underlying error
- Summarize or reformat tabular CLI output - show it as-is
- Use
echo "y" |when-yflag is available - Assume a command succeeded without checking output for errors
Agent execution guidelines
Output accuracy
- NEVER reformat, summarize, or paraphrase CLI output. Display tables, status output, and error messages exactly as returned.
- When showing command results, use code blocks to preserve formatting.
- If output is truncated due to length, indicate this clearly (e.g., "Output truncated. Full output shows X entries.").
Verification before execution
- When uncertain about any CLI flag or YAML property, run
dstack <command> --helpfirst. - Never guess or invent flags. Example verification commands:
dstack --help # List all commands dstack apply -h <configuration type> # Flags for apply per configuration type (dev-environment, task, service, fleet, etc) dstack fleet --help # Fleet subcommands dstack ps --help # Flags for ps - If a command or flag isn't documented, it doesn't exist.
Command timing and confirmation handling
Commands that stream indefinitely in the foreground:
dstack attachdstack applywithout-dfor runsdstack ps -w
Agents should avoid blocking: use -d, timeouts, or background attach. When attach is needed, run it in the background by default (nohup ...), but describe it to the user simply as "attach" unless they ask for a live foreground session.
When waiting programmatically for a specific run, use
dstack run get <run-name> --json and read its top-level status. Run statuses
are pending, submitted, provisioning, running, terminating,
terminated, failed, and done; the last three are terminal. Stop waiting
when the run reaches the state needed for the next action or a terminal status.
Never parse or grep human-readable dstack ps output; its status column may
display a job message such as no offers.
All other commands: Use 10-60s timeout. Most complete within this range. While waiting, monitor the output - it may contain errors, warnings, or prompts requiring attention.
Confirmation handling:
dstack apply,dstack stop,dstack fleet deleterequire confirmation- Use
-yflag to auto-confirm when user has already approved - For
dstack stop, always use-yafter the user confirms to avoid interactive prompts - Use
echo "n" |to previewdstack applyplan without executing (avoidecho "y" |, prefer-y)
Best practices:
- Prefer modifying configuration files over passing parameters to
dstack apply(unless it's an exception) - When user confirms deletion/stop operations, use
-yflag to skip confirmation prompts
Detached run follow-up (after -d)
After submitting a run with -d (dev-environment, task, service), first determine whether submission failed. If the apply output shows errors (validation, no offers, etc.), stop and surface the error.
If the run was submitted, check it with dstack run get <run-name> --json, then guide the user through relevant next steps:
If you need to prompt for next actions, be explicit about the dstack step and command (avoid vague questions). When speaking to the user, refer to the action as "attach" (not "background attach").
- Monitor status: Report the current status and offer to keep watching. If watching, poll
dstack run get <run-name> --jsonevery 10-20 seconds until it reaches the state needed for the next action or a terminal status. - Attach when running: For agents, run attach in the background by default so the session does not block. Use it to capture IDE links/SSH alias or enable port forwarding; when describing the action to the user, just say "attach".
- Dev environments or tasks with ports: Once
running, attach to surface the IDE link/port forwarding/SSH alias, then ask whether to open the IDE link. Never open links without explicit approval. - Services: Prefer using service endpoints. Attach only if the user explicitly needs port forwarding or full log replay.
- Tasks without ports: Default to
dstack logsfor progress; attach only if full log replay is required.
Attaching behavior (blocking vs non-blocking)
dstack attach runs until interrupted and blocks the terminal. Agents must avoid indefinite blocking. If a brief attach is needed, use a timeout to capture initial output (IDE link, SSH alias) and then detach.
Note: dstack attach writes SSH alias info under ~/.dstack/ssh/config (and may update ~/.ssh/config) to enable ssh <run name>, IDE connections, port forwarding, and real-time logs (dstack attach --logs). If the sandbox cannot write there, the alias will not be created.
Permissions guardrail: If dstack attach fails due to sandbox permissions, request permission escalation to run it outside the sandbox. If escalation isn’t approved or attach still fails, ask the user to run dstack attach locally and share the IDE link/SSH alias output.
Background attach (non-blocking default for agents):
nohup dstack attach <run name> --logs > /tmp/<run name>.attach.log 2>&1 & echo $! > /tmp/<run name>.attach.pid
Then read the output:
tail -n 50 /tmp/<run name>.attach.log
Offer live follow only if asked:
tail -f /tmp/<run name>.attach.log
Stop the background attach (preferred):
kill "$(cat /tmp/<run name>.attach.pid)"
If the PID file is missing, fall back to a specific match (avoid killing all attaches):
pkill -f "dstack attach <run name>"
Why this helps: it keeps the attach session alive (including port forwarding) while the agent remains usable. IDE links and SSH instructions appear in the log file -- surface them and ask whether to open the link (open "<link>" on macOS, xdg-open "<link>" on Linux) only after explicit approval.
If background attach fails in the sandbox (permissions writing ~/.dstack or ~/.ssh, timeouts), request escalation to run attach outside the sandbox. If not approved, ask the user to run attach locally and share the IDE link/SSH alias.
Interpreting user requests
"Run something": When the user asks to run a workload (dev environment, task, 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.
"Connect to" or "open" a dev environment: If a dev environment is already running, use dstack attach <run name> --logs (agent runs it in the background by default) to surface the IDE URL (cursor://, vscode://, etc.) and SSH alias. If sandboxed attach fails, request escalation or ask the user to run attach locally and share the link.
Configuration types
dstack supports run configurations (dev environments, tasks, and services) and infrastructure configurations (fleets, volumes, and gateways). Configuration files can be named <name>.dstack.yml or simply .dstack.yml.
Common parameters: All run configurations (dev environments, tasks, services) support many parameters including:
- Git integration: Clone repos automatically (
repo) or mount existing repos (repos) - File upload: Upload local files (
files; see concept docs for examples) - Docker support: Use custom Docker images (
image); usedocker: trueif you want to use Docker from inside the container (VM-based backends only) - Environment: Set environment variables (
env), often via.envrc. Secrets are supported but less common. - Storage: Persistent network volumes (
volumes), specify disk size - Resources: Define GPU, CPU, memory, and disk requirements
Best practices:
- Prefer giving configurations a
nameproperty for easier management - When configurations need credentials (API keys, tokens), list only env var names in the
envsection (e.g.,- HF_TOKEN), not values. Recommend storing actual values in a.envrcfile alongside the configuration, applied viasource .envrc && dstack apply. pythonandimageare mutually exclusive in run configurations. Ifimageis set, do not setpython.
files and repos intent policy
Use files and repos only when the user intends to use local/repo files inside the run.
- If user asks to use project code/data/config in the run, then add
filesorreposas appropriate. - If it is totally unclear whether files or repos must be mounted, ask one explicit clarification question or default to not mounting.
files guidance:
- Relative paths are valid and preferred for local project files.
- A relative
filespath is placed under the run'sworking_dir(default or set by user).
repos + image/working directory guidance:
- With non-default Docker images, prefer explicit absolute mount targets for
repos(e.g.,.:/dstack/run). - When setting an explicit repo mount path, also set
working_dirto the same path. - Reason: custom images may have a different/non-empty default working directory, and mounting a repo into a non-empty path can fail.
- With
dstackdefault images, the defaultworking_diris already/dstack/run.
1. Dev environments
Use for: Interactive development with IDE integration (VS Code, Cursor, etc.).
type: dev-environment
name: cursor
python: "3.12"
ide: vscode
resources:
gpu: 80GB
Concept documentation | Configuration reference
2. Tasks
Use for: Batch jobs, training runs, fine-tuning, web applications, any executable workload.
Key features: Distributed training (multi-node) and port forwarding for web apps.
type: task
name: train
python: "3.12"
env:
- HUGGING_FACE_HUB_TOKEN
commands:
- uv pip install -r requirements.txt
- uv run python train.py
ports:
- 8501 # Optional: expose ports for web apps
resources:
gpu: A100:40GB:2
Port forwarding: When you specify ports, dstack apply forwards them to localhost while attached. Use dstack attach <run name> to reconnect and restore port forwarding. The run name becomes an SSH alias (e.g., ssh <run name>) for direct access.
Distributed training: Multi-node tasks are supported (e.g., via nodes) and require fleets that support inter-node communication (see placement: cluster in fleets).
Concept documentation | Configuration reference
3. Services
Use for: Deploying models or web applications as production endpoints.
Key features: OpenAI-compatible model serving, auto-scaling (RPS/queue), custom gateways with HTTPS.
type: service
name: llama31
python: "3.12"
env:
- HF_TOKEN
commands:
- uv pip install vllm
- uv run vllm serve meta-llama/Meta-Llama-3.1-8B-Instruct
port: 8000
model: meta-llama/Meta-Llama-3.1-8B-Instruct
resources:
gpu: 80GB
disk: 200GB
Service endpoints:
- Without gateway:
<server URL>/proxy/services/<project name>/<run name>/ - With gateway:
https://<run name>.<gateway domain>/ - Authentication: Unless
authisfalse, includeAuthorization: Bearer <user token>on service requests. - Model endpoint: If
modelis set,service.model.base_urlfromdstack run get <run name> --jsonprovides the model endpoint. For OpenAI-compatible models (the default, unless format is set otherwise), this will beservice.url+/v1. - Example (with gateway):
curl -sS -X POST "https://<run name>.<gateway domain>/v1/chat/completions" \ -H "Authorization: Bearer <user token>" \ -H "Content-Type: application/json" \ -d '{"model":"<model name>","messages":[{"role":"user","content":"Hello"}],"max_tokens":64}'
Concept documentation | Configuration reference
4. Fleets
Use for: Pre-provisioning infrastructure for workloads, managing on-prem GPU servers, creating auto-scaling instance pools.
type: fleet
name: my-fleet
nodes: 0..2
resources:
gpu: 24GB..
disk: 200GB
spot_policy: auto # other values: spot, on-demand
idle_duration: 5m
On-demand provisioning: When nodes is a range (e.g., 0..2), dstack creates a template and provisions instances on demand within the min/max. Use idle_duration to terminate idle instances.
Distributed workloads: Use placement: cluster for fleets intended for multi-node tasks that require inter-node networking.
SSH fleet (on-prem or pre-provisioned):
type: fleet
name: on-prem-fleet
ssh_config:
user: ubuntu
identity_file: ~/.ssh/id_rsa
hosts:
- 192.168.1.10
- 192.168.1.11
Concept documentation | Configuration reference
5. Volumes
Use for: Persistent storage for datasets, model checkpoints, training artifacts.
type: volume
name: my-volume
backend: aws
region: us-east-1
resources:
disk: 500GB
Instance volumes (local, ephemeral, often optional):
type: dev-environment
# ... other config
volumes:
- instance_path: /dstack-cache/pip
path: /root/.cache/pip
optional: true
- instance_path: /dstack-cache/huggingface
path: /root/.cache/huggingface
optional: true
Mounting volumes: Use volumes in dev environments, tasks, and services. Network volumes persist independently; instance volumes are tied to the instance lifecycle.
Concept documentation | Configuration reference
6. Gateways
Use for: Gateways are optional for basic service endpoints. They are required when a service uses auto-scaling or rate limits, needs HTTPS on a custom domain, requires WebSockets, or cannot work with the server proxy path prefix.
type: gateway
name: my-gateway
backend: aws
region: us-east-1
domain: example.com
Concept documentation | Configuration reference
Essential CLI commands
Apply configurations
Important behavior:
dstack applyshows a plan with estimated costs and may ask for confirmation- In attached mode (default), the terminal blocks and shows output
- In detached mode (
-d), it submits and exits without attaching
Workflow for applying run configurations (dev-environment, task, service):
-
Show plan:
echo "n" | dstack apply -f config.dstack.ymlDisplay the FULL output including the offers table and cost estimate. Do NOT summarize or reformat.
-
Wait for user confirmation. Do NOT proceed if:
- Output shows "No offers found" or similar errors
- Output shows validation errors
- User has not explicitly confirmed
-
Execute (only after user confirms):
dstack apply -f config.dstack.yml -y -d -
Verify apply status:
dstack run get <run-name> --json
Workflow for infrastructure (fleet, volume, gateway):
-
Show plan:
echo "n" | dstack apply -f infra.dstack.ymlDisplay the FULL output. Do NOT summarize or reformat.
-
Wait for user confirmation.
-
Execute:
dstack apply -f infra.dstack.yml -y -
Verify: Use
dstack fleet,dstack volume, ordstack gatewayrespectively.
Fleet management
# Create/update fleet
dstack apply -f fleet.dstack.yml
# List fleets
dstack fleet
# Get fleet details
dstack fleet get my-fleet
# Get fleet details as JSON (for troubleshooting)
dstack fleet get my-fleet --json
# Delete entire fleet (use -y when user already confirmed)
dstack fleet delete my-fleet -y
# Delete specific instance from fleet (use -y when user already confirmed)
dstack fleet delete my-fleet -i <instance num> -y
Host GPU driver: for NVIDIA, AMD, and Tenstorrent, VM-based backends and SSH fleets report the host GPU driver version in instances[].gpu_driver.version, available via dstack fleet get my-fleet --json once the instance is idle or busy. Useful when you're uncertain whether a host's driver is compatible with your workload.
Monitor runs
# List all runs
dstack ps
# Verbose output with full details
dstack ps -v
# JSON output (for troubleshooting/scripting)
dstack ps --json
# Get specific run details as JSON
dstack run get my-run-name --json
Attach to runs
# Attach and replay logs from start (preferred, unless asked otherwise)
dstack attach my-run-name --logs
# Attach without replaying logs (restores port forwarding + SSH only)
dstack attach my-run-name
View logs
# Stream logs (tail mode)
dstack logs my-run-name
# Debug mode (includes additional runner logs)
dstack logs my-run-name -d
# Fetch logs from specific replica (multi-node runs)
dstack logs my-run-name --replica 1
# Fetch logs from specific job
dstack logs my-run-name --job 0
Stop runs
# Stop specific run (use -y after user confirms)
dstack stop my-run-name -y
# Abort (force stop)
dstack stop my-run-name --abort
List offers
Offers represent available instance configurations that match resource
requirements. If --fleet is omitted, dstack offer checks all configured
backends. Listing offers does not create capacity; submitting a run still
requires at least one fleet that can provision or reuse matching instances.
Use --fleet to inspect offers available through specific fleets.
# Filter by specific backend
dstack offer --backend aws
# Filter by GPU type
dstack offer --gpu A100
# Filter by GPU memory
dstack offer --gpu 24GB..80GB
# Combine filters
dstack offer --backend aws --gpu A100:80GB
# Limit to a specific fleet
dstack offer --fleet my-fleet
# Combine offers from multiple fleets
dstack offer --fleet my-fleet --fleet other-fleet
# JSON output (for troubleshooting/scripting)
dstack offer --json
With one --fleet, dstack offer shows offers available through that fleet. With multiple --fleet, it combines offers available through the selected fleets. Identical backend offers are shown once, while matching existing instances stay separate.
Max offers: By default, dstack offer returns first N offers (output also
includes the total number). Use --max-offers N to increase the limit.
Grouping: Prefer --group-by gpu for aggregated output across all offers,
not --max-offers. Other supported fields are backend, region, and
count; region requires backend.
Troubleshooting
When diagnosing issues with dstack workloads or infrastructure:
-
Use JSON output for detailed inspection:
dstack fleet get my-fleet --json dstack run get my-run --json dstack ps -n 10 --json dstack offer --json -
Check verbose run status:
dstack ps -v -
Examine logs with debug output:
dstack logs my-run -d -
Attach with log replay:
dstack attach my-run --logs
Common issues:
- No offers: Check
dstack offer; if submitting a run, ensure at least one fleet can provision or reuse matching instances - No fleet: Ensure at least one fleet is created
- Configuration errors: Validate YAML syntax; check
dstack applyoutput for specific errors - Provisioning timeouts: Inspect the run with
dstack run get <run-name> --json; consider spot vs on-demand - Connection issues: Verify server status, check authentication, ensure network access to backends
When errors occur:
- Display the full error message unchanged
- Do NOT retry the same command without addressing the error
- Refer to the Troubleshooting guide for guidance
Additional resources
Core documentation:
Additional concepts:
Guides:
Accelerator-specific examples:
Full documentation: https://dstack.ai/llms-full.txt
Frequently asked questions
What to verify before installation and use
What does the dstack source document cover?
dstack is an open-source control plane for GPU provisioning and orchestration across GPU clouds, Kubernetes, and on-prem clusters.
How do I install dstack?
The source record exposes this install command: npx skills add https://github.com/dstackai/dstack --skill "skills/dstack". Inspect the command and pinned source before running it.
Which permission-related actions were detected?
Static rules flagged exec-script, send-data, network in the source; the page lists the matching lines and excerpts.
Alternatives
Compare before choosing
garrytan/gbrain
bulk-ingestion
End-to-end discipline for turning any large data source (audio libraries, email takeouts, document corpora, chat exports, API dumps) into brain pages at scale. The lifecycle spine: SCHEMA → ACCESS → TRIAL → EVALUATE → IMPROVE → CODIFY → TEST → SKILLIFY → BULK → MONITOR. State is tracked in a durable JSON manifest (see MANIFEST-PATTERN.md) so any crash, session boundary, or subagent fan-out resumes from ground truth instead of memory.
alirezarezvani/claude-skills
app-store-optimization
App Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklist
dotnet/skills
migrate-vstest-to-mtp
Migrates .NET test projects from VSTest to Microsoft.Testing.Platform (MTP). Use when user asks to "migrate to MTP", "switch from VSTest", "enable Microsoft.Testing.Platform", "use MTP runner", set OutputType=Exe only for test projects in Directory.Build.props, or mentions EnableMSTestRunner, EnableNUnitRunner, or UseMicrosoftTestingPlatformRunner. USE FOR: MTP behavioral differences vs VSTest (exit code 8, zero tests discovered, --ignore-exit-code, TESTINGPLATFORM_EXITCODE_IGNORE); centralizing
oaustegard/claude-skills
featuring
Generate hierarchical _FEATURES.md files that describe what a codebase DOES from a user/consumer perspective, anchored to source symbols via tree-sitting. Supports large complex codebases through feature-driven decomposition into sub-feature files. Uses a multi-pass synthesis: orientation → detail → overview rewrite. Use when someone says "what does this do", "document features", "feature inventory", "_FEATURES.md", or needs to understand a codebase's purpose before modifying it. Complements tre