You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Warn about local Aspire skills in aspire doctor - #21783
Static Aspire skill files can take precedence over skills supplied by agent plugins. aspire doctor now points out those files and suggests deleting them, then running aspire agent init --skills aspire.
The check uses the same discovery as aspire agent init and checks both project and global locations. It only reports what it finds: it does not delete files, create backups, change registrations, or install skills.
Both output formats share the same warning message and files list, using workspace-relative and ~/ paths with absolute fallback outside both roots. JSON keeps metadata.workspaceRoot as context. There is no separate details field or repeated file list for this warning.
Terminal warning, from the output regression snapshot:
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
~/.agents/skills/aspire/SKILL.md
The matching JSON check, with an example workspace root:
{
"category": "apphost",
"name": "aspire-skill-sources",
"status": "warning",
"message": "Local Aspire skill files may override plugin skills",
"fix": "Delete these files, then run 'aspire agent init --skills aspire'.",
"files": [
".agents/skills/aspire/SKILL.md",
"~/.agents/skills/aspire/SKILL.md"
],
"metadata": {
"workspaceRoot": "C:\\Users\\dev\\src\\my-app"
}
}
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?
Report project and global static skill copies without modifying them. Reuse agent-init wording and display paths, and keep structured JSON paths separate from terminal details.
Co-authored-by: Copilot App <[email protected]>
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The tests explicitly register AspireSkillsCheck and omit a packaged-CLI scenario from a repository subdirectory, leaving production registration and repository-root skill discovery unverified.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Existing tests bypass production registration and Git-root discovery, leaving the new doctor warning without packaged-CLI end-to-end coverage for terminal and JSON output.
The new doctor snapshots manually register AspireSkillsCheck, so they would still pass if this production registration were missing. The updated E2E scenario only runs agent init; no packaged-CLI test exercises the new doctor warning. Please add a doctor E2E scenario with project-local and global static skills that verifies both terminal and JSON output, including the shared file list and unchanged files.
Cover Git-root discovery from a nested directory, text and JSON output, display paths, and preservation of local and global skill files.
Co-authored-by: Copilot <[email protected]>
Copilot-Session: b0dbbde1-69ad-48f0-acf6-9b8a33672808
Documented the new aspire-skill-sources warning in aspire doctor (table and JSON output) in aspire-doctor.mdx. Signals: cli_command_file_changed (DoctorCommand.cs, AgentInitCommand.cs), cli_resource_strings_changed (DoctorCommandStrings.resx), pr_body_has_cli_flag_mention (aspire agent init --skills aspire).
## 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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Static Aspire skill files can take precedence over skills supplied by agent plugins.
aspire doctornow points out those files and suggests deleting them, then runningaspire agent init --skills aspire.The check uses the same discovery as
aspire agent initand checks both project and global locations. It only reports what it finds: it does not delete files, create backups, change registrations, or install skills.Both output formats share the same warning message and
fileslist, using workspace-relative and~/paths with absolute fallback outside both roots. JSON keepsmetadata.workspaceRootas context. There is no separatedetailsfield or repeated file list for this warning.Related to #19726. Depends on #21769.
Examples
Terminal warning, from the output regression snapshot:
The matching JSON check, with an example workspace root:
{ "category": "apphost", "name": "aspire-skill-sources", "status": "warning", "message": "Local Aspire skill files may override plugin skills", "fix": "Delete these files, then run 'aspire agent init --skills aspire'.", "files": [ ".agents/skills/aspire/SKILL.md", "~/.agents/skills/aspire/SKILL.md" ], "metadata": { "workspaceRoot": "C:\\Users\\dev\\src\\my-app" } }Checklist
<remarks />and<code />elements on your triple slash comments?