Skip to content

Remove static Aspire skill copies during aspire agent init - #22080

Merged
Ella Hathaway (ellahathaway) merged 30 commits into
mainfrom
ellahathaway-agent-plugin-migration
Nov 13, 2026
Merged

Ella Hathaway (ellahathaway) merged 30 commits into
mainfrom
ellahathaway-agent-plugin-migration

Conversation

@ellahathaway

@ellahathaway Ella Hathaway (ellahathaway) commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Description

Older Aspire CLIs copied Aspire skills into project and user-profile skill folders such as .agents/skills/aspire. Configured skill sources (the microsoft/aspire-skills plugin for Copilot and Claude Code, or the OpenCode catalog) replace those copies, but the copies go stale and nothing removes them. On main, aspire doctor and aspire agent init only tell users to delete them by hand, and many users do not notice.

This PR lets aspire agent init remove them:

  • After init configures the Aspire skill sources, it lists the copies that the plugin now replaces at the selected scope and asks whether to delete them. The prompt defaults to No. See When aspire agent init deletes copies below for the exact rules.
  • A new --remove-skill-copies option answers the prompt ahead of time: --remove-skill-copies deletes the copies and --remove-skill-copies=false keeps them. Omitting it asks in an interactive terminal and keeps the copies in non-interactive runs, so nothing is deleted unless the user opts in.
  • After the existing 🤖 Configured sources in ... line, init reports the result on one line: 📁 Removed copied Aspire skills in ... or 📁 Kept copied Aspire skills in ....
  • If --remove-skill-copies is passed but the plugin does not replace the copies at the selected scope (for example, the default source is disabled), init keeps them and explains why in a dim note.
  • The option and behavior also apply to aspire init, aspire new, and aspire mcp init, which chain into agent init.
  • Detection only looks where older CLIs wrote copies (their --skill-location choices): .agents/skills, .claude/skills, .github/skills, and .opencode/skill in each directory from the current directory up to the workspace root, and ~/.agents/skills. It does not read agent-specific settings such as CLAUDE_CONFIG_DIR or OpenCode skills.paths, so it never inspects files the CLI did not write.
  • AspireSkillsCheck (aspire-skill-sources) now warns in the Environment category instead of AppHost. It reports both user-level copies and copies in the workspace that doctor runs in. The fix points to aspire agent init, and the details list each copy with the agents that read it, so users know which agents and scope to select.

Relates to #19726

Before and after

Example workspace:

repo/
  aspire.config.json          {"skillSources":{"default":{}}}
  .agents/skills/aspire/SKILL.md
  .agents/skills/aspire-deployment/SKILL.md
  .agents/skills/my-team-skill/SKILL.md
  .claude/skills/aspire/SKILL.md
  .github/skills/aspire-init/SKILL.md
~/.agents/skills/aspire/SKILL.md
~/.agents/skills/aspire-deployment/SKILL.md

aspire doctor

Before:

AppHost
  🚨 Local Aspire skill files may override plugin skills
       Delete these files, then run 'aspire agent init --skills aspire'.
       Files:
         .agents/skills/aspire/SKILL.md
         .claude/skills/aspire/SKILL.md
         ~/.agents/skills/aspire/SKILL.md

After:

Environment
  🚨 Found static copies of Aspire skills.
       Run 'aspire agent init' to configure skill sources and remove these copies.
       Details:
       .agents/skills/aspire (copilot, opencode)
       .claude/skills/aspire (claude)
       ~/.agents/skills/aspire (copilot, opencode)

With --format json, the copies are in details and there is no files field:

{
  "category": "environment",
  "name": "aspire-skill-sources",
  "status": "warning",
  "message": "Found static copies of Aspire skills.",
  "fix": "Run 'aspire agent init' to configure skill sources and remove these copies.",
  "details": ".agents/skills/aspire (copilot, opencode)\n.claude/skills/aspire (claude)\n~/.agents/skills/aspire (copilot, opencode)"
}

aspire agent init --help

The same option appears in aspire init --help, aspire new --help, and aspire mcp init --help.

  --remove-skill-copies    Remove copied Aspire skills when the Aspire skills plugin replaces them at the selected scope. Defaults to false

aspire agent init

Before, at either scope, init shows this warning before the skills prompt, then configures sources and leaves the copies in place:

