Skip to content

[release/17.0] Warn about all agent skill sources - #22271

Merged
Jose Perez Rodriguez (joperezr) merged 3 commits into
release/17.0from
ellahathaway-config-source-warnings
Nov 16, 2026
Merged

Jose Perez Rodriguez (joperezr) merged 3 commits into
release/17.0from
ellahathaway-config-source-warnings

Conversation

@ellahathaway

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

Copy link
Copy Markdown
Contributor

Description

aspire agent init previously omitted source details and the trust warning when only the default Aspire skill source was configured. It also omitted details for overrides named default. Users should see the sources that provide their agent assets before selecting or registering Aspire skills.

Display every enabled, applicable skill source, including microsoft/aspire-skills, with the existing aligned source details and shared trust warning. Keep the existing explanatory string unchanged.

User-facing usage

aspire agent init --agents copilot --scope project --skills aspire --mcp=false

Default-only source details and warning, based on the reviewed output snapshots:

One or more skill sources are configured. A skill source lets an organization share skills to customize your development experience.

          Name:  default
    Git source:  https://github.com/microsoft/aspire-skills
   Marketplace:  aspire-skills
       Plugins:  aspire@aspire-skills

Only use sources you trust. Content from these sources can run code on your machine.

@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 -- 22271

Or

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

@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.

🟢 Approval recommended

No active review issues require further changes.

No open issues 🎉

1 file not reviewed
  • src/Aspire.Cli/Resources/AgentCommandStrings.Designer.cs: Generated file
What changed in this PR

This PR makes aspire agent init show every applicable enabled skill source, including the built-in default and overrides named default, before users select or register Aspire agent assets.

Changes:

  • Removes the default-source exclusion while retaining existing source formatting and the shared trust warning.
  • Updates the introduction text, localization resources, and configuration-source specification.
  • Expands regression tests and snapshots for default-only sources, mixed clients, and notice ordering.
File Description
tests/​Aspire.Cli.Tests/​Snapshots/​AgentInitCommandTests.AgentInit_WarnsAboutSelectedClientSourcesBeforeRegistration_agents=opencode.verified.txt Includes overridden default catalog details.
tests/​Aspire.Cli.Tests/​Snapshots/​AgentInitCommandTests.AgentInit_WarnsAboutSelectedClientSourcesBeforeRegistration_agents=opencode-default.verified.txt Adds default-only OpenCode output.
tests/​Aspire.Cli.Tests/​Snapshots/​AgentInitCommandTests.AgentInit_WarnsAboutSelectedClientSourcesBeforeRegistration_agents=copilot.verified.txt Includes default plugin-source details.
tests/​Aspire.Cli.Tests/​Snapshots/​AgentInitCommandTests.AgentInit_WarnsAboutSelectedClientSourcesBeforeRegistration_agents=copilot,claude,opencode.verified.txt Includes default details for mixed clients.
tests/​Aspire.Cli.Tests/​Snapshots/​AgentInitCommandTests.AgentInit_WarnsAboutSelectedClientSourcesBeforeRegistration_agents=copilot,claude,opencode-default.verified.txt Adds default-only mixed-client output.
tests/​Aspire.Cli.Tests/​Snapshots/​AgentInitCommandTests.AgentInit_WarnsAboutSelectedClientSourcesBeforeRegistration_agents=copilot-default.verified.txt Adds default-only Copilot output.
tests/​Aspire.Cli.Tests/​Snapshots/​AgentInitCommandTests.AgentInit_WarnsAboutSelectedClientSourcesBeforeRegistration_agents=claude.verified.txt Includes default plugin-source details.
tests/​Aspire.Cli.Tests/​Snapshots/​AgentInitCommandTests.AgentInit_WarnsAboutSelectedClientSourcesBeforeRegistration_agents=claude-default.verified.txt Adds default-only Claude output.
tests/​Aspire.Cli.Tests/​Commands/​AgentInitCommandTests.cs Tests default sources, notice ordering, and suppression.
tests/​Aspire.Cli.Tests/​Commands/​AgentInitClientSelectionTests.cs Updates expected warnings during client selection.
src/​Aspire.Cli/​Resources/​xlf/​AgentCommandStrings.zh-Hant.xlf Synchronizes introduction and translator note.
src/​Aspire.Cli/​Resources/​xlf/​AgentCommandStrings.zh-Hans.xlf Synchronizes introduction and translator note.
src/​Aspire.Cli/​Resources/​xlf/​AgentCommandStrings.tr.xlf Synchronizes introduction and translator note.
src/​Aspire.Cli/​Resources/​xlf/​AgentCommandStrings.ru.xlf Synchronizes introduction and translator note.
src/​Aspire.Cli/​Resources/​xlf/​AgentCommandStrings.pt-BR.xlf Synchronizes introduction and translator note.
src/​Aspire.Cli/​Resources/​xlf/​AgentCommandStrings.pl.xlf Synchronizes introduction and translator note.
src/​Aspire.Cli/​Resources/​xlf/​AgentCommandStrings.ko.xlf Synchronizes introduction and translator note.
src/​Aspire.Cli/​Resources/​xlf/​AgentCommandStrings.ja.xlf Synchronizes introduction and translator note.
src/​Aspire.Cli/​Resources/​xlf/​AgentCommandStrings.it.xlf Synchronizes introduction and translator note.
src/​Aspire.Cli/​Resources/​xlf/​AgentCommandStrings.fr.xlf Synchronizes introduction and translator note.
src/​Aspire.Cli/​Resources/​xlf/​AgentCommandStrings.es.xlf Synchronizes introduction and translator note.
src/​Aspire.Cli/​Resources/​xlf/​AgentCommandStrings.de.xlf Synchronizes introduction and translator note.
src/​Aspire.Cli/​Resources/​xlf/​AgentCommandStrings.cs.xlf Synchronizes introduction and translator note.
src/​Aspire.Cli/​Resources/​AgentCommandStrings.resx Revises introduction and adds translation guidance.
src/​Aspire.Cli/​Resources/​AgentCommandStrings.Designer.cs Updates the resource property's documentation.
src/​Aspire.Cli/​Commands/​AgentInitCommand.cs Removes the exclusion for sources named default.
docs/​specs/​cli-config-sources.md Documents source visibility, notice timing, and exclusions.

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 specification’s quoted skill-source explanation does not match the CLI’s retained output and needs correction.

1 open issue

Review effort: Balanced

Comment thread docs/specs/cli-config-sources.md Resolved
@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.

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

No active review issues block the change to display all enabled, applicable skill sources before selection or registration.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@github-actions

Copy link
Copy Markdown
Contributor

Tests selector

2 / 101 PR test projects · 4 PR jobs, from 11 changed files.

Selected PR test projects (2 / 101)

Aspire.Cli.EndToEnd.Tests, Aspire.Cli.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

🧪 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/Snapshots/AgentInitCommandTests.AgentInit_WarnsAboutSelectedClientSourcesBeforeRegistration_agents=claude-default.verified.txt (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Aspire.Cli.Tests/Snapshots/AgentInitCommandTests.AgentInit_WarnsAboutSelectedClientSourcesBeforeRegistration_agents=claude.verified.txt (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Aspire.Cli.Tests/Snapshots/AgentInitCommandTests.AgentInit_WarnsAboutSelectedClientSourcesBeforeRegistration_agents=copilot,claude,opencode-default.verified.txt (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Aspire.Cli.Tests/Snapshots/AgentInitCommandTests.AgentInit_WarnsAboutSelectedClientSourcesBeforeRegistration_agents=copilot,claude,opencode.verified.txt (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Aspire.Cli.Tests/Snapshots/AgentInitCommandTests.AgentInit_WarnsAboutSelectedClientSourcesBeforeRegistration_agents=copilot-default.verified.txt (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Aspire.Cli.Tests/Snapshots/AgentInitCommandTests.AgentInit_WarnsAboutSelectedClientSourcesBeforeRegistration_agents=copilot.verified.txt (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Aspire.Cli.Tests/Snapshots/AgentInitCommandTests.AgentInit_WarnsAboutSelectedClientSourcesBeforeRegistration_agents=opencode-default.verified.txt (changed test)
→ 1 directly: Aspire.Cli.Tests

🧪 tests/Aspire.Cli.Tests/Snapshots/AgentInitCommandTests.AgentInit_WarnsAboutSelectedClientSourcesBeforeRegistration_agents=opencode.verified.txt (changed test)
→ 1 directly: Aspire.Cli.Tests

Job reasons

Job Triggered by
cli-starter-validation affected project Aspire.Cli
extension-e2e • src/Aspire.Cli/Commands/AgentInitCommand.cs
• affected project Aspire.Cli
polyglot affected project Aspire.Cli
typescript-api-compat affected project Aspire.Cli

Selection computed for commit 4f72aa3.

@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.

@ellahathaway Ella Hathaway (ellahathaway) changed the title Warn about all agent skill sources [release/17.0] Warn about all agent skill sources Nov 16, 2026
@joperezr
Jose Perez Rodriguez (joperezr) merged commit 265d3b3 into release/17.0 Nov 16, 2026
641 of 647 checks passed
@microsoft-github-policy-service microsoft-github-policy-service Bot added this to the 17.0 milestone Nov 16, 2026
@aspire-repo-bot

Copy link
Copy Markdown
Contributor

✅ No documentation update needed.

excluded → base_branch_is_release, title_release_prefix. Backport PR ([release/17.0] title, base release/17.0); docs belong to the original forward PR. Triggered signals: cli_command_file_changed (AgentInitCommand.cs), pr_body_has_cli_flag_mention, pr_body_has_user_facing_section.

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