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.
6 other projects use a version of this, 3 of them edited.
Trending
More talk lately.about 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-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
- Azure/azure-sdk-for-pythonword for word, first seen Mar 4, 2025
Who's talking about Azure/azure-sdk-for-java
- hashicorp/vault“Add go templating to Identity Policy Templating”GitHub · Mar 9, 2021 · 16 reactions
- Stack Overflow“CosmosClient vs DocumentClient”Stack Overflow · Mar 24, 2020 · 8 votes
- 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
The biggest 5 of 68 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 68
Talked about on GitHub and Stack Overflow (68 times).
On GitHub · 39
- Mar 9, 2021Add go templating to Identity Policy Templating — hashicorp/vault16 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
34 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
- Nov 10, 2026Add GitHubActionsCredential to azure_identity — Azure/azure-sdk-for-rust2 reactions
- Apr 15, 2026Update dependency @azure/identity to v4 [SECURITY] — https-quantumblockchainai-atlassian-net/backstage2 reactions · 8 comments
- Aug 7, 2025Check if HNS is enabled for Azure storage account using Get Account Info — trinodb/trino2 reactions · 6 comments
- Jun 16, 2025Maven 3.9.10 duplicates projects in parallel build — apache/maven2 reactions · 15 comments
- May 29, 2025Migrate from Azure OpenAI Java SDK to OpenAI Java Library — spring-projects/spring-ai2 reactions · 11 comments
- Feb 27, 2025ChangeFeedProcessor support request — Azure/azure-cosmos-db-emulator-docker2 reactions · 5 comments
- Dec 17, 2024[FEATURE REQ] Add dataSecurityMode to AzureDatabricksLinkedService — Azure/azure-rest-api-specs2 reactions · 1 comment
- Mar 10, 2022Update small issues according to security storage migration doc review — microsoft/spring-cloud-azure2 reactions
- Oct 12, 2026deps(deps): bump com.azure:azure-identity from 1.18.6 to 1.18.7 — DecentraLabsCom/Blockchain-Services1 reaction · 2 comments
- Jan 26, 2026deps(deps): bump com.azure:azure-identity from 1.18.1 to 1.18.2 — DecentraLabsCom/Blockchain-Services1 reaction · 1 comment
- Sep 23, 2025Bump the other-dependencies group across 1 directory with 30 updates — kafbat/kafka-ui1 reaction · 1 comment
- Apr 11, 2025sync-stack, fix premium example — microsoft/typespec1 reaction · 2 comments
- Apr 2, 2025mgmt, replace fluxbb with binarydata, and StreamResponse with Response<BinaryData> — microsoft/typespec1 reaction · 5 comments
- Mar 7, 2025Bump com.azure:azure-sdk-bom from 1.2.30 to 1.2.32 — snuxoll/jetbrains-azuredb-auth1 reaction · 1 comment
- Feb 26, 2025Bump com.azure:azure-sdk-bom from 1.2.30 to 1.2.31 — snuxoll/jetbrains-azuredb-auth1 reaction · 2 comments
- Feb 7, 2025Revert "chore(deps): bump com.azure:azure-core from 1.54.1 to 1.55.0 in /components/authentication/azure" — microsoft/kiota-java1 reaction · 1 comment
- Dec 5, 2024Bump com.azure:azure-sdk-bom from 1.2.27 to 1.2.30 — snuxoll/jetbrains-azuredb-auth1 reaction · 1 comment
- Oct 29, 2024Bump com.azure:azure-sdk-bom from 1.2.27 to 1.2.29 — snuxoll/jetbrains-azuredb-auth1 reaction · 2 comments
- Aug 30, 2024Bump com.azure:azure-ai-openai from 1.0.0-beta.9 to 1.0.0-beta.11 — samair/unit_test_ai1 reaction · 1 comment
- Aug 22, 2024Bump com.azure.resourcemanager:azure-resourcemanager-datafactory from 1.0.0-beta.29 to 1.0.0-beta.30 — vividus-framework/vividus1 reaction · 5 comments
- Jul 15, 2024build(deps): bump com.azure:azure-ai-openai from 1.0.0-beta.8 to 1.0.0-beta.10 — zjh7890/gpt-tools1 reaction · 1 comment
- Jul 3, 2024Bump com.azure:azure-ai-openai from 1.0.0-beta.9 to 1.0.0-beta.10 — samair/unit_test_ai1 reaction · 2 comments
- Jun 24, 2024Update Azure SDK — trinodb/trino1 reaction · 2 comments
- Feb 5, 2024Fix sparse-checkout git command line behavior — Azure/azure-sdk-tools1 reaction · 5 comments
- Jan 30, 2024Update azure-core-tracing-opentelemetry version and fix sync suppression — open-telemetry/opentelemetry-java-instrumentation1 reaction
- Mar 16, 2023Add auxiliary authentication header policy in core pipeline — Azure/azure-sdk-for-js1 reaction · 3 comments
- Mar 6, 2023Bump azure-core-http-vertx from 1.0.0-beta.4 to 1.0.0-beta.5 — quarkiverse/quarkus-azure-services1 reaction · 1 comment
- Jan 30, 2023CB-20160 Updated Azure SDK to the latest version. — hortonworks/cloudbreak1 reaction
On Stack Overflow · 29
- Mar 24, 2020CosmosClient vs DocumentClient8 votes
- Apr 9, 2020How to move Azure blob from one Storage container to another using Java/ REST?4 votes · 1 answer
- Jul 28, 2023Azure Cosmos DB not working as excepted -get throughput control to work with Cosmos DB Spark connector3 votes
- Nov 27, 2015How to assign read write permissions to an AD application to manage resources using resource management api with Azure java sdk3 votes
- Mar 5, 2025Why does AliasX509ExtendedKeyManager not take client alias into account?2 votes
24 more on Stack Overflow
- Feb 6, 2025apksigner ignoring java parameters when trying to include azure keyvault jca2 votes
- Apr 2, 2024Switch between static and dynamic Azure App Configuration service2 votes
- Jan 17, 2024Error java.lang.NoClassDefFoundError: reactor/netty/transport/ClientTransport2 votes
- May 19, 2022Managed Identity Authentication from non Azure VM2 votes · 1 answer
- Apr 28, 2022How to configure maxDegreeOfParallelism for cosmosdb in Springboot?2 votes
- Apr 18, 2022Offset in pagination of cosmosDb not supported in spring data cosmosdb library2 votes
- Mar 15, 2022Spring boot 2.2.4 release is not compatible with azure spring data cosmos 3.x.x2 votes
- Nov 29, 2021Azure Spring Cloud AppConfiguration refresh is not working2 votes
- Aug 6, 2021How to limit the number of requests being made to Azure App Configuration from a Spring Boot application?2 votes
- Jan 25, 2021Autogenerate id in Cosmos DB from Spring Boot2 votes
- Jan 10, 2021Whether topicJmsListenerContainerFactory supports asynchronous Processing - Azure Spring JMS?2 votes
- Dec 31, 2019Azure Service Bus - cancelled scheduled messages getting re-queued2 votes · 2 answers
- Jan 27, 2017Does azure Java SDK support metric collections?2 votes · 1 answer
- Dec 10, 2014Does Azure Media Services support Java/PHP/Python/RoR?2 votes
- Aug 14, 2024Create/Recreate Azure CosmosDb async client from Java reactor context1 vote
- Oct 27, 2023CosmosSDK Java 4.52.0 changeFeedBuilder no longer supports ChangeFeedObserver, how to get the "fetch" ChangeRequest?1 vote
- Jun 2, 2023Increasing concurrent calls undefined behaviour in Spring Cloud Stream Azure Service Bus1 vote
- Mar 28, 2022azure-spring-boot for springboot 2.6.31 vote
- Sep 20, 2021Azure AppConfiguration with Spring Boot 2.5.x1 vote
- Jun 27, 2021Cosmos DB spatial query using Spark1 vote
- May 4, 2021Which azure-spring-boot-sample-active-directory example to use to validate access token in a Spring Boot application coming from a Vue.js application?1 vote · 2 answers
- Mar 23, 2020How to export my list of registered APIs and their specs in "Azure API Management" using the Java sdk?1 vote
- Aug 24, 2019Azure Java SDK v12 is not downloading a file asynchronously1 vote
- Feb 25, 2015Virtual Machine deployment "VMimage ReourceNotFound Exception" using Azure-SDK-for-Java1 vote
Other versions6 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 · 3
- Azure/azure-sdk-for-net★ 6.1k92% same
- Azure/azure-sdk★ 60492% same
- Azure/azure-sdk-for-cpp★ 20692% 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 repository14 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
- code-reviewSkill
- 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 3 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 3 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.

