vscode-ext-commands — скилл для GitHub Copilot: установка
Скилл подсказывает, как добавлять команды в расширения VS Code: задавать имена, видимость, локализацию и связанные параметры.
npx skills add github/awesome-copilot --skill vscode-ext-commands -a claude-codeЧто делает vscode-ext-commands
vscode-ext-commands помогает добавлять и обновлять команды в расширениях VS Code. Он напоминает всегда задавать title, а для обычных команд использовать category и показывать их в Command Palette.
Для команд боковой панели описаны отдельные правила: имя начинается с _ и заканчивается на #sideBar, нужна иконка, а для view/title и view/item/context задаётся порядок показа. Также учитываются условия when и enablement, чтобы команда появлялась в подходящем контексте.
Ставьте скилл, если разрабатываете расширение VS Code и хотите проверять структуру команд по этим правилам. Для задач вне расширений VS Code он не пригодится.
Какие задачи решает
- добавить команду в расширение VS Code
- задать
title,categoryи видимость команды - оформить команду боковой панели
- настроить иконку и порядок команды в представлении
- определить условия показа через
whenиenablement
Примеры запросов агенту
- Добавь команду в расширение VS Code и проверь, что у неё есть `title`, `category` и нужная видимость.
- Оформи команду для `view/title` боковой панели по правилам `vscode-ext-commands`.
- Проверь имя, иконку, группу и условие `when` для команды `_extensionId.someCommand#sideBar`.
Как установить vscode-ext-commands
1Через Skills CLI (Vercel)
npx skills add github/awesome-copilot --skill vscode-ext-commands -a claude-code2Вручную: положить файлы
~/.claude/skills/vscode-ext-commands/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/vscode-ext-commands/
Вручную: положить файлы
.agents/skills/vscode-ext-commands/SKILL.mdДля всех проектов — ~/.agents/skills/
Вручную: положить файлы
.cursor/skills/vscode-ext-commands/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1Через Skills CLI (Vercel)
npx skills add github/awesome-copilot --skill vscode-ext-commands2GitHub CLI
gh skill install github/awesome-copilot vscode-ext-commands3Вручную: положить файлы
.github/skills/vscode-ext-commands/SKILL.mdКомандой платформы
gemini skills install https://github.com/github/awesome-copilot --path skills/vscode-ext-commandsВручную: положить файлы
.devin/skills/vscode-ext-commands/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Похожие
Вопросы о vscode-ext-commands
Как установить vscode-ext-commands в GitHub Copilot?
Выполните npx skills add github/awesome-copilot --skill vscode-ext-commands, затем используйте файл .github/skills/vscode-ext-commands/SKILL.md. Также доступна команда gh skill install github/awesome-copilot vscode-ext-commands.
Что делает vscode-ext-commands?
Скилл помогает добавлять и обновлять команды в расширениях VS Code. Он описывает требования к названию, title, категории, иконке, видимости и условиям показа.
Чем команды боковой панели отличаются от обычных команд?
Для них используется имя с _ в начале и #sideBar в конце, например _extensionId.someCommand#sideBar. Им нужна иконка, а в view/title или view/item/context также задаётся порядок отображения.
Исходный текст
SKILL.md · MIT
--- name: vscode-ext-commands description: 'Guidelines for contributing commands in VS Code extensions. Indicates naming convention, visibility, localization and other relevant attributes, following VS Code extension development guidelines, libraries and good practices' --- # VS Code extension command contribution This skill helps you to contribute commands in VS Code extensions ## When to use this skill Use this skill when you need to: - Add or update commands to your VS Code extension # Instructions VS Code commands must always define a `title`, independent of its category, visibility or location. We use a few patterns for each "kind" of command, with some characteristics, described below: * Regular commands: By default, all commands should be accessible in the Command Palette, must define a `category`, and don't need an `icon`, unless the command will be used in the Side Bar. * Side Bar commands: Its name follows a special pattern, starting with underscore (`_`) and suffixed with `#sideBar`, like `_extensionId.someCommand#sideBar` for instance. Must define an `icon`, and may or may not have some rule for `enablement`. Side Bar exclusive commands should not be visible in the Command Palette. Contributing it to the `view/title` or `view/item/context`, we must inform _order/position_ that it will be displayed, and we can use terms "relative to other command/button" in order to you identify the correct `group` to be used. Also, it's a good practice to define the condition (`when`) for the new command is visible.
© github · MIT · github/awesome-copilot