Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

aspire-orchestration

БесплатноБез исполняемых скриптовНе проверен

**WORKFLOW SKILL** — Manage Aspire lifecycle in VS Code or the CLI. WHEN: "start or stop my Aspire app", "aspire_apphost_start", "aspire_apphost_stop"…

microsoftот microsoft★ 103 звезды на GitHub

Об этом скилле

Aspire Orchestration

MANDATORY COMPLIANCE — This skill prevents agent self-harm in Aspire projects. Violating these rules causes file locks, orphaned processes, and user frustration (#15801).

Prerequisites

Requirement Install
.NET 10.0 SDK https://dotnet.microsoft.com/download
Aspire CLI (curl/PowerShell) curl -sSL https://aspire.dev/install.sh | bash
Aspire CLI (npm) npm install -g @microsoft/aspire-cli
Aspire CLI (NativeAOT global tool, .NET 10) dotnet tool install -g Aspire.Cli

Use the installation method owned by the user's environment. npm, Nix, Homebrew, WinGet, mise, and the install scripts are supported alongside the NativeAOT .NET global tool.

Detection

Activate when ANY signal is present:

Signal How to Detect Confidence
C# AppHost .csproj containing Aspire.AppHost.Sdk ✅ Definitive
File-based C# AppHost apphost.cs or .cs file with #:sdk Aspire.AppHost.Sdk ✅ Definitive
TypeScript AppHost Current apphost.mts or legacy apphost.ts file in project ✅ Definitive
Go AppHost apphost.go next to an aspire.config.json whose appHost.language is go ✅ Definitive
Aspire config aspire.config.json in project root High
Aspire settings .aspire/ directory present High
Generated TS or Go modules .aspire/modules/ directory present High
Service defaults <IsAspireSharedProject>true or a *.ServiceDefaults.csproj project reference Medium

See detection.md for detailed fingerprinting. Go AppHosts require Aspire 17.0 or later. A Go service wired into a C# or TypeScript AppHost does not make it a Go AppHost.

VS Code AppHost Lifecycle

When the agent host exposes aspire_apphost_start or aspire_apphost_stop, use the matching tool before running aspire start or aspire stop in a terminal, except when starting from a git worktree requires --isolated and the tool cannot request it. If the tool is listed as deferred, load its contract with the host's tool-discovery mechanism first; do not treat an unloaded deferred tool as unavailable.

Pass the exact selected appHostPath discovered by Aspire to editor lifecycle tools. In a multi-root workspace, that tool contract may require a selector such as repo-a~1/MyApp.AppHost/MyApp.AppHost.csproj.

The CLI --apphost flag does not understand that selector namespace. Before any CLI start/stop fallback, resolve the selected AppHost to its actual filesystem project path and pass that path to --apphost; never copy a multi-root selector verbatim. That CLI project path may be workspace-relative (MyApp.AppHost/MyApp.AppHost.csproj) or absolute (/workspaces/repo-a/MyApp.AppHost/MyApp.AppHost.csproj or C:\workspaces\repo-a\MyApp.AppHost\MyApp.AppHost.csproj); use the current platform's native path syntax. If several AppHosts are discovered and the user's target is unclear, ask which one to use instead of guessing, invoking the tool for every AppHost, or issuing an unscoped CLI command.

If the selected appHostPath is already a normal workspace-relative project path such as MyApp.AppHost/MyApp.AppHost.csproj, reuse it unchanged for CLI fallbacks; do not convert it to an absolute path just for the CLI.

An unclear target is a hard stop. Ask one clarifying question and wait for the user to name an AppHost. Do not call a lifecycle tool or terminal command until the target is resolved, and do not offer commands that bypass this gate. Stop multiple AppHosts only when the user explicitly requests all of them.

For starts, call aspire_apphost_start with mode run and the exact selected appHostPath unless the user explicitly asks to attach a debugger. In a git worktree, the editor tool does not currently request Aspire's isolated state. Resolve the selected AppHost to its filesystem path and use aspire start --non-interactive --isolated --apphost <filesystem-path> instead.

run mode has no debugger attached, but it still has an editor-owned Aspire session that aspire_apphost_stop can stop. After a stop call, follow this result matrix exactly:

Tool result Next action CLI stop allowed?
stopped or notRunning Report the result; take no further stop action No
alreadyStopping, controller editor Report that the editor stop is already in progress; take no further stop action No
alreadyStarting, controller editor Retry aspire_apphost_stop once; if it repeats, report that startup is still in progress and take no further stop action No
notEditorOwned, controller external If the user requested that exact AppHost be stopped, resolve it to its filesystem path and run aspire stop --non-interactive --apphost <filesystem-path> Yes
failed, controller unknown Retry
Полный SKILL.md на GitHub

Установить aspire-orchestration в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/agent-workflows.mdreferences/app-commands.mdreferences/detection.mdreferences/resource-management.mdreferences/safety-guardrails.md

FAQ

Что делает скилл aspire-orchestration?

**WORKFLOW SKILL** — Manage Aspire lifecycle in VS Code or the CLI. WHEN: "start or stop my Aspire app", "aspire_apphost_start", "aspire_apphost_stop", "notEditorOwned", "ambiguousSession", "aspire start", "aspire stop", "aspire wait", resource restart, file-lock errors (MSB3491 or CS2012), port conflicts, git worktrees, "--isolated", "aspire update --self", "aspire update --migrate", "aspire describe --include-hidden", "aspire stop --force", "aspire stop --force --volumes", integration discovery, default watch, or hot reload. INVOKES: VS Code lifecycle tools first when exposed; Aspire CLI for readiness, inspection, resource operations, isolated worktree starts, and allowed fallbacks. DO NOT USE FOR: deploy/publish/destroy (aspire-deployment), logs/traces/metrics (aspire-monitoring), terminal authoring/attach/tapes (aspire-terminals), or AppHost code and resource wiring (aspireify). FOR SINGLE OPERATIONS: Load the matching editor tool first; follow exact-target, worktree-isolation, and stop-result rules.

Как установить скилл aspire-orchestration?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл aspire-orchestration запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить aspire-orchestration с