🚨 Local Aspire skill files may override plugin skills
     .agents/skills/aspire/SKILL.md
     .claude/skills/aspire/SKILL.md
     ~/.agents/skills/aspire/SKILL.md

After, selecting only GitHub Copilot and choosing Project for Where should skills and tools be installed?, then answering y:

🚨 Found copied Aspire skills that the Aspire skills plugin now provides:
     .agents/skills/aspire
     .agents/skills/aspire-deployment
     .github/skills/aspire-init
Delete 3 copied skill folders? [y/N]: y
🤖 Configured sources in .github/copilot/settings.json (GitHub Copilot)
📁 Removed copied Aspire skills in .agents/skills/aspire, .agents/skills/aspire-deployment, .github/skills/aspire-init

Answering n, or pressing Enter, shows the same warning and prompt, then keeps all three folders:

Delete 3 copied skill folders? [y/N]: N
🤖 Configured sources in .github/copilot/settings.json (GitHub Copilot)
📁 Kept copied Aspire skills in .agents/skills/aspire, .agents/skills/aspire-deployment, .github/skills/aspire-init

.claude/skills/aspire is not listed because Claude Code was not selected, and the ~/.agents/skills copies are not listed because the scope is Project.

With --remove-skill-copies, there is no warning or prompt and the copies are deleted:

🤖 Configured sources in .github/copilot/settings.json (GitHub Copilot)
📁 Removed copied Aspire skills in .agents/skills/aspire, .agents/skills/aspire-deployment, .github/skills/aspire-init

With --remove-skill-copies=false, or in a non-interactive run without the option, there is no warning or prompt and the copies are kept:

🤖 Configured sources in .github/copilot/settings.json (GitHub Copilot)
📁 Kept copied Aspire skills in .agents/skills/aspire, .agents/skills/aspire-deployment, .github/skills/aspire-init

With --remove-skill-copies when aspire.config.json disables the default source, the plugin does not replace the copies, so init keeps them and adds a dim note:

📁 Kept copied Aspire skills in .agents/skills/aspire, .agents/skills/aspire-deployment, .github/skills/aspire-init
   Copies are only removed when the Aspire skills plugin is configured and enabled at the selected scope for every selected agent.

Choosing Global behaves the same way for ~/.agents/skills/aspire and ~/.agents/skills/aspire-deployment, with ~/.copilot/settings.json in the Configured sources line.

In every case my-team-skill is kept, and the default source is registered for each selected agent (for example .github/copilot/settings.json gains the aspire@aspire-skills plugin).

When aspire agent init deletes copies

Init deletes copies only when the user opts in, either by passing --remove-skill-copies or by answering y at the prompt. It considers copies in the same run, right after it configures skill sources, and only when all of these are true:

  • The aspire skill is selected. It is selected by default.
  • Every skill source registration succeeded, and for each selected agent the configuration init saved, or already found unchanged, at the selected scope registers the default microsoft/aspire-skills source: the aspire@aspire-skills plugin in enabledPlugins for Copilot and Claude Code, or its skill catalog for OpenCode. A registration that only exists at another scope (for example a user-level plugin during a Project run, or an inline OPENCODE_CONFIG_CONTENT catalog) does not count, so a committed project never loses its copies without a committed replacement. Other configured sources do not count either, because they do not replace the copied Aspire skills.
  • The merged settings for that scope still enable the plugin. A higher-precedence file, such as .github/copilot/settings.local.json, .claude/settings.local.json, or managed settings, that sets aspire@aspire-skills to false keeps the copies.
  • The copy is in the chosen scope. Project scope checks each directory from the current directory up to the workspace root, and Global scope checks ~/.agents/skills.
  • A selected agent reads the folder: .agents/skills (Copilot, OpenCode), .claude/skills (Claude Code), .github/skills (Copilot), .opencode/skill (OpenCode), or ~/.agents/skills (Copilot, OpenCode). A Copilot-only run keeps .claude/skills/aspire.
  • The folder is named like a skill older CLIs copied: aspire, aspire-deployment, aspire-init, aspire-monitoring, aspire-orchestration, aspire-project-v2-migration, or aspireify. Other skills are untouched.

Init checks the settings, not the agent's plugin cache. The agent downloads the plugin the next time it starts. A copy reached through a linked folder below the workspace or user profile is reported as an error and kept, since the link target may be shared. If a delete fails, init reports it, still deletes the other copies, and exits with an error. aspire doctor keeps listing any copies that remain.

