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.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/azure/azure-sdk-for-rust/cosmos-pre-commit-validationnpx skills add Azure/azure-sdk-for-rust --skill cosmos-pre-commit-validationgit 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/cosmos-pre-commit-validation)<a href="https://agentmods.dev/skills/azure/azure-sdk-for-rust/cosmos-pre-commit-validation"><img src="https://agentmods.dev/badge/skills/azure/azure-sdk-for-rust/cosmos-pre-commit-validation.svg" alt="Measured on agentmods" height="20"></a>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 | $0.00035 | $0.01194 |
| Opus 5 | $0.00017 | $0.00597 |
| Sonnet 5 | $0.00007 | $0.00239 |
| Haiku 4.5 | $0.00003 | $0.00119 |
Grade A, and why
cosmos-pre-commit-validation 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 5d 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.
How it starts
The opening of the file, as written. The whole thing — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Cosmos SDK Pre-Commit Checks
When to use this skill
Use this skill when:
- Reviewing or validating changes in the Cosmos SDK
- Running pre-commit checks locally before pushing
- Performing focused code review on
sdk/cosmos/**
Behavior
Follow these steps strictly:
-
Determine the target path:
- If the
scopeargument is specified and is not equal (case-insensitive) toallor*, set the target path tosdk/cosmos/<scope>(for example, ifscopeisazure_data_cosmos, usesdk/cosmos/azure_data_cosmosas the target path). - Otherwise, set the target path to
sdk/cosmos.
- If the
-
Determine file scope:
- If
changed-onlyistrue(the default), restrict scanning to.rsfiles that differ between the current local branch andmain. Usegit diff --name-only main -- <target path>(and include per-cratetests/directories) to obtain the list. Only.rsfiles in the result set are scanned; all other files are skipped. - If
changed-onlyisfalse, scan all.rsfiles under the target path(s). - In both modes, skip files in
generated/subdirectories — these are produced by external tools and must never be modified.
- If
-
Validate using the Pre-Completion Validation Checklist in
sdk/cosmos/AGENTS.md:- Formatting checks
- Build succeeds for affected crates
- Clippy lints pass for affected crates, with warnings treated as errors (
-D warnings) to match CI behavior. Run clippy withRUSTFLAGS=-D warningsset:- Bash:
RUSTFLAGS='-D warnings' cargo clippy -p <crate> --all-features --all-targets - PowerShell:
$env:RUSTFLAGS='-D warnings'; cargo clippy -p <crate> --all-features --all-targets; $env:RUSTFLAGS=$null
- Bash:
- Re-run formatting after any auto-fix: if
auto-fixis true and clippy or other tools modified files, re-runcargo fmtto ensure the auto-fixed code is properly formatted (e.g.,cargo clippy --fixcan leave trailing blank lines when removing unused imports). - Documentation builds successfully where applicable
- Spell check (cspell): CI runs cspell on all changed files using the root config at
.vscode/cspell.json; Cosmos-specific words are managed inignoreWordsinsdk/cosmos/.cspell.json. Run locally with:npx cspell lint --config sdk/cosmos/.cspell.json --no-must-find-files <target path>/**Ifauto-fixis true and unknown words are legitimate (e.g., API type names, technical terms), add them toignoreWordsinsdk/cosmos/.cspell.json. - Unit and emulator tests relevant to the touched modules and crates
- CI-gated tests: Tests gated by
test_category(e.g., emulator, multi-write) are always compiled but are ignored at runtime unless the corresponding cfg is set viaRUSTFLAGS. This meanscargo check --testsandcargo testwill compile these tests without any special flags, so build errors are caught locally.RUSTFLAGSis only needed when you want to actually run the tests:RUSTFLAGS='--cfg test_category="emulator"' cargo test -p azure_data_cosmos --features fault_injection,key_auth --testsRUSTFLAGS='--cfg test_category="multi_write"' cargo test -p azure_data_cosmos --features fault_injection,key_auth --testsOn Windows (PowerShell), set the env var first:$env:RUSTFLAGS='--cfg test_category="emulator"'then run thecargo testcommand, and clear it afterwards with$env:RUSTFLAGS=$null. These tests require a live Cosmos DB emulator or multi-region account to run. Ifscopetargets a specific crate other thanazure_data_cosmos, skip these checks.
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.
- 5d ago First seen · 96 lines · 35 tokens per session scan A 6882a7ad5ed0
cosmos-pre-commit-validation is a skill published in the GitHub repository Azure/azure-sdk-for-rust (885 stars, last pushed today), licensed MIT. It adds 35 tokens to every session and 1,194 once invoked, about $0.0002 per session on Opus 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
dpg-migration
Migration logic for Azure SDK for .NET data-plane libraries migrating from AutoRest/Swagger to TypeSpec-based generation. Uses MCP tools from the generator-agent server for automated deterministic fixes.
csharp-azure-spector-coverage-gaps
Discovers and implements gaps in Spector test coverage for the Azure C# HTTP client emitter. Use when asked to find missing Spector scenarios, add Spector test coverage, or implement a specific Spector spec for the Azure C# emitter. Can also compare coverage between the Azure dashboard and the Standard (TypeSpec core)…
auto-build-repair
Headless, bounded repair of custom-code build failures in an already-generated Azure SDK PR. Thin wrapper over the shared azure-sdk-mcp:azsdkcustomizedcodeupdate engine in custom-code-only scope (editScope: CustomCode); the skill owns the iterate-until-green loop, capped by a per-language maxIterations read from…
azure-sdk-mgmt-pr-review
Review Azure SDK management-plane pull requests, check naming conventions, API compatibility, and code quality.
mgmt-review-comment-resolution
Resolve review comments on Azure management-plane .NET SDK PRs. Handles renaming types/properties, changing property types, and other API surface adjustments by updating TypeSpec client.tsp and regenerating.
mitigate-breaking-changes
Patterns and techniques for mitigating breaking changes in Azure management-plane SDKs. Covers SDK-side customizations (partial classes, CodeGenType, CodeGenSuppress) and TypeSpec decorator customizations (clientName, access, markAsPageable, alternateType, hierarchyBuilding).