Skip to content

Update skill parsing behaviour#311797

Merged
pwang347 merged 12 commits intomainfrom
pawang/skillUpdates
Apr 24, 2026
Merged

Update skill parsing behaviour#311797
pwang347 merged 12 commits intomainfrom
pawang/skillUpdates

Conversation

@pwang347
Copy link
Copy Markdown
Member

@pwang347 pwang347 commented Apr 21, 2026

Fixes #297484
Fixes #294747

  1. For slash commands, use the folder name in case no name property exists for the skill.
  2. Allow no name property.
  3. Allow no description property, but if so disable model invocation and provide lint warnings if conflicting model invocation properties are given.

Copilot AI review requested due to automatic review settings April 21, 2026 22:39
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 21, 2026

Screenshot Changes

Base: f6c99af3 Current: c6bff5c3

Changed (1)

editor/inlineCompletions/other/JumpToHint/Dark
Before After
before after

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

Updates the chat prompt “skill” parsing and validation behavior to better align skill identity with its containing folder and to relax header requirements while maintaining model-invocation safety.

Changes:

  • Change getCleanPromptName() for SKILL.md (case-insensitive) to return the parent folder name instead of SKILL.
  • Relax skill header validation to allow omitted name/description, but require a description when certain invocability attributes are set.
  • Exclude skills without a description from the “model-invocable skills” set used for automatic instructions, and update tests accordingly.
Show a summary per file
File Description
src/vs/workbench/contrib/chat/common/promptSyntax/config/promptFileLocations.ts Adjusts clean-name computation for skills to use folder names.
src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.ts Updates skill validation rules around missing name/description and conditional description requirements.
src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.ts Filters out skills lacking descriptions from model-invocation loading and logs skip reasons.
src/vs/workbench/contrib/chat/test/common/promptSyntax/config/promptFileLocations.test.ts Updates expectations for skill clean-name behavior across filename casing variants.
src/vs/workbench/contrib/chat/test/browser/promptSyntax/languageProviders/promptValidator.test.ts Updates/extends tests for new skill header validation behavior.

Copilot's findings

  • Files reviewed: 5/5 changed files
  • Comments generated: 2

@pwang347 pwang347 requested a review from aeschli April 22, 2026 02:01
@pwang347 pwang347 marked this pull request as ready for review April 22, 2026 02:29
Comment thread src/vs/workbench/contrib/chat/common/promptSyntax/config/promptFileLocations.ts Outdated
Comment thread src/vs/workbench/contrib/chat/common/promptSyntax/promptFileParser.ts Outdated
Yoyokrazy
Yoyokrazy previously approved these changes Apr 22, 2026
aeschli
aeschli previously approved these changes Apr 23, 2026
Comment thread src/vs/workbench/contrib/chat/common/promptSyntax/config/promptFileLocations.ts Outdated
Comment thread src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.ts Outdated
@pwang347 pwang347 dismissed stale reviews from aeschli and Yoyokrazy via fb1ef5e April 23, 2026 18:38
@pwang347 pwang347 enabled auto-merge (squash) April 23, 2026 18:38
@pwang347 pwang347 merged commit f18d459 into main Apr 24, 2026
40 of 41 checks passed
@pwang347 pwang347 deleted the pawang/skillUpdates branch April 24, 2026 20:02
@vs-code-engineering vs-code-engineering Bot added this to the 1.118.0 milestone Apr 24, 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

5 participants