Skip to content

.NET: Standardize file skills terminology on 'directory'#5205

Merged
westey-m merged 1 commit intomicrosoft:mainfrom
SergeyMenshykh:standardize-folder-terminology
Apr 10, 2026
Merged

.NET: Standardize file skills terminology on 'directory'#5205
westey-m merged 1 commit intomicrosoft:mainfrom
SergeyMenshykh:standardize-folder-terminology

Conversation

@SergeyMenshykh
Copy link
Copy Markdown
Member

@SergeyMenshykh SergeyMenshykh commented Apr 10, 2026

Summary

Standardize the file skills codebase to use "directory" consistently instead of mixing "folder" and "directory" for the same concept. This aligns with the agentskills.io specification which uses "directory" exclusively, and with .NET BCL conventions (Directory, DirectoryInfo).

Public API changes (experimental)

  • ScriptFoldersScriptDirectories
  • ResourceFoldersResourceDirectories

Internal changes

Source files:

  • AgentFileSkillsSource.cs — constants (RootFolderIndicatorRootDirectoryIndicator), fields, method params, loop variables, log methods/messages, XML docs, and comments
  • AgentFileSkillsSourceOptions.cs — property renames + XML docs

Test files:

  • FileAgentSkillLoaderTests.cs — updated property references, test method names, variable names, comments, and test fixture names
  • AgentFileSkillsSourceScriptTests.cs — updated property references, test method names, variable names, and comments

@SergeyMenshykh SergeyMenshykh self-assigned this Apr 10, 2026
@moonbox3 moonbox3 added the .NET label Apr 10, 2026
@SergeyMenshykh SergeyMenshykh moved this to In Review in Agent Framework Apr 10, 2026
@github-actions github-actions bot changed the title Standardize file skills terminology on 'folder' .NET: Standardize file skills terminology on 'folder' Apr 10, 2026
@SergeyMenshykh SergeyMenshykh marked this pull request as ready for review April 10, 2026 11:33
Copilot AI review requested due to automatic review settings April 10, 2026 11:33
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Standardizes terminology across the .NET file-skills implementation to consistently use “folder” (aligned with the public API concepts ScriptFolders/ResourceFolders) instead of mixing “folder” and “directory”.

Changes:

  • Renamed internal methods/variables/log messages in the file skills source from DirectoryFolder terminology.
  • Updated XML docs across the file skills types and provider builder/provider to use “folder” consistently.
  • Updated unit tests to reflect the new terminology (helper names, test names, comments).

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
dotnet/src/Microsoft.Agents.AI/Skills/File/AgentFileSkillsSource.cs Renames internal discovery/parsing APIs and log messages to “folder” terminology; keeps filesystem APIs unchanged.
dotnet/src/Microsoft.Agents.AI/Skills/File/AgentFileSkillsSourceOptions.cs Updates XML docs to describe scanning “skill folders”.
dotnet/src/Microsoft.Agents.AI/Skills/File/AgentFileSkill.cs Updates public docs to refer to “folder” for discovered skill location.
dotnet/src/Microsoft.Agents.AI/Skills/File/AgentFileSkillResource.cs Updates docs to refer to “skill folder” for relative resource naming.
dotnet/src/Microsoft.Agents.AI/Skills/AgentSkillsProviderBuilder.cs Updates docs/remarks to refer to file skill “folders”.
dotnet/src/Microsoft.Agents.AI/Skills/AgentSkillsProvider.cs Updates constructor docs to refer to a single “folder”.
dotnet/tests/Microsoft.Agents.AI.UnitTests/AgentSkills/FileAgentSkillLoaderTests.cs Renames helpers/tests/comments to “folder” terminology.
dotnet/tests/Microsoft.Agents.AI.UnitTests/AgentSkills/AgentFileSkillsSourceScriptTests.cs Updates comment wording (“subfolder recursion”).
dotnet/tests/Microsoft.Agents.AI.UnitTests/AgentSkills/AgentSkillsProviderTests.cs Renames a test to “SingleFolder”.

@SergeyMenshykh SergeyMenshykh disabled auto-merge April 10, 2026 11:58
Rename authored identifiers, XML docs, log messages, and comments
from 'folder' to 'directory' across the file skills codebase for
consistency with the agentskills.io specification and .NET conventions.

Public API changes (experimental):
- ScriptFolders → ScriptDirectories
- ResourceFolders → ResourceDirectories

.NET BCL API calls (Directory.Exists, Path.GetDirectoryName, etc.)
were already using 'directory' and are unchanged.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@SergeyMenshykh SergeyMenshykh force-pushed the standardize-folder-terminology branch from e050218 to b9c67be Compare April 10, 2026 12:04
@SergeyMenshykh SergeyMenshykh changed the title .NET: Standardize file skills terminology on 'folder' # Standardize file skills terminology on 'directory' Apr 10, 2026
@SergeyMenshykh SergeyMenshykh changed the title # Standardize file skills terminology on 'directory' .NET: Standardize file skills terminology on 'directory' Apr 10, 2026
@SergeyMenshykh SergeyMenshykh added this pull request to the merge queue Apr 10, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 10, 2026
@SergeyMenshykh SergeyMenshykh added this pull request to the merge queue Apr 10, 2026
@westey-m westey-m removed this pull request from the merge queue due to a manual request Apr 10, 2026
@westey-m westey-m merged commit 14d2ab3 into microsoft:main Apr 10, 2026
21 checks passed
@github-project-automation github-project-automation bot moved this from In Review to Done in Agent Framework Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants