- name
SKILL.md
技能文件保留在发布者的仓库中。
在终端中粘贴复制的命令。它会把这个 SKILL.md 安装到对应的智能体中。
npx skills add microsoft/GitHub-Copilot-for-Azure --skill onboard-plugin -a cursor -y在终端中粘贴复制的命令。它会把这个 SKILL.md 安装到对应的智能体中。
npx skills add microsoft/GitHub-Copilot-for-Azure --skill onboard-plugin -a claude-code -y在终端中粘贴复制的命令。它会把这个 SKILL.md 安装到对应的智能体中。
npx skills add microsoft/GitHub-Copilot-for-Azure --skill onboard-plugin -a codex -y在终端中粘贴复制的命令。它会把这个 SKILL.md 安装到对应的智能体中。
npx skills add microsoft/GitHub-Copilot-for-Azure --skill onboard-plugin -a grok -y在 Grok Bot 聊天中发送复制的消息。Bot 会从 GitHub 获取这个 SKILL.md,并添加到你所有 Bot 共享的技能中。
Install this skill: https://github.com/microsoft/GitHub-Copilot-for-Azure/tree/HEAD/.github/skills/onboard-plugin来自发布者
This skill provides the end-to-end steps for onboarding a new plugin to this repo. Follow the steps to scaffold a new plugin and make it ready for distribution.
Install dependencies at the repo root, in tests/ and in scripts/.
# At repo root
npm i
# In tests/
cd tests
npm i
# In scripts/
cd scripts/
npm i
Ask the skill author to provide a name for the new plugin. Then in <repo-root>/scripts/, run this command to scaffold the common files for a new plugin.
# At <repo-root>/scripts/
cd scripts
npm run plugin:new -- --plugin {plugin-name}
This command creates a plugins/{plugin-name} directory and files in it. Refer to the Plugin Structure section of Onboarding.md to understand what each file is for.
This command adds an entry for the new plugin in tests/skills.json. Nightly scheduled integration tests use this file to discover the plugins and skills to test.
This command creates plugin-local hooks/scripts/pluginPathAllowPattern.sh
and hooks/scripts/pluginPathAllowPattern.ps1 files. The shared telemetry
scripts use these patterns to avoid sending telemetry for skills outside the
plugin. The build automatically combines shared hooks with this local hook
tree.
Optional client-specific copilot-hooks.json, claude-hooks.json, and
cursor-hooks.json files under the plugin's hooks/ directory are fragments.
List only plugin-owned event registrations; the build appends handlers to
shared events or adds new events.
Ask the skill author for the names of the skills they plan to add and then scaffold them by running this script for each skill. Try running this command in <repo-root>/scripts with {plugin-name} from the previous step. If the plugin doesn't exist, it may have been renamed. Ask the skill author what plugin name to use.
# At <repo-root>/scripts/
cd scripts
npm run plugin:new-skill -- --plugin {plugin-name} --skill {skill-name}
This command creates a plugins/{plugin-name}/skills/{skill-name}/SKILL.md file and an evals/{plugin-name}/{skill-name}/eval.yaml file. Refer to the Skill Structure section of Onboarding.md to understand what each file is for and what files can be added. It adds two placeholder codeowners and Rick Winter as the codeowner of the corresponding directories. Every new plugin must have at least two distinct codeowner and Rick Winter as a fallback owner.
This command also adds the skill to tests/skills.json nightly integration test schedule.
IMPORTANT: Leave the scaffolded skill as is and don't implement them. Skill authors must implement and test the skills themselves.
The scaffolded skill includes one example routing test that prompts the agent to load the skill and describe what it does. Do a test run.
First build the plugin from the repo root;
# IMPORTANT: Run this command at the <repo-root>
npm run build
Then use this command in <repo-root>/tests/.
# At <repo-root>/tests/
cd tests
npm run test:vally -- --plugin {plugin-name} --skill {skill-name}
The test should pass. If it fails, ask the skill author to report a bug to microsoft/github-copilot-for-azure.
The scaffolded plugin and skill files are ready for release by default. Refer to the Releasing section of Onboarding.md for how releases work.
Notify the skill author about these next steps to finish onboarding the new plugin.
plugin.json files.plugin.json filesREADME.md. Preserve the scaffolded telemetry disclosure. Add
an npx and .npmrc security warning only if the plugin's .mcp.json
actually invokes npx; the shared telemetry hook does not use it.Tell the skill author that they can host integration tests in a separate GitHub or Azure DevOps repository. This is useful when tests need a dedicated Azure subscription, custom result processing, or extra dependencies.
If they want a separate workflow:
<repo-root>/workflow-templates/Readme.md and follow its user setup
instructions.evaluation-main.yaml starter into the evaluation
repository:
workflow-templates/github/evaluation-main.yamlworkflow-templates/azure-devops/evaluation-main.yamlmain. For GitHub
Actions, use the same SHA for the action reference and test-harness-ref.
For Azure Pipelines, set the evaluationTemplates repository ref to the
SHA.evals/<plugin-name>/<skill-name>/ in the evaluation
repository unless the starter's evaluation-directory option is changed.The starter workflows upload reports and raw Vally results as artifacts. They also identify where to add dependency setup and result post-processing steps.
Scaffold a new plugin and prepare it for distribution. WHEN: 'create a new plugin', 'scaffold a new plugin'
---name: onboard-plugindescription: Scaffold a new plugin and prepare it for distribution. WHEN: 'create a new plugin', 'scaffold a new plugin'---# .github/skills/onboard-plugin/SKILL.md常见问题
从发布者处下载 .github/skills/onboard-plugin/SKILL.md,或复制路径后打开仓库。PlugMCP 只收录该技能,不托管文件。
发布者将它存放在 https://github.com/microsoft/GitHub-Copilot-for-Azure。
Claude、Cursor、Codex 和 Grok Build 可以读取你从发布者仓库添加的 SKILL.md。在聊天中发送技能的 GitHub 文件夹链接,Grok Bot 就会安装它。