Validation

  • dotnet test --project tests/Aspire.Cli.Tests/Aspire.Cli.Tests.csproj --no-launch-profile -- --filter-class "*.AgentInitCommandTests" --filter-class "*.AgentInitClientSelectionTests" --filter-class "*.AspireSkillsCheckTests" --filter-class "*.DoctorCommandTests" --filter-class "*.LocalAspireSkillsTests" --filter-class "*.InitCommandTests" --filter-class "*.NewCommandTests" --filter-class "*.McpInitCommandTests" --filter-class "*.SkillSourceTests" --filter-class "*.OpenCodeAgentClientTests" --filter-not-trait "quarantined=true" --filter-not-trait "outerloop=true": passed (666 total, 665 succeeded, 1 skipped, 0 failed). The skipped test needs symbolic link privileges. New tests cover --remove-skill-copies (true, false, and omitted in interactive and non-interactive runs), the option on aspire init and aspire new, the dim note when the plugin does not replace the copies, registrations that only exist at another scope, unchanged registrations at the selected scope, and a higher-precedence false override.
  • dotnet build tests/Aspire.Cli.EndToEnd.Tests/Aspire.Cli.EndToEnd.Tests.csproj: succeeded. The updated AgentCommandTests and DoctorCommandTests E2E scenarios were not run locally because they need Docker.
  • Manual testing with a locally built CLI in a real terminal: created copies in a project and in the user profile, then ran aspire agent init at Project scope answering y and n. The interactive output above is from those runs. Earlier manual runs covered Copilot, Claude Code, and OpenCode, registrations at only the other scope, and aspire doctor listing the copies that remain.

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
    • No
  • Did you add public API?
    • Yes
      • If yes, did you have an API Review for it?
        • Yes
        • No
      • Did you add <remarks /> and <code /> elements on your triple slash comments?
        • Yes
        • No
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
      • If yes, have you done a threat model and had a security review?
        • Yes
        • No
    • No

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 22080

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 22080"

@github-actions

This comment has been minimized.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The migration can delete external checkout contents through symlinked ancestors and remove profile skill copies even when workspace settings disable their replacement.

3 open issues
2 files not reviewed
  • src/Aspire.Cli/Resources/DoctorCommandStrings.Designer.cs: Generated file
  • src/Aspire.Cli/Resources/MigrationStrings.Designer.cs: Generated file
What changed in this PR

This PR extends Aspire’s migration framework to replace copied agent skills with official plugin or catalog registrations, completing the move away from embedded skills and manual cleanup.

Changes:

  • Adds skill discovery, consumer tracking, registration, and copied-directory removal through aspire update --migrate.
  • Routes doctor warnings through pending migrations and supports migration execution without an AppHost.
  • Updates migration failure reporting, localized resources, documentation, and tests.
