Command Palette

Search for a command to run...

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

aspire-init

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

**WORKFLOW SKILL** - First-run flow for adding Aspire to a repo. Picks `aspire new` (greenfield) or `aspire init` (existing repo), drops the AppHost skeleton…

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

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

Aspire Init

First-run only. This skill owns the skeleton drop and template choice for repositories that do not yet have an Aspire AppHost. Once the skeleton is in place, hand off to aspireify for the actual resource wiring.

Prerequisites

Requirement Install
.NET 10.0 SDK https://dotnet.microsoft.com/download
Node.js ^20.19.0, ^22.13.0, or >=24 (TypeScript AppHost) https://nodejs.org
Go 1.26 or later (Go AppHost, Aspire 17.0 or later) https://go.dev/dl/
Aspire CLI (curl installer) curl -sSL https://aspire.dev/install.sh | bash
Aspire CLI (npm) npm install -g @microsoft/aspire-cli
Aspire CLI (NativeAOT global tool) dotnet tool install -g Aspire.Cli (.NET 10 required)
Diagnose missing prerequisites aspire doctor

Aspire also supports Nix, Homebrew, WinGet, mise, and the curl/PowerShell installers. Use the installation method already owned by the user's environment.

Detection

Activate only when adding Aspire to a workspace that does not yet have one. Confirm ALL of the following before running aspire init:

Signal How to Detect Meaning
No C# AppHost No .csproj containing Aspire.AppHost.Sdk OK to init
No file-based AppHost No apphost.cs with #:sdk Aspire.AppHost.Sdk OK to init
No TypeScript AppHost No current apphost.mts or legacy apphost.ts in the repo OK to init
No Go AppHost No apphost.go in the repo (a Go service with only main.go and go.mod is not an AppHost) OK to init
No Aspire config No aspire.config.json in repo root OK to init
User intent Explicit "add Aspire", "scaffold Aspire", "aspire init" OK to init

If any AppHost signal is already present, do not run aspire init. Route to aspireify (re-wire) or aspire-orchestration (lifecycle).

Decision: aspire new vs aspire init

Situation Command Why
Empty directory or brand-new project aspire new <template> Generates a full starter solution
Existing repo with services to model aspire init Drops minimal skeleton + aspire.config.json next to existing code
User wants a sample to learn from aspire new aspire-starter Includes ApiService + Web + ServiceDefaults
User wants the smallest possible scaffold aspire new aspire-empty (C#), aspire new aspire-ts-empty (TS), or aspire new aspire-go-empty (Go, Aspire 17.0 or later) No resources pre-wired
User wants Python services aspire new aspire-py-starter (TypeScript AppHost drives Python) Not dotnet new — that template was removed in 13.3
User wants a Go AppHost with a Go API aspire new aspire-go-starter (Aspire 17.0 or later) Go AppHost + Redis + a Go api service; needs the Go toolchain

See references/templates.md for the complete template list and options.

Workflow A — aspire new <template> (new project)

For brand-new projects in an empty or non-existent directory:

  1. Confirm prerequisites with aspire doctor if the CLI install is uncertain.
  2. Pick a template from references/templates.md.
  3. Run the template, append --non-interactive for agent flows:
    aspire new aspire-starter --name MyApp --output ./MyApp --non-interactive
    
  4. The new directory is fully wired by the template — no aspireify handoff needed.
  5. Route to aspire-orchestration for first run (aspire start).

Workflow B — aspire init (existing repo)

For repositories that already contain services (Express API, .NET API, Python service, etc.) and need an AppHost added alongside them:

  1. Verify the Detection table — confirm no AppHost is present.
  2. Run aspire init, choosing language explicitly for non-interactive flows:
    aspire init --language csharp --non-interactive
    # or
    aspire init --language typescript --non-interactive
    # or (Aspire 17.0 or later)
    aspire init --language go --non-interactive
    
  3. aspire init drops:
    • The AppHost skeleton (apphost.cs with #:sdk directives, or apphost.mts with the generated .aspire/modules/ folder, or apphost.go with a go.mod and the generated .aspire/modules/ Go SDK)
    • AppHost configuration describing language + AppHost path
    • The aspireify agent skill. Aspire 13.6 and earlier install it into the project's skill directory (same one aspire agent init uses). Aspire 17.0 and later register the aspire-skills plug
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

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

references/init-workflow.mdreferences/templates.md

FAQ

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

**WORKFLOW SKILL** - First-run flow for adding Aspire to a repo. Picks `aspire new` (greenfield) or `aspire init` (existing repo), drops the AppHost skeleton, then hands off to `aspireify` for resource wiring. USE FOR: aspire init, aspire new, aspire-starter, aspire-ts-starter, aspire-py-starter, aspire-go-starter, add Aspire to existing repo, scaffold Aspire app, bootstrap Aspire, no AppHost detected, install aspireify, apphost.mts, apphost.go, Go AppHost, generated .aspire/modules. DO NOT USE FOR: AppHost wiring on an existing AppHost (use aspireify), start/stop/wait (use aspire-orchestration), deploy/publish (use aspire-deployment), logs/traces (use aspire-monitoring), repo that already has an AppHost. INVOKES: aspire CLI (init, new, doctor), aspireify (handoff after skeleton drop). FOR SINGLE OPERATIONS: Run `aspire init` or `aspire new TEMPLATE` directly.

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

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

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

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

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

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