aspire-project-v2-migration
БесплатноБез исполняемых скриптовНе проверен**WORKFLOW SKILL** - Safely migrates eligible Aspire 13.6+ AppHosts from legacy ProjectResource APIs to experimental DotnetProjectResource APIs after a…
от microsoft★ 103 звезды на GitHubОб этом скилле
Aspire Project v2 migration
Migrate supported legacy .NET project resources to the experimental
DotnetProjectResource model without silently changing application behavior.
This skill first applies to AppHosts targeting Aspire 13.6 or newer.
Approval boundary: A request such as "migrate to Project v2" authorizes an assessment, not unseen edits. Present the exact per-resource and per-file plan, then obtain approval before changing AppHost, package, project-reference, or application files. Apply only explicitly approved subsets.
Hard gates
- Identify one exact AppHost and preserve unrelated local changes.
- Resolve the AppHost's actual Aspire SDK/hosting version from project files, central package management, file directives, or resolved polyglot configuration.
- Stop without edits if versions are older than 13.6, unresolved, or conflicting.
Do not infer eligibility from the Aspire CLI version, .NET SDK, or service
TargetFramework, and do not upgrade Aspire implicitly. - Verify the installed/resolved packages expose every needed API, including
AddDotnetProject, publishing, EF, and Blazor capabilities used by the app. Development packages are development-build evidence, not released-package evidence. - Never manually edit generated
.aspire/modules/files. - Use
aspire docs searchandaspire docs api search ... --language csharp|typescriptbefore relying on unfamiliar or preview API shapes. - For TypeScript, require the resolved generated
addDotnetProject(name, path, options?: DotnetProjectOptions)API with a flat DTO. Older handle-only target builds are a capability stop, not a second supported migration path. Legacy sourceProjectResourceOptionsvalues remain RPC handles.
The publishing and TypeScript options changes are merged upstream, but a 13.6 version label alone does not prove that a consumer's packages contain them. See compatibility-and-validation.md for the merged API baseline and publishing boundaries.
Project-Local Skill Override
If .agents/skills/aspire-project-v2-migration/SKILL.md exists, check aspire --version.
On Aspire 13.6 and earlier, warn the user and defer to that project-local skill while
retaining these safety gates. On Aspire 17.0 and later, treat the copy as stale unless the
user says they maintain it. Use this skill, tell the user the copy is stale, and suggest
aspire doctor, which lists each copy and explains how to remove it.
Workflow
1. Inventory actual behavior
Keep the assessment read-only in the application workspace. Inspect source and already-resolved metadata; do not restore, build, run, or regenerate SDK files before approval, even for capability discovery. If preparation is necessary to verify eligibility or APIs, describe that prerequisite and request approval for it rather than silently modifying the workspace.
Inspect the selected AppHost and every legacy candidate:
AddProject<Projects.T>, path/directoryAddProject,AddCSharpApp, and polyglot equivalents.- Documented Blazor gateway patterns and attached EF operations.
- Names, paths, options, application arguments, environment callbacks, endpoints, launch settings, references, waits, health checks, replicas, build/publish configuration, and deployment annotations.
- AppHost
ProjectReference/ file-based#:projectedges and every consumer of generated project metadata. ResolveProjects.*through realIProjectMetadata, project-reference metadata, andAspireProjectMetadataTypeName; never guess a path from a type name. - Custom code coupled to
ProjectResource, including casts, constraints,GetProjectResources(), publishers, image managers, direct constructors, or specialized subclasses. - SDK selection, custom build properties, build-only requirements, file-app AOT settings, and existing local changes.
- For Blazor gateway publishing, the effective before/after target framework, SDK, runtime/base image and OS/platform, process user, working directory, entrypoint, and port configuration. The AppHost's target framework does not establish the packaged gateway file app's publishing framework.
An already migrated app or an app with no matching resources is a no-op.
2. Classify and propose
Present a table before editing:
| Resource | Current API and source | Proposed replacement | Behavior retained / intentional change | Package and reference edits | Classification |
|---|---|---|---|---|---|
api |
AddProject<Projects.Api> → resolved path |
AddDotnetProject("api", path) |
args, profiles, endpoints, env, refs, waits, replicas, publishing | add Aspire.Hosting.Dotnet; remove only proven-exclusive edge |
supported / decision / unsupported |
Explain:
ASPIREDOTNETPROJECT001is an experimental API diagnostic.- Project v2 resources have executable-based identity and coordinated initial builds.
- Known publishing or validation
Установить aspire-project-v2-migration в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл aspire-project-v2-migration?
**WORKFLOW SKILL** - Safely migrates eligible Aspire 13.6+ AppHosts from legacy ProjectResource APIs to experimental DotnetProjectResource APIs after a per-resource assessment and explicit approval of exact edits. USE FOR: assess or migrate existing AddProject, addProject, AddCSharpApp, addCSharpApp, or AddBlazorGateway resources to Project v2; migrate ProjectResource to DotnetProjectResource; clean up the resulting obsolete AppHost ProjectReference edges. DO NOT USE FOR: upgrading Aspire versions, creating/wiring a new AppHost, Azure Functions migration, generic source modernization, ordinary C# resource wiring or adding a new AddProject resource (use aspireify), publishing, or build/lifecycle diagnostics. INVOKES: Aspire docs/API lookup, aspire add/restore/start/wait, AppHost and package edits. FOR SINGLE OPERATIONS: Assess first; never edit from a generic migration request alone.
Как установить скилл aspire-project-v2-migration?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл aspire-project-v2-migration запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic