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,…

npx skills add https://github.com/microsoft/aspire-skills --skill aspire-init

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

RequirementInstall
.NET 10.0 SDKhttps://dotnet.microsoft.com/download
Node.js ^20.19.0, ^22.13.0, or >=24 (TypeScript AppHost)https://nodejs.org
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 prerequisitesaspire 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:

SignalHow to DetectMeaning
No C# AppHostNo .csproj containing Aspire.AppHost.SdkOK to init
No file-based AppHostNo apphost.cs with #:sdk Aspire.AppHost.SdkOK to init
No TypeScript AppHostNo current apphost.mts or legacy apphost.ts in the repoOK to init
No Aspire configNo aspire.config.json in repo rootOK to init
User intentExplicit "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

SituationCommandWhy
Empty directory or brand-new projectaspire new <template>Generates a full starter solution
Existing repo with services to modelaspire initDrops minimal skeleton + aspire.config.json next to existing code
User wants a sample to learn fromaspire new aspire-starterIncludes ApiService + Web + ServiceDefaults
User wants the smallest possible scaffoldaspire new aspire-empty (C#) or aspire new aspire-ts-empty (TS)No resources pre-wired
User wants Python servicesaspire new aspire-py-starter (TypeScript AppHost drives Python)Not dotnet new — that template was removed in 13.3

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
    
  3. aspire init drops:
    • The AppHost skeleton (apphost.cs with #:sdk directives, or apphost.mts with the generated .aspire/modules/ folder)
    • AppHost configuration describing language + AppHost path
    • The aspireify agent skill into the project's skill directory (same one aspire agent init uses)
  4. Hand off to aspireify — aspire init does not wire resources, projects, or integrations on its own.
  5. After 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.

See references/init-workflow.md for the full sequence including what aspire.config.json contains and what to do if aspire init fails partway.

Handoff Rules

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)

Project-Local Skill Override

If .agents/skills/aspire-init/SKILL.md exists project-locally (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 this plugin's in-plugin aspireify for the same reason — defer to the project-local copy and warn.

Error Handling

SymptomCauseAction
aspire init reports AppHost already existsRepo already has an AppHostStop. Route to aspireify (re-wire) or aspire-orchestration (lifecycle)
aspire init fails in non-interactive mode without --languageMultiple language paths availableRe-run with --language csharp or --language typescript
aspire new rejects --output pathPath exists and is non-emptyUse a different --output or empty the directory
aspire command not foundCLI not installeddotnet tool install -g Aspire.Cli (.NET 10) or curl -sSL https://aspire.dev/install.sh | bash
aspire doctor reports missing .NET 10SDK missingInstall .NET 10 SDK before retrying
aspire init succeeded but no aspireify skill installedAgent skill directory not detectedRun aspire agent init to install aspireify, then continue wiring
Skeleton dropped but resources not wiredExpected — aspire init does not wireHand off to aspireify
Existing TypeScript AppHost still uses apphost.tsLegacy entry point and package graphHand off to aspire-orchestration, which owns approval and aspire update --migrate --yes --non-interactive; return to aspireify only for later source authoring

References

Plus de skills de microsoft

oss-growth
microsoft
Persona de growth hacker OSS
agent-framework-azure-ai-py
microsoft
Créez des agents Azure AI Foundry à l’aide du SDK Python Microsoft Agent Framework (agent-framework-azure-ai). À utiliser lors de la création d’agents persistants avec AzureAIAgentsProvider, de l’utilisation d’outils hébergés (interpréteur de code, recherche de fichiers, recherche web), de l’intégration de serveurs MCP, de la gestion de fils de conversation ou de l’implémentation de réponses en streaming. Couvre les outils de fonction, les sorties structurées et les agents multi-outils.
development
airunway-aks-setup
microsoft
Configurez AI Runway sur AKS — du cluster nu au modèle en cours d'exécution. Couvre la vérification du cluster, l'installation du contrôleur, l'évaluation GPU, la configuration du fournisseur et le premier déploiement. QUAND : « configurer AI Runway », « intégrer un cluster AKS », « installer AI Runway », « configuration airunway », « déployer un modèle sur AKS », « inférence GPU sur AKS », « configuration KAITO sur AKS », « exécuter LLM sur AKS », « vLLM sur AKS », « configurer le service de modèles sur AKS », « contrôleur AI Runway ».
devops
appinsights-instrumentation
microsoft
Conseils pour instrumenter les applications web avec Azure Application Insights. Fournit des modèles de télémétrie, la configuration du SDK et des références de configuration. QUAND : comment instrumenter une application, SDK App Insights, modèles de télémétrie, qu'est-ce qu'App Insights, conseils sur Application Insights, exemples d'instrumentation, bonnes pratiques APM.
devops
applicationinsights-web-ts
microsoft
Instrumentez les applications navigateur/web avec le SDK JavaScript Application Insights (@microsoft/applicationinsights-web). Utilisez-le pour la surveillance des utilisateurs réels (RUM) — vues de page, clics, dépendances AJAX/fetch, exceptions, événements personnalisés et traces d’agents GenAI côté navigateur corrélées aux traces OpenTelemetry backend. Couvre le script de chargement du SDK et la configuration npm, les extensions de framework (React, React Native, Angular), Click Analytics, les initialiseurs de télémétrie et les conventions sémantiques OTel GenAI pour les spans d’agents/outils/modèles émises depuis le navigateur.
devops
azure-ai-anomalydetector-java
microsoft
Créez des applications de détection d'anomalies avec le SDK Azure AI Anomaly Detector pour Java. Utilisez-le lors de l'implémentation de la détection d'anomalies univariées/multivariées, de l'analyse de séries temporelles ou de la surveillance basée sur l'IA.
development
azure-ai-language-conversations-py
microsoft
Implémentez la compréhension du langage conversationnel (CLU) à l’aide du SDK Python azure-ai-language-conversations. Utilisez-le lorsque vous travaillez avec ConversationAnalysisClient pour analyser l’intention et les entités d’une conversation, créer des fonctionnalités de NLP ou intégrer la compréhension du langage dans des applications.
development
azure-ai-ml-py
microsoft
SDK v2 d’Azure Machine Learning pour Python. Utiliser pour les espaces de travail ML, les tâches, les modèles, les jeux de données, le calcul et les pipelines. Déclencheurs : « azure-ai-ml », « MLClient », « espace de travail », « registre de modèles », « tâches d’entraînement », « jeux de données ».
development