Skip to content

Commit 1ca9c05

Browse files
Improve init closing message with one-shot agent commands
Say 'AppHost created' instead of 'skeleton created', and print copy-pasteable commands for GitHub Copilot, Claude Code, and OpenCode to invoke the aspire-init skill. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 9ebfdef commit 1ca9c05

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/Aspire.Cli/Commands/InitCommand.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,13 @@ protected override async Task<int> ExecuteAsync(ParseResult parseResult, Cancell
9191
var workspaceRoot = solutionFile?.Directory ?? workingDirectory;
9292
var agentInitResult = await _agentInitCommand.PromptAndChainAsync(_hostEnvironment, InteractionService, ExitCodeConstants.Success, workspaceRoot, cancellationToken);
9393

94-
// Step 5: Print closing message.
94+
// Step 5: Print closing message with one-shot agent commands.
9595
InteractionService.DisplayEmptyLine();
96-
InteractionService.DisplayMessage(KnownEmojis.Sparkles, "Aspire skeleton created! Open your agent and ask it to complete setup.");
97-
InteractionService.DisplaySubtleMessage("The aspire-init skill will guide your agent through wiring up projects, dependencies, and validation.");
96+
InteractionService.DisplayMessage(KnownEmojis.Sparkles, "Aspire AppHost created! To complete setup, invoke the aspire-init skill with your agent:");
97+
InteractionService.DisplayEmptyLine();
98+
InteractionService.DisplaySubtleMessage(" GitHub Copilot: copilot \"run the aspire-init skill\"");
99+
InteractionService.DisplaySubtleMessage(" Claude Code: claude \"run the aspire-init skill\"");
100+
InteractionService.DisplaySubtleMessage(" OpenCode: opencode \"run the aspire-init skill\"");
98101

99102
return agentInitResult;
100103
}

0 commit comments

Comments
 (0)