csharpfritz/aspire-minecraft/aspire-dashboard-commands

Claude Code and agent skill by csharpfritz/aspire-minecraft

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Install

npx vskill@latest install csharpfritz/aspire-minecraft/aspire-dashboard-commands

SKILL.md

SKILL: Aspire Dashboard Custom Commands

When to Use

When adding interactive buttons to the Aspire dashboard that call HTTP endpoints on resources.

Pattern: WithHttpCommand (Aspire 13.1+)

Use WithHttpCommand for commands that send HTTP requests to a resource's own endpoint. This is the idiomatic way — it handles endpoint resolution, HTTP client, and result reporting automatically.

AppHost Side
csharp
var api = builder.AddProject<Projects.MyService>("api")
.WithHttpHealthCheck("/health") // Enable Aspire health polling
.WithHttpCommand("/my-endpoint", "Button Label",
commandName: "my-command",
commandOptions: new HttpCommandOptions
{
IconName = "ErrorCircle", // FluentUI icon name
IconVariant = IconVariant.Filled, // Regular or Filled
Description = "Tooltip text",
ConfirmationMessage = "Are you sure?",
IsHighlighted = true, // Makes button prominent
// Method defaults to POST — set explicitly for GET:
// Method = HttpMethod.Get,
});
Service Side
csharp
app.MapPost("/my-endpoint", () =>
{
// Do the thing
return Results.Ok(new { message = "Done" });
});

Key Facts

  • WithHttpCommand defaults to POST method.
  • WithHttpHealthCheck is needed for Aspire to actively monitor /health — without it, health endpoint changes are invisible to the orchestrator.
  • The IconName must be a valid FluentUI System Icon.
  • Return 200 from the endpoint for the command to show as "succeeded" in the dashboard. Non-2xx = failure (override with GetCommandResult callback).
  • Use PrepareRequest callback in HttpCommandOptions to add headers or modify the request before it's sent.

Anti-Pattern: WithCommand + Manual HttpClient

Avoid this for same-resource HTTP calls:

csharp
// DON'T — WithHttpCommand handles endpoint resolution for you
.WithCommand("my-cmd", "Button", async context =>
{
var client = new HttpClient();
// Manually resolve endpoint URL... error-prone
await client.PostAsync(url, null);
return CommandResults.Success();
});

References

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/csharpfritz/aspire-minecraft/aspire-dashboard-commands/badge)](https://verified-skill.com/skills/csharpfritz/aspire-minecraft/aspire-dashboard-commands)

Something wrong with this skill or its page? Tell us.