Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计提醒

aspireaspire 命令行

Agent Skill

aspire 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

552

周安装

23

GitHub Stars

公开资料未说明

下载量

184
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:aspire(aspire 命令行)
来源仓库:https://github.com/stuartf303/sorcha
仓库路径:skills/aspire
安装命令:
npx skills add https://github.com/stuartf303/sorcha --skill aspire
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/stuartf303/sorcha --skill aspire

简介

aspire 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词、任务场景或来源线索快速定位候选结果时使用。
  • 可结合来源仓库、安装命令和原始 README 继续核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 安装命令:npx skills add https://github.com/stuartf303/sorcha --skill aspire

SKILL.md

.NET Aspire 13.x Skill

.NET Aspire 13.x provides orchestration for this distributed ledger platform. The AppHost (src/Apps/Sorcha.AppHost/AppHost.cs) orchestrates 7 microservices with PostgreSQL, MongoDB, and Redis. Services use AddServiceDefaults() for consistent OpenTelemetry, health checks, and service discovery. JWT signing keys are generated once and shared across all services via environment variables.

Version Info

ComponentVersionNotes
Aspire.AppHost.Sdk13.0.0SDK in .csproj — legacy dual-SDK format
Aspire.Hosting.*13.1.0AppHost hosting packages
Aspire.StackExchange.Redis13.1.0Service-level Redis integration
Aspire.Hosting.Testing13.1.0Integration/E2E test infrastructure
Aspire Dashboard9.0.0Docker image (separate versioning)

Sorcha Package Locations:

  • AppHost: src/Apps/Sorcha.AppHost/Sorcha.AppHost.csproj
  • ServiceDefaults: src/Common/Sorcha.ServiceDefaults/Extensions.cs
  • Services: Blueprint, Register, Wallet, Validator (each has Aspire.StackExchange.Redis)
  • Tests: Gateway Integration, Wallet Integration, UI E2E (each has Aspire.Hosting.Testing)

Quick Start

Adding a Service to AppHost

// In AppHost.cs - Add project with resource references
var myService = builder.AddProject<Projects.Sorcha_MyService>("my-service")
    .WithReference(redis)                                    // Service discovery
    .WithReference(walletDb)                                // Database connection
    .WithEnvironment("JwtSettings__SigningKey", jwtSigningKey); // Shared config

Named References (v13+)

// Control the environment variable prefix for a resource reference
var myService = builder.AddProject<Projects.Sorcha_MyService>("my-service")
    .WithReference(postgres.AddDatabase("mydb"), "primary-db");  // ConnectionStrings__primary-db

Consuming Aspire in a Service

// In Program.cs - Every service starts with this
var builder = WebApplication.CreateBuilder(args);

builder.AddServiceDefaults();                    // OpenTelemetry, health checks, discovery
builder.AddRedisOutputCache("redis");            // Reference by resource name
builder.AddRedisDistributedCache("redis");

var app = builder.Build();
app.MapDefaultEndpoints();                       // /health and /alive

Key Concepts

ConceptUsageExample
Resource NameIdentifier for service discovery"redis", "tenant-service"
WithReferenceInjects connection string/URL.WithReference(postgres)
Named ReferenceCustom env var prefix (v13+).WithReference(db, "mydb")
WithEnvironmentPass config to service.WithEnvironment("Key", value)
WithExternalHttpEndpointsExpose outside Aspire network.WithExternalHttpEndpoints()
AddServiceDefaultsShared Aspire configurationbuilder.AddServiceDefaults()
Connection PropertiesAccess individual fields (v13+)resource.GetConnectionProperty("HostName")
WithHttpsCertificateTLS termination (v13.1+).WithHttpsCertificate(cert)
ContainerRegistryResourceRegistry config (v13.1+ exp.)builder.AddContainerRegistry(...)

What's New in Aspire 13.x

v13.0 Highlights

  • New SDK format: Single <Project Sdk="Aspire.AppHost.Sdk/13.0.0"> replaces dual-SDK
  • Polyglot connections: Resources expose HostName, Port, JdbcConnectionString
  • Named references: WithReference(resource, "customName") for env var prefixes
  • MCP dashboard: Aspire dashboard exposes MCP endpoints for AI assistants
  • Container file artifacts: PublishWithContainerFiles() for frontend-in-backend
  • Pipeline system: aspire do for coordinated build/publish/deploy
  • aspire init: Interactive solution initialization and discovery
  • VS Code extension: Native project creation, debugging, deployment

