azure/azsdk-common-generate-sdk-locally
Generate, build, and test Azure SDKs locally from TypeSpec with automatic customization. WHEN: \"generate SDK locally\", \"build SDK\", \"run SDK tests\", \"run CI checks\", \"validate package\", \"run checks\", \"update changelog\", \"fix SDK build errors\", \"fix breaking changes\", \"resolve SDK generation errors\", \"customize TypeSpec\", \"rename SDK client\", \"rename SDK model\", \"hide operation from SDK\", \"fix analyzer errors\", \"resolve customization drift\", \"create subclient\", \"update metadata\", \"update version\". DO NOT USE FOR: publishing to package registries, CI pipeline configuration, API design review. INVOKES: azsdk_verify_setup, azsdk_package_generate_code, azsdk_package_build_code, azsdk_package_run_check, azsdk_package_run_tests, azsdk_customized_code_update, azsdk_package_update_changelog_content, azsdk_package_update_metadata, azsdk_package_update_version.
npx skills add https://github.com/Azure/azure-sdk-for-net --skill azsdk-common-generate-sdk-locally
| Tool | Purpose |
|------|---------|
| azure-sdk-mcp:azsdk_verify_setup | Verify environment |
| azure-sdk-mcp:azsdk_package_generate_code | Generate SDK |
| azure-sdk-mcp:azsdk_package_build_code | Build package |
| azure-sdk-mcp:azsdk_package_run_check | Validate package |
| azure-sdk-mcp:azsdk_package_run_tests | Run tests |
| azure-sdk-mcp:azsdk_customized_code_update | Apply customizations (includes regeneration and build) |
| azure-sdk-mcp:azsdk_package_update_changelog_content | Update changelog |
| azure-sdk-mcp:azsdk_package_update_metadata | Update metadata including ci.yml |
| azure-sdk-mcp:azsdk_package_update_version | Update version |
Prerequisites: azure-sdk-mcp server must be running. Without MCP, use npx tsp-client CLI.
azure-rest-api-specs repo: use path to tspconfig.yaml.tsp-location.yaml.azure-sdk-mcp:azsdk_verify_setup to confirm environment.azure-sdk-mcp:azsdk_package_generate_code with the config file path.azure-sdk-mcp:azsdk_package_build_code. If build succeeds, proceed to step 8.azure-sdk-mcp:azsdk_customized_code_update with the build errors or user request. The tool handles the full workflow internally: it classifies the issue, applies TypeSpec decorators and/or code patches, regenerates the SDK, and builds — all in one call. See customization workflow.azure-sdk-mcp:azsdk_package_run_check and azure-sdk-mcp:azsdk_package_run_tests.10. Metadata — Run azure-sdk-mcp:azsdk_package_update_changelog_content, azure-sdk-mcp:azsdk_package_update_metadata, and azure-sdk-mcp:azsdk_package_update_version. _(Note: For .NET data plane, skip this step — metadata, changelog, and version updates are per-commit tasks, not part of the generate/build/test workflow.)_
11. Final commit — Prompt the user to commit final changes (changelog, metadata, version). See commit checkpoint details.
SDK repos | Customization workflow | Detailed workflow
azure-sdk-mcp:azsdk_customized_code_update. It handles classification, TypeSpec decorators, code patches, regeneration, and build as a single atomic workflow.azure-sdk-mcp:azsdk_customized_code_update fails or times out, report the error to the user and suggest retrying. Do not attempt to replicate its behavior by editing files manually.azure-sdk-mcp:azsdk_verify_setup to confirm MCP and tools.azure-sdk-mcp:azsdk_customized_code_update to apply customizations.azure-sdk-mcp:azsdk_customized_code_update fails or times out, report the error and retry. Do not manually edit generated SDK code — manual edits will be overwritten on the next regeneration.npx tsp-client CLI.Take azure/azsdk-common-generate-sdk-locally from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.
The instructions reference npx.
Without those the skill loads but fails at the first command.