azsdk-common-generate-sdk-locally
Skill2.3k 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-javaword 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-js
- microsoft/TypeScript“Extract APIs that are common to Node and the DOM to their own namespace”GitHub · Nov 29, 2020 · 21 reactions
- Stack Overflow“How do I add a custom property using the Azure.Messaging.ServiceBus library?”Stack Overflow · Jan 24, 2021 · 16 votes
- langchain-ai/langchainjs“[Feature request] Azure OpenAI Assistants”GitHub · Feb 8, 2024 · 14 reactions
- pnpm/pnpm“pnpm install failed on WSL with mounted windows file system drive: EACCES EACCES: permission denied”GitHub · Feb 28, 2023 · 11 reactions
- Stack Overflow“What is the difference between the Azure Identity and MSAL libraries for Python?”Stack Overflow · Jun 14, 2021 · 9 votes
The biggest 5 of 69 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 69
Talked about on GitHub, Stack Overflow and Bluesky (69 times).
On GitHub · 38
- Nov 29, 2020Extract APIs that are common to Node and the DOM to their own namespace — microsoft/TypeScript21 reactions · 6 comments
- Feb 8, 2024[Feature request] Azure OpenAI Assistants — langchain-ai/langchainjs14 reactions · 4 comments
- Feb 28, 2023pnpm install failed on WSL with mounted windows file system drive: EACCES EACCES: permission denied — pnpm/pnpm11 reactions · 16 comments
- Jan 17, 2020"exists" operator for containers and blobs — Azure/azure-sdk-for-python7 reactions · 8 comments
- Jul 11, 2024React Native - TypeError: Cannot read property 'prototype' of undefined — anonyco/FastestSmallestTextEncoderDecoder6 reactions · 1 comment
33 more on GitHub
- Mar 15, 2024Avoid the SemVer v0.x.x anti-pattern — open-telemetry/opentelemetry-js5 reactions · 13 comments
- Mar 26, 2020Add a common AzureKeyCredential to Azure Core — Azure/azure-sdk5 reactions · 8 comments
- Mar 1, 2022[Identity] Getting a token via VisualStudioCodeCredential using v0.10.0 of the Azure Account Extension results in an error — Azure/azure-sdk-for-net4 reactions · 3 comments
- Nov 1, 2023[Epic] - Fix issues found when generating OpenAI — Azure/autorest.typescript3 reactions
- Aug 9, 2023Transitive vulnerable import-in-the-middle — microsoft/ApplicationInsights-node.js3 reactions · 4 comments
- Jun 16, 2020[rush] Deprecated options warning when using pnpm v5 — microsoft/rushstack3 reactions · 1 comment
- Apr 24, 2020[BUG] Azure.Identity - SharedTokenCacheCredential AKV10032 - Key Vault in different tenant than credential home tenant — Azure/azure-sdk-for-net3 reactions · 4 comments
- Dec 26, 2019Mark recordings as generated in git — Azure/azure-sdk-for-net3 reactions · 3 comments
- Nov 10, 2026chore(deps): bump the cloud-and-messaging group across 1 directory with 11 updates — DataDog/dd-trace-js2 reactions · 5 comments
- Oct 9, 2026chore(deps): bump @azure/service-bus from 7.9.5 to 7.10.0 in /packages/dd-trace/test/plugins/versions in the cloud-and-messaging group across 1 directory — DataDog/dd-trace-js2 reactions · 4 comments
- Sep 18, 2026chore(deps): bump the cloud-and-messaging group across 1 directory with 11 updates — DataDog/dd-trace-js2 reactions · 3 comments
- May 21, 2026Bump the npm_and_yarn group across 4 directories with 25 updates — HarleyCoops/AzureChat2 reactions · 1 comment
- May 2, 2026Bump uuid and @azure/identity — January201/code-realtime-art-tutorial2 reactions
- Apr 15, 2026Update dependency @azure/identity to v4 [SECURITY] — https-quantumblockchainai-atlassian-net/backstage2 reactions · 8 comments
- Feb 21, 2025Resolve proxy error when adding Azure OpenAI model — continuedev/continue2 reactions · 5 comments
- Jan 5, 2024azure-openai[major]: Integration of Azure OpenAI SDK with Langchain — langchain-ai/langchainjs2 reactions · 16 comments
- Nov 30, 2026Bump @azure/msal-node and @azure/identity — openai/openai-dotnet1 reaction · 1 comment
- Nov 30, 2026fix(deps): bump @azure/identity from 4.14.0 to 4.14.1 — openai/openai-node1 reaction · 2 comments
- Nov 27, 2026Bump @azure/msal-node and @azure/identity in /vscode — davidshq/QB64Rust1 reaction · 1 comment
- Nov 16, 2026Require explicit single-event telemetry acceptance — FyberLabs/s3r.ch1 reaction · 8 comments
- Nov 3, 2026build(deps): bump the production-npm group with 6 updates — FyberLabs/s3r.ch1 reaction
- Nov 2, 2026fix(deps): bump @azure/identity from 4.13.3 to 4.14.0 — openai/openai-node1 reaction · 3 comments
- Oct 31, 2026Bump @azure/identity from 4.13.1 to 4.14.0 in /apps/frontend — SakariaAhmed/Anbud1 reaction · 3 comments
- Oct 31, 2026chore(deps): bump @azure/msal-node and @azure/identity — getditto/vsc-es1 reaction · 2 comments
- Oct 30, 2026Bump @azure/msal-node and @azure/identity — HSwart/Runlist1 reaction
- Oct 23, 2026chore(deps): bump the node-api-minor-and-patch group across 1 directory with 25 updates — pipeshub-ai/pipeshub-ai1 reaction · 1 comment
- Oct 19, 2026chore(deps): bump the node-api-minor-and-patch group across 1 directory with 23 updates — pipeshub-ai/pipeshub-ai1 reaction · 2 comments
- Oct 17, 2026chore(deps): bump the node-api-minor-and-patch group across 1 directory with 22 updates — pipeshub-ai/pipeshub-ai1 reaction · 2 comments
- Sep 28, 2026Bump @azure/storage-blob from 12.33.0 to 12.34.0 — Azure/Azurite1 reaction · 6 comments
- Aug 31, 2026chore(deps): bump @azure/identity from 4.13.1 to 4.13.2 — openai/openai-node1 reaction · 3 comments
- Aug 7, 2026chore(deps): bump uuid and @azure/identity in /uwf-companion — qwts/universal-agentic-workflow1 reaction · 2 comments
- Feb 26, 2026chore(deps): bump the npm_and_yarn group across 2 directories with 14 updates — Wbaker7702/azure-openai-assistant-javascript1 reaction
- Jun 28, 2024Lock @azure/core-rest-pipeline to 1.16.0 — lobehub/lobehub0 reactions · 19 comments
On Stack Overflow · 30
- Jan 24, 2021How do I add a custom property using the Azure.Messaging.ServiceBus library?16 votes
- Jun 14, 2021What is the difference between the Azure Identity and MSAL libraries for Python?9 votes
- Aug 6, 2024ResourceNotFound error when connecting to Azure OpenAI using latest JavaScript SDK (version 2.0.0-beta.1)3 votes
- Mar 18, 2021EventHub with NodeJS SDK - All consumers in ConsumerGroup getting the message3 votes
- Jul 27, 2020The requested module '@azure/arm-authorization' is expected to be of type CommonJS3 votes · 2 answers
25 more on Stack Overflow
- May 19, 2020NodeJS use client certificate from Azure Key Vault in request3 votes
- Mar 26, 2020SharedKeyCredential is not a constructor - Azure Blob Storage + Nodejs3 votes
- Mar 24, 2020How to obtain QueueDetails from a servicebus queue?3 votes
- Oct 21, 2023Allow Legacy Renegotiation for NodeJs2 votes
- Jun 28, 2022Azure Service Bus message receiver - loop vs stream2 votes
- May 31, 2021How can I attach a file in an Azure communication service chat?2 votes
- Feb 19, 2021Azure storage blob library download blob to local machine2 votes · 1 answer
- Jul 21, 2020Getting deviceId from Azure IotHub / EventHub2 votes
- May 19, 2020NodeJS use client certificate from Azure Key Vault in request2 votes · 1 answer
- Mar 13, 2020Azure Blob Node.js download blob files2 votes · 2 answers
- Dec 27, 2019Possible to connect to an azure event hub through a browser and websockets?2 votes
- Oct 30, 2019Is there a way to put a message into an Azure Storage Queue with a delay from a NodeJS Azure Function?2 votes
- Mar 1, 2024ManagedIdentityCredential.GetToken very slow on first authentication1 vote
- Dec 14, 2022Azure Blob Storage Client Side Upload1 vote
- Jul 19, 2022Debug for azure sdk (How to show the relevant REST API)1 vote
- May 19, 2022Node.js application hosted on Azure App service need to use MSI to authenticate to Azure App Config1 vote
- Mar 24, 2022How to generate SAS token in azure JS SDK, from app client, without using account key1 vote
- Feb 6, 2022Azure Identity SDK (JS) How to Authenticate to User's Azure Account1 vote · 1 answer
- Jul 9, 2021Calling a JS function without parentheses?1 vote · 1 answer
- Mar 4, 2021Upload a Stream to Azure Blob Storage using REST API without Azure SDK1 vote · 2 answers
- Oct 19, 2020How do I retrieve Secrets from KeyVault in React application [typescript]1 vote
- Jul 12, 2020Load certificate and private key into Java KeyStore1 vote
- Apr 29, 2020Adding Azure Logic App step for Form Recognizer 2.0 has issue with built in connection1 vote
- Mar 31, 2020Parallel file uploading using azure blob storage javascript library (v12)1 vote
- Aug 14, 2019Succeeded in running the sample code in node.js ,but failed to run the modified code in a browser1 vote · 1 answer
On Bluesky · 1
- Nov 12, 2023📦 Azure / azure-sdk-for-js ⭐ 1,810 (+46) 🗒 TypeScript This repository is for active development of the Azure SDK for JavaScript (NodeJS… — @github-trending-js.bsky.social2 likes and reposts
Other versions6 projects use a version of this.
Word for word · 3
- Azure/azure-sdk-for-python★ 5.6k100% same
- Azure/azure-sdk-for-java★ 2.6k100% 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 repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- ado-pipeline-auditSkill
- 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
- code-reviewSkill
- create-package-skillSkill
- find-package-skillSkill
- node-migrationSkill
- sdk-workflowSkill
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.