v13.1 Highlights

  • aspire mcp init: Configure MCP for AI coding agents
  • TLS termination: WithHttpsCertificate() for YARP, Redis, Keycloak, Vite
  • Container registry: Experimental ContainerRegistryResource
  • Dashboard Parameters tab: Dedicated parameter inspection
  • GenAI visualizer: Tool definitions, evaluations, preview media
  • Azure Managed Redis: Replaces AddAzureRedisEnterprise()
  • DevTunnels stabilized: No longer preview

Breaking Changes (v9 -> v13)

Old APINew APINotes
AddNpmApp()AddJavaScriptApp()Removed in v13
AddNodeApp()RefactoredDifferent parameter ordering
Aspire.Hosting.NodeJsAspire.Hosting.JavaScriptPackage renamed
.Model property.ModelNameOpenAI/GitHub models
.Database property.DatabaseNameMilvus/MongoDB/MySQL/Oracle
Dual-SDK .csprojSingle SDK .csprojOptional migration

Sorcha AppHost Architecture

AppHost.cs orchestrates:
  postgres ──┬── tenant-db ───── tenant-service
             └── wallet-db ───── wallet-service
  mongodb ───── register-db ──── register-service
  redis ────── (shared by all services)

  tenant-service ──── (JWT issuer, auth provider)
  blueprint-service ─── (workflow engine)
  validator-service ──── wallet-service, register-service, peer-service, blueprint-service
  api-gateway ──── (routes to all services, external HTTP)
  ui-web ──── api-gateway (Blazor WASM frontend)

Common Patterns

Database Resources

// PostgreSQL with multiple databases
var postgres = builder.AddPostgres("postgres").WithPgAdmin();
var tenantDb = postgres.AddDatabase("tenant-db", "sorcha_tenant");
var walletDb = postgres.AddDatabase("wallet-db", "sorcha_wallet");

// MongoDB for document storage
var mongodb = builder.AddMongoDB("mongodb").WithMongoExpress();
var registerDb = mongodb.AddDatabase("register-db", "sorcha_register");

// Redis for caching
var redis = builder.AddRedis("redis").WithRedisCommander();

Service Dependencies

// Service references other services for discovery
var validatorService = builder.AddProject<Projects.Sorcha_Validator_Service>("validator-service")
    .WithReference(redis)
    .WithReference(walletService)
    .WithReference(registerService)
    .WithReference(peerService)
    .WithReference(blueprintService);

Health Endpoints

// ServiceDefaults provides these automatically
app.MapHealthChecks("/health");           // Readiness - all checks
app.MapHealthChecks("/alive", new HealthCheckOptions
{
    Predicate = r => r.Tags.Contains("live")  // Liveness - tagged checks only
});

TLS Termination (v13.1+)

// Configure HTTPS certificates on containers
var redis = builder.AddRedis("redis")
    .WithHttpsCertificate(cert);

// YARP with TLS
var gateway = builder.AddProject<Projects.Sorcha_ApiGateway>("api-gateway")
    .WithHttpsCertificate();

See Also

  • patterns - AppHost patterns, SDK format, named references, TLS, MCP
  • workflows - CLI commands, testing, deployment, troubleshooting

Related Skills

  • See the dotnet skill for.NET 10 patterns
  • See the minimal-apis skill for endpoint configuration
  • See the redis skill for cache configuration
  • See the postgresql skill for database patterns
  • See the mongodb skill for document storage
  • See the docker skill for containerization

Documentation Resources

Fetch latest.NET Aspire documentation with Context7.

How to use Context7:

  1. Use mcp__context7__resolve-library-id to search for "aspire"
  2. Prefer website documentation (IDs starting with /websites/) over source code repositories when available
  3. Query with mcp__context7__query-docs using the resolved library ID

Library ID: /dotnet/docs-aspire *(High reputation, 3264 code snippets)*

Recommended Queries:

  • "AppHost service orchestration configuration"
  • "service discovery WithReference patterns"
  • "OpenTelemetry observability setup"
  • "health checks readiness liveness"
  • "aspire 13 breaking changes migration"
  • "TLS termination WithHttpsCertificate"
  • "MCP model context protocol dashboard"

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude

33.99%
按下载量换算63

Codex

33.72%
按下载量换算62

Cursor

20.69%
按下载量换算38

Gemini CLI

9.17%
按下载量换算17

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills