Skip to content

[docs] Document --remove-skill-copies for aspire agent init - #2146

Merged
Ella Hathaway (ellahathaway) merged 2 commits into
release/17.0from
docs/pr-22080-43505490618-1-d3a8714ce83c8a15
Nov 17, 2026
Merged

Ella Hathaway (ellahathaway) merged 2 commits into
release/17.0from
docs/pr-22080-43505490618-1-d3a8714ce83c8a15

Conversation

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Documents changes from microsoft/aspire#22080

Author: @joperezr's review requested via notify; source PR author per pr.json.

Target branch: Targeting release/17.0 — the latest release branch on microsoft/aspire.dev — because release/17.1 (from the source PR milestone 17.1) does not exist there (target_resolution: latest_release_fallback).

Why: aspire agent init gained a --remove-skill-copies option and a prompt that deletes stale Aspire skill copies written by older CLIs. The CLI reference didn't cover it. Triggered signals: cli_option_added, cli_command_file_changed, cli_resource_strings_changed, pr_body_has_cli_flag_mention.

Changes (updated page):

  • src/frontend/src/content/docs/reference/cli/commands/aspire-agent-init.mdx: new "Remove copied Aspire skills" section, --remove-skill-copies option entry, an example, and updated description text. Also notes aspire doctor now warns about copies in the Environment category.

Generated by PR Documentation Check for #22080 · copilot · auto · 27 AIC · ⌖ 1.18 AIC · ⊞ 7.4K · ◷

@aspire-repo-bot aspire-repo-bot Bot added the docs-from-code Copilot initiated issue from dotnet/aspire repo label Nov 13, 2026
@aspire-repo-bot

Copy link
Copy Markdown
Contributor Author

Frontend HTML artifact ready

The latest frontend build uploaded the frontend-dist artifact for PR #2146. Use the VS Code button below to open this PR with GitHub Artifacts Explorer and browse the built HTML locally.

VS Code: Open PR #2146 artifacts

This comment updates automatically when a new frontend build artifact is uploaded.

David Pine (IEvangelist) pushed a commit that referenced this pull request Nov 17, 2026
## Summary

<!-- Describe what this pull request changes and why. -->

Documents the `aspire doctor` warning for static Aspire skill copies
from microsoft/aspire#21783, updated for the cleanup behavior in
microsoft/aspire#22080.

- Show the warning in the Environment category and describe opt-in
removal through `aspire agent init`.
- Update the table and JSON examples to use the new messages and
`details` field.

The CLI change is being backported to `release/17.0`. Related agent
initialization documentation: #2146.

## Third-party links and affiliations

<!--
List any third-party links added or changed by this pull request and
disclose any
material affiliation with the linked organizations, such as employment,
sponsorship, or ownership. Write "None" if this pull request doesn't add
or
change third-party links.
-->

None.

## Validation

<!-- List the checks you ran or explain why validation isn't needed. -->

- `git diff --check HEAD^ HEAD`: passed.
- Compared the table and JSON examples with the upstream CLI test
snapshots: matched.
- Local site preview not run: Bun and frontend dependencies are not
installed.

> Generated by [PR Documentation
Check](https://github.com/microsoft/aspire/actions/runs/42115248845) for
#21783 · copilot · auto · 26.8 AIC · ⌖ 1.25 AIC · ⊞ 7.4K ·
[◷](https://github.com/search?q=repo%3Amicrosoft%2Faspire.dev+%22gh-aw-workflow-id%3A+pr-docs-check%22&type=pullrequests)

<!-- gh-aw-agentic-workflow: PR Documentation Check, engine: copilot,
model: auto, id: 42115248845, workflow_id: pr-docs-check, run:
https://github.com/microsoft/aspire/actions/runs/42115248845 -->

<!-- gh-aw-workflow-id: pr-docs-check -->
<!-- gh-aw-workflow-call-id: microsoft/aspire/pr-docs-check -->

---------

Co-authored-by: aspire-repo-bot[bot] <268009190+aspire-repo-bot[bot]@users.noreply.github.com>
Co-authored-by: Ella Hathaway <[email protected]>
Co-authored-by: Copilot App <[email protected]>

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 documentation quotes incorrect CLI output and omits a warning that deletion removes entire skill folders, including local edits and added files, even when confirmation is bypassed.

2 open issues
What changed in this PR

Updates the Aspire CLI reference to document stale skill-copy cleanup introduced by microsoft/aspire#22080, targeting release/17.0.

Changes:

  • Adds cleanup behavior, discovery locations, and interactive versus non-interactive defaults.
  • Documents --remove-skill-copies and provides a non-interactive example.
  • Notes support in chained setup commands and related aspire doctor warnings.
File Description
src/​frontend/​src/​content/​docs/​reference/​cli/​commands/​aspire-agent-init.mdx Adds skill-copy cleanup guidance, the option reference, and a usage example.

Review effort: Balanced


The CLI looks only where older versions 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 doesn't read agent-specific settings such as `CLAUDE_CONFIG_DIR` or OpenCode `skills.paths`.

After the `Configured sources in ...` line, the CLI reports `Removed copied Aspire skills in ...` or `Kept copied Aspire skills in ...`. If you pass `--remove-skill-copies` but the plugin doesn't replace the copies at the selected scope (for example, because the default source is disabled), the CLI keeps them and explains why.
- **`--skills <skills>`**

Comma-separated choices: `aspire`, `playwright-cli`, or `dotnet-inspect`. The `dotnet-inspect` skill requires a C# AppHost in the workspace. Use `all` for every applicable choice or `none` to skip them. Defaults to `aspire`, which applies all enabled skill sources. MCP setup is separate.

- **`--remove-skill-copies`**

Delete copied Aspire skill files that older CLI versions wrote and that the configured plugin now replaces. Pass `--remove-skill-copies=false` to keep them. When omitted, the CLI prompts in an interactive terminal and keeps the copies in non-interactive runs.
@ellahathaway
Ella Hathaway (ellahathaway) merged commit c35a790 into release/17.0 Nov 17, 2026
17 checks passed
@ellahathaway
Ella Hathaway (ellahathaway) deleted the docs/pr-22080-43505490618-1-d3a8714ce83c8a15 branch November 17, 2026 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs-from-code Copilot initiated issue from dotnet/aspire repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants