Skip to content

Conversation

@pwang347
Copy link
Member

@pwang347 pwang347 commented Jan 7, 2026

No description provided.

Copilot AI review requested due to automatic review settings January 7, 2026 01:19
Copy link
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

This PR adds a new configuration setting chat.agentSkillsLocations that allows users to specify additional folder locations to load agent skills from, beyond the default built-in locations (.github/skills, ~/.copilot/skills, .claude/skills, ~/.claude/skills).

Key changes:

  • New array-type configuration setting for specifying custom agent skill folder locations
  • Support for both absolute and relative paths (relative paths resolve from workspace root folders)
  • Proper handling of remote environments with authority-aware URI conversion
  • Comprehensive test coverage for the configuration getter function

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/vs/workbench/contrib/chat/browser/chat.contribution.ts Adds configuration schema for chat.agentSkillsLocations setting with examples and updates the chat.useAgentSkills description to reference the new setting
src/vs/workbench/contrib/chat/common/promptSyntax/config/config.ts Defines the new configuration key constant and implements getAgentSkillsLocations() getter function with validation and sanitization logic
src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.ts Integrates the new setting into skill discovery by adding findAgentSkillsInConfiguredLocations() and findAgentSkillsInFolderDirect() methods with support for absolute/relative paths and remote environments
src/vs/workbench/contrib/chat/test/common/promptSyntax/config/config.test.ts Adds comprehensive test suite for getAgentSkillsLocations() covering edge cases including undefined/null values, non-array types, empty strings, whitespace trimming, and non-string filtering

@pwang347 pwang347 marked this pull request as ready for review January 10, 2026 01:42
@vs-code-engineering vs-code-engineering bot added this to the January 2026 milestone Jan 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants