azsdk-common-generate-sdk-locally
Skill5.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 since April.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-javaword for word, first seen Mar 18, 2025
Who's talking about Azure/azure-sdk-for-python
- apache/airflow“Add Python 3.11 support”GitHub · Oct 25, 2022 · 24 reactions
- Azure/azure-sdk-for-net“[FEATURE REQ] Custom Events in Application Insights using azure-monitor-opentelemetry”GitHub · Feb 23, 2024 · 14 reactions
- hashicorp/terraform-provider-azurerm“custom_domain configuration for azurerm_storage_account not working as expected, when using Indirect CNAME …”GitHub · Jul 26, 2021 · 13 reactions
- Azure/azure-rest-api-specs“[BUG] [API Management] polling response didn't respect the format in new api version”GitHub · May 30, 2025 · 8 reactions
- Azure/azure-cli“az vm create --no-wait fails with "Extra data: line 1 column 4 (char 3)"”GitHub · Apr 8, 2026 · 6 reactions
The biggest 5 of 13 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 13
Talked about on GitHub, Hacker News and Bluesky (13 times).
On GitHub · 11
- Oct 25, 2022Add Python 3.11 support — apache/airflow24 reactions · 31 comments
- Feb 23, 2024[FEATURE REQ] Custom Events in Application Insights using azure-monitor-opentelemetry — Azure/azure-sdk-for-net14 reactions · 17 comments
- Jul 26, 2021custom_domain configuration for azurerm_storage_account not working as expected, when using Indirect CNAME validation — hashicorp/terraform-provider-azurerm13 reactions · 6 comments
- May 30, 2025[BUG] [API Management] polling response didn't respect the format in new api version — Azure/azure-rest-api-specs8 reactions · 1 comment
- Apr 8, 2026az vm create --no-wait fails with "Extra data: line 1 column 4 (char 3)" — Azure/azure-cli6 reactions · 8 comments
6 more on GitHub
- Aug 16, 2022Ignore existing resources within a subscription — Azure/azure-rest-api-specs6 reactions · 6 comments
- Dec 4, 2020Fix azure service bus integration with service bus library 7.0 — celery/kombu6 reactions
- Dec 12, 2023[CostManagement] `x-ms-pageable` not enabled for `Query_Usage` — Azure/azure-rest-api-specs5 reactions · 2 comments
- May 20, 2020Could not install package via pip. Dependency error. — michiya/azure-storage-logging5 reactions
- Mar 26, 2020Add a common AzureKeyCredential to Azure Core — Azure/azure-sdk5 reactions · 8 comments
- Jul 17, 2023Resources of type `"Microsoft.Network/publicIPAddresses"` does not include the `"zones"` field. — Azure/azure-rest-api-specs4 reactions · 1 comment
On Hacker News · 1
- May 3, 2024Azure SDK is over 500 MB and growing on each release4 points · 3 comments
On Bluesky · 1
- Sep 11, 2025📦 Azure / azure-sdk-for-python ⭐ 5,071 (+1) 🗒 Python This repository is for active development of the Azure SDK for Python. For consumers… — @github-trending.bsky.social1 likes and repost
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-java★ 2.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 repository17 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
- create-api-reviewSkill
- create-package-skillSkill
- find-package-skillSkill
- fix-blackSkill
- fix-mypySkill
- fix-pylintSkill
- fix-sphinxSkill
- generate-api-markdownSkill
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.

