Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

aspireify

БесплатноБез исполняемых скриптовНе проверен

**WORKFLOW SKILL** - Wire Aspire AppHosts or repair TypeScript AppHost toolchains. Scans the repo, proposes a resource graph, edits C#, file-based C#…

microsoftот microsoft★ 103 звезды на GitHub

Об этом скилле

Aspireify

One-time wiring skill. aspire init drops a skeleton; aspireify turns that skeleton into a working AppHost by scanning the repo, proposing a resource graph, editing the AppHost, wiring Aspire.ServiceDefaults, and validating end to end. Self-deactivates after a clean aspire start.

🚫 Hard Refusal: Never Edit .aspire/modules/

⛔ REFUSE any request to edit, modify, change, open-for-edit, or "tweak" files inside .aspire/modules/ of a TypeScript or Go AppHost. This directory is generated from the installed Aspire integration package graph. It is regenerated by aspire add, aspire restore, and startup when package changes require it.

If a user asks to edit something in .aspire/modules/ (e.g., .aspire/modules/postgres.module.ts), the correct response is:

  1. Refuse the edit with a clear "I won't edit .aspire/modules/" statement.
  2. Explain that .aspire/modules/ is generated and any changes are clobbered.
  3. Redirect the requested change to the configured AppHost entry point: current apphost.mts, legacy apphost.ts, or apphost.go.
  4. If the user wants a new integration, suggest aspire add <package>; if they want to change configuration, show the equivalent edit in the AppHost entry point.
❌ Wrong ✅ Right
Open .aspire/modules/postgres.module.ts and tweak the connection options Edit apphost.mts and change addPostgres('pg', { ... }) options there
Modify a generated .aspire/modules/* file directly Re-run aspire add <package> after updating apphost.mts
Comment out a line in .aspire/modules/ to disable a resource Remove or guard the resource declaration in apphost.mts

This rule applies even if the user insists, even for "one-line" changes, even for "just to test something." TS and Go AppHosts regenerate .aspire/modules/ deterministically; edits are unrecoverable noise.

Guiding Principles

Minimize changes to the user's code

Adapt the AppHost to fit the app, not the other way around. Prefer WithEnvironment() to match existing environment variable names, Aspire-managed ports over fixed ports, and 1:1 Docker Compose mapping before optimizing. Do not restructure directories, rename files, or change build scripts unless the user explicitly chooses that tradeoff.

Surface tradeoffs; do not decide silently

When a small code change unlocks better Aspire integration, present both options: the zero-code-change mapping and the small-change version that enables WithReference, health checks, service discovery, dynamic ports, or dashboard telemetry. Ask which approach the user wants, then implement that choice without complaint.

Verify APIs before writing AppHost code

Use aspire docs search <topic> and aspire docs get <slug> for workflow guidance. Use aspire docs api search <query> --language csharp|typescript|go (go needs the 17.0 CLI) and aspire docs api get <id> for API shape. Use aspire integration list/search to find integrations before aspire add. Do not invent packages, methods, overloads, or command shapes; C#, TypeScript, and Go AppHost APIs differ.

Keep configuration visible in the AppHost

Scan .env, .env.local, .env.development, secrets.json.example, <UserSecretsId>, and setup scripts. Propose migrating values into AppHost parameters: connection strings become Aspire resources, API keys/tokens become secret parameters, and non-secret config becomes plain parameters or WithEnvironment() values. Never delete .env files or remove existing UserSecretsId entries without explicit user approval because non-Aspire workflows may still depend on them.

Local development first

This skill optimizes local development, not production deployment. Prefer persistent container lifetimes and data volumes for databases/caches, use HTTPS endpoints by default, pass endpoint references instead of hardcoded URLs, and model external SaaS URLs/API keys as parameters so they are visible in the dashboard.

Persistent-data recovery

Before recommending or performing a persistent-data reset, including read-only advice, read and follow the recovery safeguards. Require explicit approval for the exact destructive target; never clear shared data.

Redis TLS edge case

Aspire can automatically provision TLS certificates for container resources. If Redis health checks fail with SSL/TLS handshake errors, do not fall back to AddContainer(). Use WithoutHttpsCertificate() on the Redis resource when the consuming app expects plain Redis.

Project-Local Override

If .agents/skills/aspireify/SKILL.md exists, check aspire --version.

  • Aspire 13.6 and earlier: aspire init or aspire agent init --skills aspireify installed it. Warn the user that a project-local copy is present and defer to it. The plugin version is the fallback.

    ⚠️
    
Полный SKILL.md на GitHub

Установить aspireify в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/apphost-wiring.mdreferences/csharp-authoring.mdreferences/docker-compose.mdreferences/full-solution-apphosts.mdreferences/go-authoring.mdreferences/javascript-apps.mdreferences/opentelemetry.mdreferences/scan-and-propose.mdreferences/service-defaults.mdreferences/typescript-authoring.mdreferences/validation.md

FAQ

Что делает скилл aspireify?

**WORKFLOW SKILL** - Wire Aspire AppHosts or repair TypeScript AppHost toolchains. Scans the repo, proposes a resource graph, edits C#, file-based C#, TypeScript, or Go AppHosts, wires ServiceDefaults + OTel, validates with `aspire start`, then stops. USE FOR: wire/scaffold AppHost, add Postgres/Redis/Rabbit/Mongo, connect frontend to API, after `aspire init`, AddNextJsApp, AddViteApp, WithBrowserLogs, Interaction Service, command arguments, apphost.cs, apphost.mts, apphost.go, unified withEnvironment, .aspire/modules refusal, config/secrets, TS dependency restore, pnpm/yarn/bun, or Yarn Classic. DO NOT USE FOR: skeleton drop (aspire-init), lifecycle-only start/stop/wait/restart or `aspire update --migrate` (aspire-orchestration), publish/deploy/destroy (aspire-deployment), logs/traces (aspire-monitoring), terminal authoring or automation (aspire-terminals). INVOKES: aspire CLI, AppHost source edits, ServiceDefaults wiring. FOR SINGLE OPERATIONS: Run `aspire add PACKAGE` directly for a one-off integration.

Как установить скилл aspireify?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл aspireify запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить aspireify с