File Description
tests/​Aspire.Cli.Tests/​Utils/​CliTestHelper.cs Registers the new migration in test services.
tests/​Aspire.Cli.Tests/​Utils/​AspireSkillsCheckTests.cs Removes tests for the retired doctor check.
tests/​Aspire.Cli.Tests/​Snapshots/​DoctorCommandTests.DoctorCommand_Json_IncludesStaticSkillsGuidance.verified.json Removes the manual-cleanup JSON snapshot.
tests/​Aspire.Cli.Tests/​Snapshots/​DoctorCommandTests.DoctorCommand_HumanReadable_IncludesStaticSkillsGuidance.verified.txt Removes the manual-cleanup terminal snapshot.
tests/​Aspire.Cli.Tests/​Migrations/​AgentSkillsMigrationTests.cs Tests migration, preservation, and failure handling.
tests/​Aspire.Cli.Tests/​Commands/​UpdateCommandMigrationTests.cs Tests no-AppHost migration success and failure.
tests/​Aspire.Cli.Tests/​Commands/​DoctorCommandTests.cs Removes tests tied to the retired check.
tests/​Aspire.Cli.Tests/​Agents/​LocalAspireSkillsTests.cs Adapts to discovery’s expanded return value.
tests/​Aspire.Cli.EndToEnd.Tests/​DoctorCommandTests.cs Checks migration guidance and directory paths.
src/​Aspire.Cli/​Utils/​EnvironmentChecker/​PendingMigrationsCheck.cs Includes affected paths in doctor results.
src/​Aspire.Cli/​Utils/​EnvironmentChecker/​AspireSkillsCheck.cs Removes the standalone skills warning check.
src/​Aspire.Cli/​Resources/​xlf/​MigrationStrings.zh-Hant.xlf Adds migration strings awaiting translation.
src/​Aspire.Cli/​Resources/​xlf/​MigrationStrings.zh-Hans.xlf Adds migration strings awaiting translation.
src/​Aspire.Cli/​Resources/​xlf/​MigrationStrings.tr.xlf Adds migration strings awaiting translation.
src/​Aspire.Cli/​Resources/​xlf/​MigrationStrings.ru.xlf Adds migration strings awaiting translation.
src/​Aspire.Cli/​Resources/​xlf/​MigrationStrings.pt-BR.xlf Adds migration strings awaiting translation.
src/​Aspire.Cli/​Resources/​xlf/​MigrationStrings.pl.xlf Adds migration strings awaiting translation.
src/​Aspire.Cli/​Resources/​xlf/​MigrationStrings.ko.xlf Adds migration strings awaiting translation.
src/​Aspire.Cli/​Resources/​xlf/​MigrationStrings.ja.xlf Adds migration strings awaiting translation.
src/​Aspire.Cli/​Resources/​xlf/​MigrationStrings.it.xlf Adds migration strings awaiting translation.
src/​Aspire.Cli/​Resources/​xlf/​MigrationStrings.fr.xlf Adds migration strings awaiting translation.
src/​Aspire.Cli/​Resources/​xlf/​MigrationStrings.es.xlf Adds migration strings awaiting translation.
src/​Aspire.Cli/​Resources/​xlf/​MigrationStrings.de.xlf Adds migration strings awaiting translation.
src/​Aspire.Cli/​Resources/​xlf/​MigrationStrings.cs.xlf Adds migration strings awaiting translation.
src/​Aspire.Cli/​Resources/​xlf/​DoctorCommandStrings.zh-Hant.xlf Removes obsolete skills-check strings.
src/​Aspire.Cli/​Resources/​xlf/​DoctorCommandStrings.zh-Hans.xlf Removes obsolete skills-check strings.
src/​Aspire.Cli/​Resources/​xlf/​DoctorCommandStrings.tr.xlf Removes obsolete skills-check strings.
src/​Aspire.Cli/​Resources/​xlf/​DoctorCommandStrings.ru.xlf Removes obsolete skills-check strings.
src/​Aspire.Cli/​Resources/​xlf/​DoctorCommandStrings.pt-BR.xlf Removes obsolete skills-check strings.
src/​Aspire.Cli/​Resources/​xlf/​DoctorCommandStrings.pl.xlf Removes obsolete skills-check strings.
src/​Aspire.Cli/​Resources/​xlf/​DoctorCommandStrings.ko.xlf Removes obsolete skills-check strings.
src/​Aspire.Cli/​Resources/​xlf/​DoctorCommandStrings.ja.xlf Removes obsolete skills-check strings.
src/​Aspire.Cli/​Resources/​xlf/​DoctorCommandStrings.it.xlf Removes obsolete skills-check strings.
src/​Aspire.Cli/​Resources/​xlf/​DoctorCommandStrings.fr.xlf Removes obsolete skills-check strings.
src/​Aspire.Cli/​Resources/​xlf/​DoctorCommandStrings.es.xlf Removes obsolete skills-check strings.
src/​Aspire.Cli/​Resources/​xlf/​DoctorCommandStrings.de.xlf Removes obsolete skills-check strings.
src/​Aspire.Cli/​Resources/​xlf/​DoctorCommandStrings.cs.xlf Removes obsolete skills-check strings.
src/​Aspire.Cli/​Resources/​MigrationStrings.resx Defines migration messages and errors.
src/​Aspire.Cli/​Resources/​MigrationStrings.Designer.cs Exposes the new migration resources.
src/​Aspire.Cli/​Resources/​DoctorCommandStrings.resx Removes manual-cleanup resources.
src/​Aspire.Cli/​Resources/​DoctorCommandStrings.Designer.cs Removes obsolete resource accessors.
src/​Aspire.Cli/​Program.cs Replaces check registration with migration registration.
src/​Aspire.Cli/​Migrations/​MigrationDescriptor.cs Adds affected files and directories.
src/​Aspire.Cli/​Migrations/​IMigration.cs Documents exception-based failure reporting.
src/​Aspire.Cli/​Migrations/​AgentSkillsMigration.cs Registers replacements before deleting copied skills.
src/​Aspire.Cli/​Commands/​UpdateCommand.cs Supports no-AppHost migrations and reports failures.
src/​Aspire.Cli/​Commands/​InitCommand.cs Reuses official-source validation.
src/​Aspire.Cli/​Agents/​AspireSkills/​LocalAspireSkills.cs Tracks consuming agents and configuration scopes.
src/​Aspire.Cli/​Agents/​AspireSkills/​AspireSkillsRemoteConfiguration.cs Centralizes official-source identification.
docs/​specs/​cli-config-sources.md Documents migration behavior and failure conditions.

