/deniz-dotnet-aspire:aspire-terminalsfrom deniz-dotnet-aspire
**WORKFLOW SKILL** - Author and automate Aspire terminals. USE FOR: WithTerminal, withTerminal, TerminalService, TerminalLaunchOptions, docked terminals, terminal prompts, PromptTerminalAsync, TerminalPlacement, AspireTerminalKey, WithRepl, withRepl, aspire terminal ps/attach/tape play, VHS tapes for Aspire, or terminal screen/input automation. DO NOT USE FOR: generic shell commands, ordinary AppHost resource wiring (deniz-dotnet-aspire:aspireify), start/stop/wait (deniz-dotnet-aspire:aspire-orchestration), logs/traces or browser telemetry (deniz-dotnet-aspire:aspire-monitoring), deployment (deniz-dotnet-aspire:aspire-deployment), or nonterminal Interaction Service prompts (deniz-dotnet-aspire:aspireify). INVOKES: Aspire docs/API lookup, AppHost edits, Aspire terminal CLI; deniz-dotnet-aspire:aspire-orchestration for lifecycle validation. FOR SINGLE OPERATIONS: Choose the terminal owner and lifetime first, then read the matching reference.
Ships in deniz-dotnet-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.
Teach an agent to use the right terminal, not to replace every process with a shell.
Honor a project-local .agents/skills/aspire-terminals/SKILL.md when present;
retain the safety and ownership rules below.
Before answering or editing, open the reference for the requested surface, including for read-only questions. This overview is not enough to write correct terminal code or tape syntax.
| Intent | Pattern | Owner and lifetime |
|---|---|---|
| Make an existing orchestrated executable, project or container interactive | WithTerminal() / withTerminal() | Resource process and replicas; resource lifecycle owns stop/restart |
| Open an auxiliary shell/tool that remains available after its command returns | TerminalService + TerminalPlacement.Dock | AppHost-owned; closing its tab or stopping AppHost disposes it |
| Guide a person through a focused setup/authentication operation | TerminalService + Dialog + PromptTerminalAsync | Caller owns the terminal; prompt borrows it; explicit completion/cancellation |
| Drive a terminal-only tool without a dashboard interaction | TerminalService + None | Caller owns and disposes the headless process |
| Open an authenticated database/cache client | Integration WithRepl() / withRepl() | Built-in command opens a dock terminal; prefer over custom container exec |
WithTerminal changes the resource's actual process execution. It is not an
on-demand side shell. TerminalService launches a separate AppHost-owned process;
it does not implicitly enter a container or become a modeled resource.
When comparing terminal models, explicitly state cleanup for each model you recommend, including headless alternatives:
await using
in that command. Closing the tab or AppHost shutdown disposes it.await using.
Headless placement does not transfer cleanup responsibility to the service.Work closes the
prompt, but the caller still disposes its terminal. Without Work, process exit
does not close the prompt; explicit completion/cancellation is required.aspire docs search terminal --non-interactive, then
aspire docs api search <API> --language csharp|typescript --non-interactive.
If docs lag a preview, inspect that exact package's public API/source. A newer
CLI alone does not add hosting APIs to an older AppHost.WithTerminal/parameterless TS withTerminal exist in Aspire 13.5.
TerminalService, terminal prompts, headless automation, tape playback and the
six integration REPLs below are in the inspected 13.6 development source.
Verify the installed build contains them; do not promise all previews do.ASPIRETERMINAL001): narrowly pair
#pragma warning disable ASPIRETERMINAL001 with #pragma warning restore ASPIRETERMINAL001. The examined integration WithRepl methods themselves
do not require this suppression.TerminalService and terminal-prompt APIs are not exported to
TypeScript in this baseline. Do not invent TS equivalents or edit generated
.aspire/modules/. Supported TS entry points are withTerminal() and the
applicable integration's withRepl().aspire --version and aspire terminal --help for the installed CLI.
Aspire 13.5 keeps terminal commands behind a feature flag; enable them only
for that CLI line with
aspire config set features.terminalCommandsEnabled true --non-interactive.
Newer CLIs no longer require or support that flag. If a command remains
absent, treat it as unavailable rather than guessing alternative syntax.The references are qualified against Aspire release/13.6 commit
34db30a7d3733229da64a403dfc4e4e4d7a1a43b (terminal code also present in main
22bee5e1266b7b66ff53008957dde86efb370c79), compared with shipped v13.5.0.
Terminal-command availability guidance also reflects the subsequent
feature-flag removal.
Recheck capabilities against the user's actual build.
WithTerminal
and built-in REPLs; read AppHost terminals
for complete dock, manual prompt, automated prompt and headless recipes.deniz-dotnet-aspire:aspireify for new general resource wiring and deniz-dotnet-aspire:aspire-init if no AppHost
exists. Do not turn a terminal request into a migration or version upgrade.builder.ExecutionContext.IsRunMode.
Do not launch tools at model-construction time or during publish/deploy.deniz-dotnet-aspire:aspire-orchestration.
Use the exact AppHost, worktree isolation and bounded resource readiness.
Validate the requested lifetime, cancellation and visible result, not merely
that the AppHost compiled.Aspire.Hosting.ApplicationModel, not the old
Aspire.Hosting.Terminals namespace. TerminalService is already registered;
resolve it from built services or command context.Services. Do not construct
it or register another singleton.await using
for its handle. Start() is nonblocking/idempotent; Show() activates the dock.
Command success means "opened", not "process exited successfully".await using. Disposing an
AppHost-owned handle stops its process; PromptTerminalAsync does not
dispose it for you.IInteractionService.IsAvailable before launching a prompt-owned
process. Noninteractive resource commands can make it false. Do not silently
replace human interaction/approval with headless success.TerminalPlacement.Dialog. ResourceView is not valid for CreateTerminal.Work, successful callback completion closes the dialog; observe
TerminalContext.CancellationToken on every wait/input. Cancellation signals
and joins Work; unrelated errors propagate. Without Work, process exit does
not close the prompt: explicitly define completion/cancellation.ExitCode or WaitForExitAsync is available on AspireTerminal.
Do not infer success from Start(), delivered keystrokes, prompt visibility,
or disappearance of a process. Assert a meaningful fresh output marker.--viewer affects sizing ownership,
not read-only authorization. Do not blindly retry non-idempotent input.Hide is not redaction.Read automation and CLI for C# screen/key
operations, owner-aware discovery and interactive attach. Use
tapes for unattended resource-terminal playback: supported
VHS syntax, explicit examples, stdout versus .txt/.ascii checkpoints, and
unsupported output formats. Do not install VHS or assume its whole feature set.
For missing/disconnected terminals, inspect resource state and terminal discovery;
route console logs/traces to deniz-dotnet-aspire:aspire-monitoring. Terminal views supplement logs,
not replace them. Publishing a resource does not publish a development PTY or
grant production shell access.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub blind-striker/agent-skills-and-plugins --plugin deniz-dotnet-aspire10 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, 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: deniz-dotnet-aspire:aspire-init, deniz-dotnet-aspire:aspireify, deniz-dotnet-aspire:aspire-orchestration, deniz-dotnet-aspire:aspire-deployment, deniz-dotnet-aspire:aspire-monitoring, deniz-dotnet-aspire: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.