什麼是 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