Fix agent file naming: use .agent.md suffix#127976
Open
lewing wants to merge 1 commit intodotnet:mainfrom
Open
Fix agent file naming: use .agent.md suffix#127976lewing wants to merge 1 commit intodotnet:mainfrom
lewing wants to merge 1 commit intodotnet:mainfrom
Conversation
Per the GitHub Copilot CLI plugin reference, agent files in the agents/ directory must end in .agent.md to be discovered. See https://docs.github.com/en/copilot/reference/cli-plugin-reference Two of the three agents under .github/agents/ were missing the suffix and were therefore silently not loaded: - extensions-reviewer.md -> extensions-reviewer.agent.md - system-net-review.md -> system-net-review.agent.md This also fixes broken @-mentions in two skills that delegate to these agents: - .github/skills/extensions-review/SKILL.md mentions @extensions-reviewer - .github/skills/system-net-review/SKILL.md mentions @system-net-review Both @-mentions previously had no agent to resolve to. The third agent file (agentic-workflows.agent.md) was already named correctly and is unchanged. No content changes; pure file renames preserved via git mv.
Contributor
|
Tagging subscribers to this area: @dotnet/area-meta |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Two of the three custom agent files under
.github/agents/were missing the.agent.mdsuffix and were therefore silently not loaded by the Copilot CLI / VS Code / Claude Code:.github/agents/extensions-reviewer.md.github/agents/extensions-reviewer.agent.md.github/agents/system-net-review.md.github/agents/system-net-review.agent.mdPer the Copilot CLI plugin reference, agents are discovered as
.agent.mdfiles inside the agents directory. Without that suffix, the file is not registered as an agent.The third agent file,
agentic-workflows.agent.md, was already named correctly and is unchanged.Why this matters
This fixes broken
@-mentions in two skills that delegate to these agents:.github/skills/extensions-review/SKILL.mdsays "For full code review, delegates to the @extensions-reviewer agent".github/skills/system-net-review/SKILL.mdsays "For full code review, delegates to the @system-net-review agent"With the agents not being loaded, those
@-mentions had nothing to resolve to. After this rename both delegations will work as documented.What's in this PR
Pure file renames preserved via
git mv(similarity 100%). No content changes. No other files reference these agents by filename — only by@-mention via the agent'snamefield, which is unaffected.