aspire-orchestration
**WORKFLOW SKILL** — Manage Aspire AppHost lifecycle and recover from file locks, port conflicts, and orphaned processes.
Skill by Microsoft
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/nam20485-aspire-orchestration
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, productivity
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/aspire-orchestration
What's inside
- Skill name
aspire-orchestration- Description
- **WORKFLOW SKILL** — Manage Aspire AppHost lifecycle and recover from file locks, port conflicts, and orphaned processes. WHEN: "start my Aspire app", "aspire start", "aspire stop", "aspire wait", "restart the API service", "file lock error", "MSB3491", "CS2012", "port already in use", "upgrade Aspire CLI", "aspire update --self", "proxies missing in aspire ps", "--include-hidden", "aspire integration list", "aspire integration search", "default watch", "hot reload". INVOKES: aspire CLI (start, stop, wait, ps, resource, integration, add, init, doctor, update, restore). FOR SINGLE OPERATIONS: Run the aspire CLI command directly.
- License
- MIT
- Metadata
- author: Microsoft · version: 0.0.1
- Instructions
- 189 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Files (6)
- SKILL.md
- agent-workflows.md · references/
- app-commands.md · references/
- detection.md · references/
- resource-management.md · references/
- safety-guardrails.md · references/
SKILL.md (first lines)
# 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](https://github.com/microsoft/aspire/issues/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 (NativeAOT global tool, .NET 10) | `dotnet tool install -g Aspire.Cli` | Either install method works. The `dotnet tool install` path produces a NativeAOT binary (instant startup, no JIT warmup) and is the recommended option when .NET 10 is already present. ## 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 | `apphost.ts` file in project | ✅ Definitive | | Aspire config | `aspire.config.json` in project root | High | | Aspire settings | `.aspire/` directory present | High | | Generated TS modules | `.aspire/modules/` directory present | High | | Service defaults | `Aspire.ServiceDefaults` in project references | Medium | See [detection.md](references/detection.md) for detailed fingerprinting. ## Safety Guardrails | Situation | ✅ ALWAYS Do | ❌ NEVER Do | |-----------|-------------|------------| | Start an Aspire app | `aspire start` | `dotnet run` on AppHost | | Wait for resource ready | `aspire wait <resource>` | `curl` / HTTP polling loops | | Code changed in a resource | Prefer resource commands, runtime watch/HMR, dashboard actions, or IDE-managed debugging | `dotnet build` against locked files | | Task complete | `aspire stop` | Leave processes running | | Check resource status | `aspire describe` / `aspire ps` | Manual process inspection | | Working in git worktree | `aspire start --isolated` | `aspire start` without isolation | | Running from AI agent | Add `--non-interactive` to all commands | Assuming interactive terminal | | Editing unfamiliar API | `aspire docs search <topic>` then `aspire docs api search <query>` for API reference | Guessing API shape | | C# AppHost API inspection | Use `dotnet-inspect` skill (if available) for local symbols | Guessing overloads or builder chains | | Adding custom dashboard/resource commands | `aspire docs search "custom resource commands"` first | Inventing `WithCommand` patterns without docs | | Installing Aspire support | Use `aspire add` or `aspire init` | ~~`dotnet workload install aspire`~~ (obsolete) | See [safety-guardrails.md](references/safety-guardrails.md) for detailed rules and recovery patterns. ## Default Workflow 1. Confirm workspace is Aspire — identify the AppHost 2. `aspire start` (or `aspire start --isolated` in worktrees) 3. `aspire wait <resource>` before interacting with any resource 4. `aspire describe` to inspect state, then work 5. If AppHost code changed, rerun `aspire start`; if only one resource changed, prefer the resource's commands/watch/HMR/debug workflow 6. `aspire stop` when cleanup is explicitly requested or needed to release locks/ports ## Quick Reference | Task | Command | |------|---------| | Start app (agents) | `aspire start` (background, preferred) | | Start app (human) | `aspire run` (foreground, dashboard) | | Stop app | `aspire stop` | | Wait for resource | `aspire wait <resource>` | | Check status | `aspire ps` or `aspire describe` | | Show hidden resources (proxies, helpers, migrations) | `aspire ps --include-hidden` / `aspire describe --include-hidden` | | Resource operation | `aspire resource <resource-name> <command>` such as `stop`, `start`, or `rebuild` when exposed | | Create new project | `aspire new aspire-starter` | | Add Aspire to existing | `aspire init` (then hand off to `aspireify` skill for wiring) | | Add integration | `aspire add <package>` | | Discover integrations | `aspire integration list --format Json` / `aspire integration search <query> --format Json` | | Upgrade the CLI itself | `aspire update --self` | | Update project package refs | `aspire update` (modifies project files — get user approval) | | Restore generated files | `aspire restore` | | Environment maintenance | `aspire cache clear`, `aspire certs trust`, `aspire certs clean` | | Diagnose environment | `aspire doctor` | | Machine-readable output | `--format Json` (supported: `ps`, `describe`, `start`) | | Look up API reference | `aspire docs api search <query> --language csharp\|typescript` | | Browse API entries | `aspire docs api list <scope>` | | Get API detail | `aspire docs api get <id>` | ## Error Handling | Symptom | Cause | Action | |---------|-------|--------| | **File lock errors during build (`MSB3491`, `CS2012`)** | **Aspire is running and holds locks on `bin/`, `obj/`, and assemblies.** | **Run `aspire stop` first**, then rebuild or `aspire start`. Do NOT conclude the project has a permanent build failure. | | "Port already in use" | Previous instance running | `aspire stop`, then `aspire start` | | Resource not found | App not started or name wrong | `aspire ps` to check | | Build errors in resource | Code error, not Aspire issue | Fix code, then use resource commands/watch/HMR/debug workflow or rerun `aspire start` if AppHost code changed | | Environment issues | Missing SDK or tools | `aspire doctor` to diagnose | | JSON parse failure from `aspire start` | Mixed human/JSON output ([#15843](https://github.com/microsoft/aspire/issues/15843)) | Strip non-JSON lines before parsing | | `aspire wait` rejects name | Use `displayName` not `name` ([#15842](https://github.com/microsoft/aspire/issues/15842)) | Use `displayName` from `aspire ps --format Json` | | `aspire ps` hangs | AppHost on breakpoint ([#15576](https://github.com/microsoft/aspire/issues/15576)) | Use timeout, check AppHost process | | `aspire agent init` fails | Non-interactive terminal ([#16264](https://github.com/microsoft/aspire/issues/16264)) | Run from standard terminal | | Docker daemon unavailable | Container-backed resources fail to start | Start Docker Desktop, then `aspire start` | | Multiple AppHosts detected | Wrong AppHost targeted | Use `--apphost <path>` to specify explicitly | ### 🔒 File-Lock Recovery (MSB3491 / CS2012) — Always `aspire stop` First When a build fails with `error MSB3491: Could not write to output file ...` or `error CS2012: Cannot open ... for writing`, the project itself is healthy — **Aspire is running and holding file locks** on the resource's output assemblies. The recovery is always the same: ```bash # ✅ Correct recovery sequence aspire stop # release the locks # ... then either rebuild / restart one resource if the resource exposes commands ... aspire resource <name> rebuild # example: C# project resource with rebuild command # ... or restart the whole AppHost ... aspire start # if AppHost code changed or Aspire was already stopped ``` | ❌ NEVER do | ✅ ALWAYS do | |------------|-------------| | Tell the user the project has a permanent build failure | Recognize the lock as Aspire holding outputs and run `aspire stop` |
From nam20485/.agents, MIT.
More from nam20485/.agents
- 0.524score
develop-epic
nam20485
Develops one epic from a phase of the main application plan document.
SkillBFreshness: BClaude Code +9 - 0.519score
cross-review
nam20485
Cross review code using a subagent with a specified model.
SkillBFreshness: BClaude Code +9 - 0.516score
analyze-progress-doc
nam20485
Analyze progress documentation for a GitHub repository, optionally based on an issue.
SkillBFreshness: BClaude Code +9 - 0.516score
create-app-plan
nam20485
Create an application plan following the create-application-plan workflow assignment.
SkillBFreshness: BClaude Code +9 - 0.516score
create-repo-summary
nam20485
Analyze a repository and generate a summary file (.ai-repo-summary.md).
SkillBFreshness: BClaude Code +9 - 0.516score
create-app-from-plans
nam20485
Create an application from existing plans.
SkillBFreshness: BClaude Code +9 - 0.516score
create-application
nam20485
Create a new application following the create-application workflow assignment.
SkillBFreshness: BClaude Code +9 - 0.516score
create-new-ai-app-spec
nam20485
Create a new AI application specification from an application plan.
SkillBFreshness: BClaude Code +9 - 0.516score
create-repo-custom-instructions
nam20485
Generate repository-specific custom instructions file (ai-repo-summary.md) by analyzing the current repo.
SkillBFreshness: BClaude Code +9 - 0.516score
dotnet-inspect
nam20485
Query .NET APIs across NuGet packages, platform libraries, and local files.
SkillBFreshness: BClaude Code +9 - 0.514score
assign
nam20485
Generic assignment dispatcher — invokes any workflow assignment by name.
SkillBFreshness: BClaude Code +9 - 0.511score
continue-orchestrating-project-setup
nam20485
Resume a previously interrupted project-setup dynamic workflow.
SkillBFreshness: BClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Aug 28, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 0.0.1
- License
- MIT
- Repository
- github.com/nam20485/.agents
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Microsoft
- 0.643score
azure-kubernetes
MicrosoftOfficial
Plan, create, and configure production-ready Azure Kubernetes Service (AKS) clusters.
SkillAFreshness: A★ 3.1KClaude Code +9 - 0.643score
azure-prepare
MicrosoftOfficial
Prepare azd-based Azure projects for deployment: generates azure.yaml, infrastructure (Bicep/Terraform), and Dockerfiles for the Azure Developer CLI (azd)…
SkillAFreshness: A★ 3.1KClaude Code +9 - 0.643score
azure-app-onboard
MicrosoftOfficial
End-to-end orchestrator: from a business idea, app idea, or existing app to running Azure deployment with cost estimates and pre-deploy approval.
SkillAFreshness: A★ 3.1KClaude Code +9 - 0.643score
appinsights-instrumentation
MicrosoftOfficial
Guidance for instrumenting webapps with Azure Application Insights.
SkillAFreshness: A★ 3.1KClaude Code +9 - 0.643score
azure-compliance
MicrosoftOfficial
Run Azure compliance and security audits with azqr plus Key Vault expiration checks.
SkillAFreshness: A★ 3.1KClaude Code +9 - 0.643score
foundry-iq
MicrosoftOfficial
Foundry IQ knowledge bases.
SkillAFreshness: A★ 3.1KClaude Code +9
Cite this page
aspire-orchestration skill. Agent Mart. https://agentmart.dev/skills/nam20485-aspire-orchestration (last updated 2026-10-24)