/aspire:aspire-initfrom aspire
First-run workflow that scaffolds an Aspire AppHost skeleton into a repo using `aspire new` (greenfield) or `aspire init` (existing repo), then hands off to `aspireify` for resource wiring.
Ships in aspire. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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
aspireifyfor the actual resource wiring.
| 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.
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).
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.
aspire new <template> (new project)For brand-new projects in an empty or non-existent directory:
aspire doctor if the CLI install is uncertain.--non-interactive for agent flows:
aspire new aspire-starter --name MyApp --output ./MyApp --non-interactive
aspire-orchestration for first run
(aspire start).aspire init (existing repo)For repositories that already contain services (Express API, .NET API, Python service, etc.) and need an AppHost added alongside them:
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
aspire init drops:
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)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 plugin, which includes it. See
init-workflow.md. In 13.6+, the chained
agent setup preselects the recommended skills, including aspireify, and does not
offer Aspire MCP server configuration. If MCP config is missing after a successful
init, that is expected and isn't a defect. MCP is a separate opt-in; see the aspire
router's Skills vs. MCP guidance.aspireify — aspire init does not wire resources, projects, or
integrations on its own.aspireify finishes wiring, validate via aspire start
(aspire-orchestration).In 13.5, a TypeScript init inside a repo that already has a root package.json creates a
nested aspire-apphost/ package and points the root aspire.config.json at
aspire-apphost/apphost.mts. A solution-backed C# repo can receive a project-based AppHost;
new C# AppHosts enable AspireUseCliBundle=true by default. Preserve these generated choices.
A Go init (Aspire 17.0 or later) writes apphost.go and go.mod into the current directory
and stops because it would overwrite existing files when a go.mod is already there; there
is no output option. In a repo with a root go.mod, run it from a new subdirectory such as
apphost/. aspire.config.json then sits next to apphost.go, not at the repo root.
Choose --language for the language the user wants to write the AppHost in, not the language
of the services it orchestrates: a Go service in a C# or TypeScript repo does not call for a
Go AppHost. aspireify wires that service, preferring AddGoApp (Aspire.Hosting.Go):
preview from 13.4, stable from 17.0. A 13.x project needs approval to add a compatible
preview package; do not silently change its package family or channel.
See references/init-workflow.md for the full sequence
including what aspire.config.json contains and what to do if aspire init fails partway.
After aspire init / aspire new finishes... | Route To |
|---|---|
| Skeleton dropped, resources need wiring | → aspireify skill (in-plugin or project-local) |
| Skeleton dropped, validate it starts | → aspire-orchestration (run aspire start) |
| New project from template, ready to run | → aspire-orchestration |
| User asks to deploy after init | → aspire-deployment |
| User asks for logs/traces after init | → aspire-monitoring |
| Existing AppHost detected — do NOT run init | → aspireify (re-wire) or aspire-orchestration (lifecycle) |
If .agents/skills/aspire-init/SKILL.md or a project-local aspireify skill exists, check
aspire --version.
aspire-init skill is a legacy install from
an older aspire init run. Warn the user and defer to it. The legacy project-local
skill may carry repo-specific guidance that should not be overridden by this in-plugin
skill. The project-local aspireify skill, installed by aspire init, takes precedence
over the in-plugin aspireify for the same reason. Defer to that copy and warn.aspire doctor, which lists each copy and explains how to
remove it.| Symptom | Cause | Action |
|---|---|---|
aspire init reports AppHost already exists | Repo already has an AppHost | Stop. Route to aspireify (re-wire) or aspire-orchestration (lifecycle) |
aspire init fails in non-interactive mode without --language | Multiple language paths available | Re-run with --language csharp, --language typescript, or --language go (Aspire 17.0 or later) |
aspire init --language go stops because it would overwrite existing files | The directory already has a go.mod, for example a Go service at the repo root | Run it from a new subdirectory such as apphost/; leave the existing go.mod alone |
aspire new rejects --output path | Path exists and is non-empty | Use a different --output or empty the directory |
aspire command not found | CLI not installed | dotnet tool install -g Aspire.Cli (.NET 10) or curl -sSL https://aspire.dev/install.sh | bash |
aspire doctor reports missing .NET 10 | SDK missing | Install .NET 10 SDK before retrying |
Aspire 13.6 or earlier: aspire init succeeded but no aspireify skill installed | Agent skill directory not detected, or aspireify not selected (13.5 doesn't preselect it) | Run aspire agent init --non-interactive --skills aspireify (append aspireify to any explicit --skills list, keep any --skill-locations, and don't add --mcp), then continue wiring |
Aspire 17.0+: the agent cannot use aspireify | The client has not loaded the plugin, or Aspire skillSources settings point elsewhere | Reload the client and check Aspire skillSources. Don't pass --skills aspireify |
aspire init succeeded but no MCP config was written | Expected in 13.6+ — chained agent setup does not offer MCP | Don't repair it. Configure MCP only when the user explicitly asks for it (aspire agent init --mcp on 13.6+) |
| Skeleton dropped but resources not wired | Expected — aspire init does not wire | Hand off to aspireify |
Existing TypeScript AppHost still uses apphost.ts | Legacy entry point and package graph | Hand off to aspire-orchestration, which owns approval and aspire update --migrate --yes --non-interactive; return to aspireify only for later source authoring |
aspire new templates and optionsaspire init flow, aspire.config.json
layout, and aspireify handoffWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
8 skills in this plugin
/aspire**WORKFLOW SKILL** - Aspire router. Detects AppHosts, enforces guardrails, and selects the right sub-skill. USE FOR: Aspire AppHost, Aspire CLI, distributed app, cloud-native .NET, aspire start/stop/resource/deploy/destroy/publish/init/new/add/wait/describe/ps/logs/otel, aspire agent init, WithBrowserLogs, WithTerminal, TerminalService, terminal prompts, WithRepl, tapes, Interaction Service, apphost.mts, apphost.go, TS package managers, Yarn Classic, custom resource commands, .aspire/modules recovery, ProjectResource to DotnetProjectResource migration, or Playwright URL discovery. DO NOT USE FOR: non-Aspire projects or ordinary build/test tasks. INVOKES: aspire-init, aspireify, aspire-project-v2-migration, aspire-orchestration, aspire-deployment, aspire-monitoring, aspire-terminals. FOR SINGLE OPERATIONS: Route directly to the matching sub-skill./aspire-deployment**WORKFLOW SKILL** — Deploy Aspire apps from AppHost models to Docker Compose, Kubernetes, Azure, AWS, or preview Radius. WHEN: "deploy Aspire app", "publish Aspire artifacts", "deploy to Azure Container Apps", "generate Kubernetes artifacts", "deploy to Radius", "tear down Aspire deployment". INVOKES: aspire CLI, Aspire docs, target cloud/container CLIs. FOR SINGLE OPERATIONS: use generic Azure, Kubernetes, Docker, AWS, or Radius tools only when no Aspire AppHost exists./aspireify**WORKFLOW SKILL** - Wire Aspire AppHosts or repair TypeScript AppHost toolchains. Scans the repo, proposes a resource graph, edits C#, file-based C#, TypeScript, or Go AppHosts, wires ServiceDefaults + OTel, validates with `aspire start`, then stops. USE FOR: wire/scaffold AppHost, add Postgres/Redis/Rabbit/Mongo, connect frontend to API, after `aspire init`, AddNextJsApp, AddViteApp, WithBrowserLogs, Interaction Service, command arguments, apphost.cs, apphost.mts, apphost.go, unified withEnvironment, .aspire/modules refusal, config/secrets, TS dependency restore, pnpm/yarn/bun, or Yarn Classic. DO NOT USE FOR: skeleton drop (aspire-init), lifecycle-only start/stop/wait/restart or `aspire update --migrate` (aspire-orchestration), publish/deploy/destroy (aspire-deployment), logs/traces (aspire-monitoring), terminal authoring or automation (aspire-terminals). INVOKES: aspire CLI, AppHost source edits, ServiceDefaults wiring. FOR SINGLE OPERATIONS: Run `aspire add PACKAGE` directly for a one-off integration./aspire-monitoring**ANALYSIS SKILL** - Observe Aspire apps: logs, traces, metrics, resource state, telemetry export, browser telemetry, and the standalone dashboard. Routes between local Aspire CLI, AKS workload diagnostics, and deployed Azure resource health. USE FOR: aspire logs, aspire otel logs, aspire otel traces, aspire otel spans, aspire describe, aspire ps, aspire export, aspire dashboard run, describe --include-hidden, browser logs in dashboard, DevTunnel URLs, WithBrowserLogs, App Insights query, AKS pod logs, container app logs. DO NOT USE FOR: start/stop/wait (use aspire-orchestration), deploy/publish/destroy (use aspire-deployment), AppHost code edits like WithBrowserLogs() (use aspireify), Azure provisioning (use azure-prepare), terminal authoring/input/tapes (use aspire-terminals). INVOKES: aspire CLI, azure-diagnostics (deployed Azure), kubectl + Container Insights. FOR SINGLE OPERATIONS: Run the aspire CLI command directly for quick log or describe lookups./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-project-v2-migration**WORKFLOW SKILL** - Safely migrates eligible Aspire 13.6+ AppHosts from legacy ProjectResource APIs to experimental DotnetProjectResource APIs after a per-resource assessment and explicit approval of exact edits. USE FOR: assess or migrate existing AddProject, addProject, AddCSharpApp, addCSharpApp, or AddBlazorGateway resources to Project v2; migrate ProjectResource to DotnetProjectResource; clean up the resulting obsolete AppHost ProjectReference edges. DO NOT USE FOR: upgrading Aspire versions, creating/wiring a new AppHost, Azure Functions migration, generic source modernization, ordinary C# resource wiring or adding a new AddProject resource (use aspireify), publishing, or build/lifecycle diagnostics. INVOKES: Aspire docs/API lookup, aspire add/restore/start/wait, AppHost and package edits. FOR SINGLE OPERATIONS: Assess first; never edit from a generic migration request alone.npx claudepluginhub microsoft/aspire-skills --plugin aspireOther plugins' skills for the same job