Review effort: Balanced

@github-actions

This comment has been minimized.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The migration can delete copied skills while replacement plugins remain disabled in nested projects, and the destructive no-AppHost path lacks CLI end-to-end coverage.

4 open issues
2 files not reviewed
  • src/Aspire.Cli/Resources/DoctorCommandStrings.Designer.cs: Generated file
  • src/Aspire.Cli/Resources/MigrationStrings.Designer.cs: Generated file

Review effort: Balanced

@github-actions

This comment has been minimized.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The migration can delete shared files through ancestor symlinks and remove copied skills despite conflicting subproject settings, creating critical risks of data loss and broken skill access.

6 open issues
3 files not reviewed
  • src/Aspire.Cli/Resources/AgentCommandStrings.Designer.cs: Generated file
  • src/Aspire.Cli/Resources/DoctorCommandStrings.Designer.cs: Generated file
  • src/Aspire.Cli/Resources/MigrationStrings.Designer.cs: Generated file

Review effort: Balanced

@github-actions

This comment has been minimized.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The migration can delete shared skills through symlinked ancestors and remove local copies even when nested settings disable the replacement, risking data loss and leaving agents without working skills.

6 open issues
3 files not reviewed
  • src/Aspire.Cli/Resources/AgentCommandStrings.Designer.cs: Generated file
  • src/Aspire.Cli/Resources/DoctorCommandStrings.Designer.cs: Generated file
  • src/Aspire.Cli/Resources/MigrationStrings.Designer.cs: Generated file

Review effort: Balanced

@github-actions

This comment has been minimized.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The migration can delete external skills through symlinked ancestors or remove project skills without usable replacement registrations, and its destructive CLI path lacks end-to-end coverage.

6 open issues
3 files not reviewed
  • src/Aspire.Cli/Resources/AgentCommandStrings.Designer.cs: Generated file
  • src/Aspire.Cli/Resources/DoctorCommandStrings.Designer.cs: Generated file
  • src/Aspire.Cli/Resources/MigrationStrings.Designer.cs: Generated file

Review effort: Balanced

@github-actions

This comment has been minimized.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The migration can permanently delete nested-project skills while their replacement remains disabled because it checks only Git-root settings, and the destructive CLI path lacks end-to-end coverage.

6 open issues
3 files not reviewed
  • src/Aspire.Cli/Resources/AgentCommandStrings.Designer.cs: Generated file
  • src/Aspire.Cli/Resources/DoctorCommandStrings.Designer.cs: Generated file
  • src/Aspire.Cli/Resources/MigrationStrings.Designer.cs: Generated file

Review effort: Balanced

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The chained init/new commands can delete skill copies without exposing the opt-out flag, and an interactive test leaves the new deletion confirmation unanswered, causing a timeout.

2 open issues
1 resolved since last review
2 files not reviewed
  • src/Aspire.Cli/Resources/AgentCommandStrings.Designer.cs: Generated file
  • src/Aspire.Cli/Resources/DoctorCommandStrings.Designer.cs: Generated file

Review effort: Balanced

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

Copied Aspire skills are now kept unless --remove-skill-copies is passed or the user confirms the interactive prompt (default No). Non-interactive runs keep copies. The option is available on agent init, mcp init, init and new.

Co-authored-by: Copilot App <[email protected]>
@github-actions

This comment has been minimized.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Cleanup can delete skill copies after replacement is disabled while confirmation is pending, and the deletion-failure path lacks regression coverage for partial-success behavior.

