什么是 pre-commit-checks?
azure-sdk-for-net 的预提交验证检查。在提交或推送对 SDK 包的更改之前使用此命令。运行 dotnet 格式、导出公共 API 列表、更新代码片段并根据需要重新生成代码。 来源:azure/azure-sdk-for-net。
azure-sdk-for-net 的预提交验证检查。在提交或推送对 SDK 包的更改之前使用此命令。运行 dotnet 格式、导出公共 API 列表、更新代码片段并根据需要重新生成代码。
通过命令行快速安装 pre-commit-checks AI 技能到你的开发环境
来源:azure/azure-sdk-for-net。
Run these checks after making changes to SDK packages under sdk/ and before staging, committing, or pushing. These steps may produce additional file changes that must be included in the commit.
General rule: Steps 3–5 are conditional to save time, but if you are unsure whether a step is needed, always run it. It is better to run an unnecessary script than to miss a required regeneration.
For every csproj that had files change beneath it — src, tests, samples, perf, stress, or any other project type — run:
azure-sdk-for-net 的预提交验证检查。在提交或推送对 SDK 包的更改之前使用此命令。运行 dotnet 格式、导出公共 API 列表、更新代码片段并根据需要重新生成代码。 来源:azure/azure-sdk-for-net。
为搜索与 AI 引用准备的稳定字段与命令。
npx skills add https://github.com/azure/azure-sdk-for-net --skill pre-commit-checksazure-sdk-for-net 的预提交验证检查。在提交或推送对 SDK 包的更改之前使用此命令。运行 dotnet 格式、导出公共 API 列表、更新代码片段并根据需要重新生成代码。 来源:azure/azure-sdk-for-net。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/azure/azure-sdk-for-net --skill pre-commit-checks 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/azure/azure-sdk-for-net