Azure SDK for Rust is a collection of Rust libraries, organized as separate crates, for interacting with Azure services. Rust developers use the crates and examples to build applications that work with Azure. The catalogue entries provide coding-agent skills, instructions, agents, and MCP integrations for working with the SDK.
Borrowing it
Nothing to install: this file belongs to Azure/azure-sdk-for-rust. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/Azure/azure-sdk-for-rust/main/.github/skills/create-crate/SKILL.mdgit clone --depth 1 https://github.com/Azure/azure-sdk-for-rustWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/azure/azure-sdk-for-rust/create-crate)<a href="https://agentmods.dev/skills/azure/azure-sdk-for-rust/create-crate"><img src="https://agentmods.dev/badge/skills/azure/azure-sdk-for-rust/create-crate/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/azure/azure-sdk-for-rust/create-crate"><img src="https://agentmods.dev/badge/skills/azure/azure-sdk-for-rust/create-crate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00016 | $0.00589 |
| Opus 5.5 | $0.00006 | $0.00236 |
| Sonnet 5.5 | $0.00003 | $0.00118 |
| Haiku 4.5 | $0.00002 | $0.00059 |
Grade A, and why
create-crate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Creating a New Crate
All new service crates must be generated from TypeSpec specifications in Azure/azure-rest-api-specs. Do not hand-write client libraries from scratch.
-
Install tsp-client
-
Use the repository-pinned CLI; do not invoke a globally installed binary:
_TspClientDir="$(pwd)/eng/common/tsp-client" npm ci --prefix "$_TspClientDir" -
Run commands with
npm exec --prefix "$_TspClientDir" --no -- tsp-client -
See
eng/common/tsp-client/README.mdfor prerequisites and more context
-
-
Find the TypeSpec spec
- Look for a
tspconfig.yamlunderspecification/{service}/in azure-rest-api-specs - Check the
tspconfig.yamlfor@azure-tools/typespec-rustemitter configuration - If no emitter configuration exists, stop and report an error indicating that the TypeSpec specification in Azure/azure-rest-api-specs must be updated before generating the client
- Look for a
-
Initialize the crate
- From the repository root, run
npm exec --prefix "$_TspClientDir" --no -- tsp-client init --tsp-config {url} {url}is the GitHub URL to thetspconfig.yaml- Always use a specific commit SHA in the URL — never a branch or tag, which can move
- Example:
https://github.com/Azure/azure-rest-api-specs/blob/{commit-sha}/specification/{service}/{rp}/tspconfig.yaml
- From the repository root, run
-
Generate the client
- Use the
azsdk_package_generate_codeMCP tool, or - From the crate directory, run
npm exec --prefix "$_TspClientDir" --no -- tsp-client update
- Use the
-
Add hand-written wrappers
- Create
clients.rs(or similar) for custom client constructors, authentication setup, and convenience methods - Build on top of the generated code in
src/generated/
- Create
-
Register the crate
- Add the new crate to the workspace
memberslist in the rootCargo.toml
- Add the new crate to the workspace
-
Add tests, examples, and documentation
- Write unit tests and integration tests (using
#[recorded::test]) - Add examples, a
README.md, and aCHANGELOG.md
- Write unit tests and integration tests (using
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed · +6 lines cdfd9de96e94
- 1mo ago First seen · 40 lines · 16 tokens per session scan A c7d67e96c823
create-crate is a skill published in the GitHub repository Azure/azure-sdk-for-rust (886 stars, last pushed today), licensed MIT. It adds 16 tokens to every session and 589 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
generate-code-cs
Generate the code from typespec for C#. Parameter: C# SDK repository root location .
build-sample-matrix
Build the matrix of all the samples throughout different frameworks.
translate-a-sample
Translate the Azure SDK sample from python to C# and generate markdownn file for the sample. Parameters: C# SDK repository root; python SDK repository root; Package name: one of Azure.AI.Projects, Azure.AI.Projects.Agents or Azure.AI.Extensions.OpenAI; The name of sample file in Python SDK repository.
author-test
Generate a test given sample. Parameters: C# SDK repository root; Package name: one of Azure.AI.Projects, Azure.AI.Projects.Agents or Azure.AI.Extensions.OpenAI; the sample to use as a starting point for the test.
update-changelog
Update the CHANGELOG.md files of C# projects. Parameters: csroot C# SDK repository root.
budget-checker
Validates that a proposed trip fits within the user's stated budget.