Skip to content

Add skill frontmatter fields for slash command support#293173

Merged
pwang347 merged 2 commits intomainfrom
pawang/skillSlashCommandProperties
Feb 6, 2026
Merged

Add skill frontmatter fields for slash command support#293173
pwang347 merged 2 commits intomainfrom
pawang/skillSlashCommandProperties

Conversation

@pwang347
Copy link
Member

@pwang347 pwang347 commented Feb 5, 2026

No description provided.

Copilot AI review requested due to automatic review settings February 5, 2026 18:05
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 pull request adds support for slash command configuration fields to skills by extending the skill frontmatter with three new attributes: userInvokable, disableModelInvocation, and argumentHint. These fields enable skills to control their visibility and invocation behavior, similar to how agents work.

Changes:

  • Added validation for userInvokable and disableModelInvocation attributes for skills
  • Extended skill attribute list to include argumentHint, userInvokable, and disableModelInvocation
  • Added autocompletion support for the new boolean attributes with true/false suggestions
  • Implemented filtering to hide non-user-invokable skills from the slash command completion menu

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
promptValidator.ts Adds validation calls for userInvokable and disableModelInvocation to skill validation, updates skill attribute list with three new fields, and adds localized descriptions for the new attributes
promptHeaderAutocompletion.ts Extends autocompletion value suggestions to include skills for userInvokable and disableModelInvocation boolean attributes
chatInputCompletions.ts Filters out skills with userInvokable=false from slash command completions to hide them from the / menu

@pwang347 pwang347 marked this pull request as ready for review February 6, 2026 00:13
@vs-code-engineering vs-code-engineering bot added this to the February 2026 milestone Feb 6, 2026
@pwang347 pwang347 enabled auto-merge (squash) February 6, 2026 00:15
@pwang347 pwang347 merged commit 107a383 into main Feb 6, 2026
22 checks passed
@pwang347 pwang347 deleted the pawang/skillSlashCommandProperties branch February 6, 2026 01:36
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.

2 participants