2 open issues
2 resolved since last review
2 files not reviewed
  • src/Aspire.Cli/Resources/AgentCommandStrings.Designer.cs: Generated file
  • src/Aspire.Cli/Resources/DoctorCommandStrings.Designer.cs: Generated file

Review effort: Balanced

Cover a cleanup where one copy cannot be deleted: init reports the
failure, returns InvalidCommand, still removes the other copy, and the
failed copy stays discoverable.

Co-authored-by: Copilot App <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

Tests selector

3 / 101 PR test projects · 4 PR jobs, from 53 changed files.

Selected PR test projects (3 / 101)

Aspire.Cli.EndToEnd.Tests, Aspire.Cli.Tests, Infrastructure.Tests

Selected PR jobs (4)

cli-starter-validation, extension-e2e, polyglot, typescript-api-compat


How these were chosen — grouped by what changed

📦 affected project Aspire.Cli
→ 1 test: Aspire.Cli.EndToEnd.Tests

🔧 src/Aspire.Cli/Resources/AgentCommandStrings.resx (changed source)
→ 1 directly: Infrastructure.Tests

🔧 src/Aspire.Cli/Resources/DoctorCommandStrings.Designer.cs (changed source)
→ 1 via the project graph: Aspire.Cli.EndToEnd.Tests

🔧 src/Aspire.Cli/Resources/DoctorCommandStrings.resx (changed source)
→ 1 directly: Infrastructure.Tests

🧪 tests/Aspire.Cli.EndToEnd.Tests/AgentCommandTests.cs (changed test)
→ 1 directly: Aspire.Cli.EndToEnd.Tests

🧪 tests/Aspire.Cli.EndToEnd.Tests/DoctorCommandTests.cs (changed test)
→ 1 directly: Aspire.Cli.EndToEnd.Tests

🧪 tests/Aspire.Cli.Tests/Agents/LocalAspireSkillsTests.cs (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Aspire.Cli.Tests/Commands/AgentInitClientSelectionTests.cs (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Aspire.Cli.Tests/Commands/AgentInitCommandTests.cs (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Aspire.Cli.Tests/Commands/InitCommandTests.cs (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Aspire.Cli.Tests/Commands/NewCommandTests.cs (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Aspire.Cli.Tests/Snapshots/DoctorCommandTests.DoctorCommand_HumanReadable_IncludesStaticSkillsGuidance.verified.txt (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Aspire.Cli.Tests/Snapshots/DoctorCommandTests.DoctorCommand_Json_IncludesStaticSkillsGuidance.verified.json (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Aspire.Cli.Tests/Snapshots/InitCommandTests.InitCommand_Help_ShowsFileBasedOption.verified.txt (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Aspire.Cli.Tests/Utils/AspireSkillsCheckTests.cs (changed test)
→ 1 directly: Aspire.Cli.Tests

Job reasons

Job Triggered by
cli-starter-validation affected project Aspire.Cli
extension-e2e • src/Aspire.Cli/Agents/AspireSkills/LocalAspireSkills.cs, src/Aspire.Cli/Agents/ClaudeCode/ClaudeCodeAgentClient.cs, src/Aspire.Cli/Agents/Copilot/CopilotAgentClient.cs, src/Aspire.Cli/Agents/IAgentClient.cs, src/Aspire.Cli/Agents/OpenCode/OpenCodeAgentClient.cs, src/Aspire.Cli/Commands/AgentInitCommand.cs, src/Aspire.Cli/Commands/DoctorCommand.cs, src/Aspire.Cli/Commands/InitCommand.cs, src/Aspire.Cli/Commands/McpInitCommand.cs, src/Aspire.Cli/Commands/NewCommand.cs, src/Aspire.Cli/Resources/AgentCommandStrings.Designer.cs, src/Aspire.Cli/Resources/AgentCommandStrings.resx, src/Aspire.Cli/Resources/DoctorCommandStrings.Designer.cs, src/Aspire.Cli/Resources/DoctorCommandStrings.resx, src/Aspire.Cli/Resources/xlf/AgentCommandStrings.cs.xlf, src/Aspire.Cli/Resources/xlf/AgentCommandStrings.de.xlf, src/Aspire.Cli/Resources/xlf/AgentCommandStrings.es.xlf, src/Aspire.Cli/Resources/xlf/AgentCommandStrings.fr.xlf, src/Aspire.Cli/Resources/xlf/AgentCommandStrings.it.xlf, src/Aspire.Cli/Resources/xlf/AgentCommandStrings.ja.xlf, src/Aspire.Cli/Resources/xlf/AgentCommandStrings.ko.xlf, src/Aspire.Cli/Resources/xlf/AgentCommandStrings.pl.xlf, src/Aspire.Cli/Resources/xlf/AgentCommandStrings.pt-BR.xlf, src/Aspire.Cli/Resources/xlf/AgentCommandStrings.ru.xlf, src/Aspire.Cli/Resources/xlf/AgentCommandStrings.tr.xlf, src/Aspire.Cli/Resources/xlf/AgentCommandStrings.zh-Hans.xlf, src/Aspire.Cli/Resources/xlf/AgentCommandStrings.zh-Hant.xlf, src/Aspire.Cli/Resources/xlf/DoctorCommandStrings.cs.xlf, src/Aspire.Cli/Resources/xlf/DoctorCommandStrings.de.xlf, src/Aspire.Cli/Resources/xlf/DoctorCommandStrings.es.xlf, src/Aspire.Cli/Resources/xlf/DoctorCommandStrings.fr.xlf, src/Aspire.Cli/Resources/xlf/DoctorCommandStrings.it.xlf, src/Aspire.Cli/Resources/xlf/DoctorCommandStrings.ja.xlf, src/Aspire.Cli/Resources/xlf/DoctorCommandStrings.ko.xlf, src/Aspire.Cli/Resources/xlf/DoctorCommandStrings.pl.xlf, src/Aspire.Cli/Resources/xlf/DoctorCommandStrings.pt-BR.xlf, src/Aspire.Cli/Resources/xlf/DoctorCommandStrings.ru.xlf, src/Aspire.Cli/Resources/xlf/DoctorCommandStrings.tr.xlf, src/Aspire.Cli/Resources/xlf/DoctorCommandStrings.zh-Hans.xlf, src/Aspire.Cli/Resources/xlf/DoctorCommandStrings.zh-Hant.xlf, src/Aspire.Cli/Utils/EnvironmentChecker/AspireSkillsCheck.cs, src/Aspire.Cli/Utils/EnvironmentChecker/EnvironmentCheckResult.cs
• affected project Aspire.Cli
polyglot affected project Aspire.Cli
typescript-api-compat affected project Aspire.Cli

Selection computed for commit ba2145f.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The review reports no active issues for the opt-in legacy skill cleanup change.

No open issues 🎉

2 resolved since last review
2 files not reviewed
  • src/Aspire.Cli/Resources/AgentCommandStrings.Designer.cs: Generated file
  • src/Aspire.Cli/Resources/DoctorCommandStrings.Designer.cs: Generated file

Review effort: Balanced

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change looks good, thanks Ella. I also pulled down the change and did some smoke tests from an old project using 13.6.5 skills and this did the right thing and removed the old copies, and it was also fine to run during rerun. I also ensured that the plugin was actually loaded once installed.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Pull request created: #2146

Generated by PR Documentation Check · copilot · auto · 27 AIC · ⌖ 1.18 AIC · ⊞ 7.4K

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

📝 Documentation has been drafted in microsoft/aspire.dev#2146 targeting release/17.0.

Documents the new --remove-skill-copies option and stale-copy removal in aspire agent init (aspire-agent-init.mdx). Signals: cli_option_added (AgentInitCommand.cs adds --remove-skill-copies), cli_command_file_changed (AgentInitCommand.cs, InitCommand.cs, NewCommand.cs), cli_resource_strings_changed (AgentCommandStrings.resx), pr_body_has_cli_flag_mention.

Note

This draft PR needs human review before merging.

@ellahathaway

Copy link
Copy Markdown
Contributor Author

/backport to release/17.0

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/17.0 (link to workflow run)

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Ella Hathaway (@ellahathaway) backporting to release/17.0 failed, the patch most likely resulted in conflicts. Please backport manually!

git am output
$ git am --3way --empty=keep --ignore-whitespace --keep-non-patch changes.patch

Applying: Migrate copied Aspire skills to agent plugins with aspire update --migrate
Using index info to reconstruct a base tree...
M	docs/specs/cli-config-sources.md
M	src/Aspire.Cli/Commands/AgentInitCommand.cs
M	src/Aspire.Cli/Resources/AgentCommandStrings.Designer.cs
M	src/Aspire.Cli/Resources/AgentCommandStrings.resx
M	src/Aspire.Cli/Resources/xlf/AgentCommandStrings.cs.xlf
M	src/Aspire.Cli/Resources/xlf/AgentCommandStrings.de.xlf
M	src/Aspire.Cli/Resources/xlf/AgentCommandStrings.es.xlf
M	src/Aspire.Cli/Resources/xlf/AgentCommandStrings.fr.xlf
M	src/Aspire.Cli/Resources/xlf/AgentCommandStrings.it.xlf
M	src/Aspire.Cli/Resources/xlf/AgentCommandStrings.ja.xlf
M	src/Aspire.Cli/Resources/xlf/AgentCommandStrings.ko.xlf
M	src/Aspire.Cli/Resources/xlf/AgentCommandStrings.pl.xlf
M	src/Aspire.Cli/Resources/xlf/AgentCommandStrings.pt-BR.xlf
M	src/Aspire.Cli/Resources/xlf/AgentCommandStrings.ru.xlf
M	src/Aspire.Cli/Resources/xlf/AgentCommandStrings.tr.xlf
M	src/Aspire.Cli/Resources/xlf/AgentCommandStrings.zh-Hans.xlf
M	src/Aspire.Cli/Resources/xlf/AgentCommandStrings.zh-Hant.xlf
M	tests/Aspire.Cli.EndToEnd.Tests/AgentCommandTests.cs
M	tests/Aspire.Cli.Tests/Commands/AgentInitClientSelectionTests.cs
M	tests/Aspire.Cli.Tests/Commands/AgentInitCommandTests.cs
M	tests/Aspire.Cli.Tests/Utils/CliTestHelper.cs
Falling back to patching base and 3-way merge...
Auto-merging docs/specs/cli-config-sources.md
Auto-merging src/Aspire.Cli/Commands/AgentInitCommand.cs
CONFLICT (content): Merge conflict in src/Aspire.Cli/Commands/AgentInitCommand.cs
Auto-merging src/Aspire.Cli/Resources/AgentCommandStrings.Designer.cs
Auto-merging src/Aspire.Cli/Resources/AgentCommandStrings.resx
Auto-merging src/Aspire.Cli/Resources/xlf/AgentCommandStrings.cs.xlf
Auto-merging src/Aspire.Cli/Resources/xlf/AgentCommandStrings.de.xlf
Auto-merging src/Aspire.Cli/Resources/xlf/AgentCommandStrings.es.xlf
Auto-merging src/Aspire.Cli/Resources/xlf/AgentCommandStrings.fr.xlf
Auto-merging src/Aspire.Cli/Resources/xlf/AgentCommandStrings.it.xlf
Auto-merging src/Aspire.Cli/Resources/xlf/AgentCommandStrings.ja.xlf
Auto-merging src/Aspire.Cli/Resources/xlf/AgentCommandStrings.ko.xlf
Auto-merging src/Aspire.Cli/Resources/xlf/AgentCommandStrings.pl.xlf
Auto-merging src/Aspire.Cli/Resources/xlf/AgentCommandStrings.pt-BR.xlf
Auto-merging src/Aspire.Cli/Resources/xlf/AgentCommandStrings.ru.xlf
Auto-merging src/Aspire.Cli/Resources/xlf/AgentCommandStrings.tr.xlf
Auto-merging src/Aspire.Cli/Resources/xlf/AgentCommandStrings.zh-Hans.xlf
Auto-merging src/Aspire.Cli/Resources/xlf/AgentCommandStrings.zh-Hant.xlf
Auto-merging tests/Aspire.Cli.EndToEnd.Tests/AgentCommandTests.cs
Auto-merging tests/Aspire.Cli.Tests/Commands/AgentInitClientSelectionTests.cs
Auto-merging tests/Aspire.Cli.Tests/Commands/AgentInitCommandTests.cs
Auto-merging tests/Aspire.Cli.Tests/Utils/CliTestHelper.cs
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0001 Migrate copied Aspire skills to agent plugins with aspire update --migrate
Error: The process '/usr/bin/git' failed with exit code 128

Link to workflow output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants