azsdk-common-generate-sdk-locally
Skill2.6k starsChanged 21 months agoMITView on GitHub
Generate and finalize Azure SDKs locally from TypeSpec, including build, checks, tests, changelog, metadata, and version updates by default. WHEN: "generate SDK locally", "build SDK", "run SDK tests", "run CI checks", "validate package", "run checks", "update changelog", "fix SDK build errors", "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". 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.
7 other projects use a version of this, 4 of them edited.
Trending
Quiet this year.thin dataabout the whole repository
Most recently taken up by
- Azure/azure-sdkedited, first seen Sep 18, 2026
- Azure/azure-sdk-toolsword for word, first seen Aug 31, 2026
- Azure/azure-sdk-for-iosedited, first seen Jun 12, 2026
- Azure/azure-sdk-for-netedited, first seen Apr 18, 2026
- Azure/azure-sdk-for-cppedited, first seen Apr 14, 2026
- Azure/azure-sdk-for-jsword for word, first seen Mar 18, 2025
Who's talking about Azure/azure-sdk-for-java
- hashicorp/vault“Add go templating to Identity Policy Templating”GitHub · Mar 9, 2021 · 15 reactions
- spring-projects/spring-data-rest“Circular references problem when using RestTemplateBuilder on custom WebMvcConfigurer”GitHub · Oct 24, 2022 · 7 reactions
- nextflow-io/nextflow“Support Azure Batch as additonal executor”GitHub · Dec 20, 2019 · 7 reactions
- Azure/azure-sdk-for-android“[FEATURE REQ] Support Storage libraries on Android”GitHub · Jan 2, 2023 · 6 reactions
- spring-projects/spring-ai“Support structured output in Azure OpenAI as well”GitHub · Dec 3, 2024 · 5 reactions
The biggest 5 of 12 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 12
Talked about on GitHub (12 times).
On GitHub · 12
- Mar 9, 2021Add go templating to Identity Policy Templating — hashicorp/vault15 reactions · 4 comments
- Oct 24, 2022Circular references problem when using RestTemplateBuilder on custom WebMvcConfigurer — spring-projects/spring-data-rest7 reactions · 7 comments
- Dec 20, 2019Support Azure Batch as additonal executor — nextflow-io/nextflow7 reactions · 21 comments
- Jan 2, 2023[FEATURE REQ] Support Storage libraries on Android — Azure/azure-sdk-for-android6 reactions · 1 comment
- Dec 3, 2024Support structured output in Azure OpenAI as well — spring-projects/spring-ai5 reactions · 4 comments
7 more on GitHub
- Jun 26, 2023Azure Cosmos DB: support for hierarchical partition keys — Azure/azure-sdk-for-go5 reactions · 6 comments
- May 15, 2020[FEATURE REQ] Storage Migration Guide — Azure/azure-sdk-for-net5 reactions · 10 comments
- Sep 8, 2021Plugins: [repository-azure] plugin should use Azure Storage SDK v12 for Java — opensearch-project/OpenSearch4 reactions · 6 comments
- Jun 27, 2024[BUG] AcquireTokenSilentSupplier failed: Token not found in the cache — AzureAD/microsoft-authentication-library-for-java3 reactions · 3 comments
- Jul 23, 2021Azure Cosmos DB: Introduce CosmosDBEmulatorContainer — testcontainers/testcontainers-java3 reactions · 29 comments
- Nov 17, 2020Upgrade Azure repository SDK to v12 — elastic/elasticsearch3 reactions · 10 comments
- Dec 17, 2024[FEATURE REQ] Add dataSecurityMode to AzureDatabricksLinkedService — Azure/azure-rest-api-specs2 reactions · 1 comment
Used with
Projects with it also use code-review.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
GoogleSkillcode-review
Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.
Also in 3 projects that use this
Other versions7 projects use a version of this.
Word for word · 3
- Azure/azure-sdk-for-python★ 5.6k100% same
- Azure/azure-sdk-for-js★ 2.3k100% same
- Azure/azure-sdk-tools★ 134100% same
Edited · 4
- Azure/azure-sdk-for-net★ 6.1k92% same
- Azure/azure-sdk★ 60092% same
- Azure/azure-sdk-for-cpp★ 20692% same
- Azure/azure-sdk-for-ios★ 19792% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- agentic-workflowsSkill
- azsdk-common-apiview-feedback-resolutionSkill
- azsdk-common-pipeline-analysisSkill
- azsdk-common-pipeline-fixerSkill
- azsdk-common-prepare-release-planSkill
- azsdk-common-sdk-breaking-changeSkill
- azsdk-common-sdk-releaseSkill
- azsdk-common-patch-mergebackSkill
- create-package-skillSkill
- find-package-skillSkill
- management-autopr-reviewSkill
The file
We split this skill into the rules it gives an agent
10 rules. 3 are common, 2 are distinctive, and 5 are very specific to this project.
3
Common
Most of the 4 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 18
WHEN: "generate SDK locally", "build SDK", "run SDK tests", "update changelog", "fix SDK build errors", "resolve SDK generation errors", …
- Distinctive: line 22
Do not use this skill for:
- Very specific: line 33
Never use azure-sdk-mcp:azsdk_get_sdk_pull_request_link or azure-sdk-mcp:azsdk_get_pull_request to _generate_ an SDK.
- Common: line 35
Verify the target language repo and the correct TypeSpec configuration file before generation.
- Common: line 36
After generation or customization, run the check and test steps before updating metadata or finalizing changes.
- Very specific: line 75
If azure-sdk-mcp:azsdk_customized_code_update fails or times out, report the error to the user and suggest retrying.
- Common: line 76
Only the customization tool understands the correct layering of TypeSpec decorators vs code patches and ensures regenerated code stays …
- Very specific: line 97
Run azure-sdk-mcp:azsdk_verify_setup to confirm MCP and tools.
- Very specific: line 98
If build fails with type conflicts, breaking changes, analyzer errors, or customization drift, use …
- Very specific: line 100
If azure-sdk-mcp:azsdk_customized_code_update fails or times out, report the error and retry.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Generate SDK Locally
This skill generates, builds, and tests Azure SDKs locally from TypeSpec with automatic customization support, covering the end-to-end workflow for fixing generation issues, applying SDK-specific updates, and refreshing package metadata when needed.
Triggers
USE FOR: generate, build, and test Azure SDKs locally from TypeSpec with automatic customization; update changelog; fix SDK build errors; resolve SDK generation errors; customize TypeSpec; rename SDK client or model; hide operation from SDK; fix analyzer errors; resolve customization drift; create subclient; update metadata; update version WHEN: "generate SDK locally", "build SDK", "run SDK tests", "update changelog", "fix SDK build errors", "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"
Boundaries
Do not use this skill for:
- Publishing SDK packages to package registries
- CI pipeline configuration
- API design review
Rules
- Interpret "generate SDK" and "generate SDK locally" as requests for the complete workflow: generate, build, validate, test, update changelog, update metadata, and update version. Do not treat the word "generate" by itself as a generate-only request.
- Stop after generation and a successful build when the user explicitly says "generate only", "only generate", or otherwise explicitly asks to skip checks, tests, changelog, metadata, and version updates. Bind
onlyto the generation action even when a target qualifier follows: "generate SDK only for Web PubSub" is a generate-only request scoped to Web PubSub. By contrast, "generate the SDK for only the Web PubSub service" scopes the complete workflow to one service. Once a request is classified as generate-only, do not prompt for a commit or run steps 8–11. If the user's intent is unclear, default to the complete workflow. - This skill generates an SDK locally from a local clone. Use it to generate an SDK only when the user indicates local generation — they say "local"/"locally", or are working from a local clone. If the user asks to "generate SDK for all languages", to generate for a release plan / release ID (even a single language), to generate without a local clone, or wants SDK pull requests created for them, do not generate locally — use the
azsdk-common-generate-sdk-pipelineskill, which runs the SDK generation pipeline for each language and produces the SDK pull requests. - Never use
azure-sdk-mcp:azsdk_get_sdk_pull_request_linkorazure-sdk-mcp:azsdk_get_pull_requestto generate an SDK; those only retrieve links for SDKs that were already generated. - Requires the
azure-sdk-mcpserver for the MCP workflow; without MCP, usenpm exec --prefix eng/common/tsp-client -- tsp-clientCLI. - Verify the target language repo and the correct TypeSpec configuration file before generation.
- After generation or customization, run the check and test steps before updating metadata or finalizing changes.
MCP Tools
| 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.
Steps
- Select language — Confirm target language: .NET, Java, JavaScript, Python, Go, or Rust.
- Verify repo — Ensure the user has a local clone of the correct SDK repo. If not cloned, instruct user to clone it.
- Identify config file — Determine the path to the TypeSpec configuration file. See config file details.
- From
azure-rest-api-specsrepo: use path totspconfig.yaml. - From an SDK language repo: use path to
tsp-location.yaml.
- From
- Verify setup — Run
azure-sdk-mcp:azsdk_verify_setupto confirm environment. - Generate — Run
azure-sdk-mcp:azsdk_package_generate_codewith the config file path. - Build — Run
azure-sdk-mcp:azsdk_package_build_code. For .NET, use theadditionalArguments: "/p:RunApiCompat=false"to skip API compatibility checks if user requests to skip API compatibility check. - Customize — If build fails, or if user requests SDK modifications, run
azure-sdk-mcp:azsdk_customized_code_updatewith 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. (If the user requested "generate only", stop here — skip steps 8–11.) - Commit checkpoint — Prompt the user to commit generated changes before proceeding. See commit checkpoint details.
- Validate — Run
azure-sdk-mcp:azsdk_package_run_checkandazure-sdk-mcp:azsdk_package_run_tests. - Metadata — Run
azure-sdk-mcp:azsdk_package_update_changelog_content,azure-sdk-mcp:azsdk_package_update_metadata, andazure-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.) - Final commit — Prompt the user to commit final changes (changelog, metadata, version). See commit checkpoint details.
SDK repos | Customization workflow | Detailed workflow
Guardrails
- NEVER modify generated SDK code files directly for customizations. Always use
azure-sdk-mcp:azsdk_customized_code_update. It handles classification, TypeSpec decorators, code patches, regeneration, and build as a single atomic workflow. - If
azure-sdk-mcp:azsdk_customized_code_updatefails or times out, report the error to the user and suggest retrying. Do not attempt to replicate its behavior by editing files manually. - Only the customization tool understands the correct layering of TypeSpec decorators vs code patches and ensures regenerated code stays consistent.
Examples
- "Generate the SDK locally for my TypeSpec service"
- "Build and test the Python SDK package"
- "Run CI checks for my SDK package"
- "Fix the SDK build errors on this PR"
- "Rename FooClient to BarClient for .NET"
- "Hide the internal polling operation from the Python SDK"
- "Fix .NET analyzer errors AZC0030 and AZC0012"
- "The build is failing because a customization references a renamed property"
- "Create a subclient architecture for the Python SDK"
- "Apply TypeSpec customizations to fix compilation errors"
- "Update the changelog for this SDK package"
- "Update the package version"
- "Update the package metadata and ci.yml"
Troubleshooting
- For "generate SDK for all languages", pipeline-based generation, or when no local SDK clone exists, call
azure-sdk-mcp:azsdk_run_generate_sdkinstead of the local generate flow, and never substituteazure-sdk-mcp:azsdk_get_sdk_pull_request_link/azure-sdk-mcp:azsdk_get_pull_requestfor generation. - Run
azure-sdk-mcp:azsdk_verify_setupto confirm MCP and tools. - If build fails with type conflicts, breaking changes, analyzer errors, or customization drift, use
azure-sdk-mcp:azsdk_customized_code_updateto apply customizations. - The customization tool uses a two-phase approach: TypeSpec decorators first (Phase A), then code repairs if needed (Phase B).
- If
azure-sdk-mcp:azsdk_customized_code_updatefails or times out, report the error and retry. Do not manually edit generated SDK code — manual edits will be overwritten on the next regeneration. - Without MCP, use
npx tsp-clientCLI.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

